@
huangya iptables -t nat -I POSTROUTING 1 -d 10.8.0.0/24 -j ACCEPT
和楼主情况完全一样,做了这个策略,openvpn client 还是无法访问 PC1 ,请教还会是什么原因呢
其他策略如下
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
#iptables -t nat -A PREROUTING -p udp--dport 53 -j REDIRECT --to-ports 53
#iptables -t nat -A PREROUTING -p tcp--dport 53 -j REDIRECT --to-ports 53
# ip6tables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53
# ip6tables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53
#iptables -I INPUT -p udp --destination-port 500 -j ACCEPT
#iptables -I INPUT -p udp --destination-port 4500 -j ACCEPT
#iptables -I INPUT -p udp --destination-port 1701 -j ACCEPT
#iptables -I INPUT -p udp --dport 1194 -j ACCEPT
#iptables -A INPUT -p udp -m udp --dport 500 -j ACCEPT
#iptables -A INPUT -p udp -m udp --dport 4500 -j ACCEPT
#iptables -A INPUT -p udp -m udp --dport 1701 -j ACCEPT