rc.local 不执行 sh /etc/openvpn/ip-pre-up
root@OpenWrt:~# vi /etc/rc.local
iptables -I FORWARD -o br-lan -j ACCEPT iptables -I FORWARD -o tun0 -j ACCEPT iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE sh /etc/openvpn/ip-pre-up exit 0
root@OpenWrt:~# ls -ls /etc/openvpn 448 -rwxr-xr-x 1 root root 458322 Mar 9 02:04 ip-pre-up
1
squid157 2017-03-09 11:26:05 +08:00 via iPhone
chmod +x
|
2
squid157 2017-03-09 11:27:14 +08:00 via iPhone
还有一点
不要在 OpenWrt 随便改 netfilter 他自己会覆盖 不要找对地方插入规则 |