其实配置很容易,有文章,这里先不说了。重点是转发的规则
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o pppoe-wlan -j MASQUERADE iptables -A INPUT -p TCP --dport 1194 -j ACCEPT iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
其实配置很容易,有文章,这里先不说了。重点是转发的规则
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o pppoe-wlan -j MASQUERADE iptables -A INPUT -p TCP --dport 1194 -j ACCEPT iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT