apf cannot ping other computers on openvpn
Posted: Fri Nov 25, 2011 7:30 pm
I have created on openvpn. The only problem is that when apf is running I cannot ping any the 10.8.0.0/24 or the 192.168.0.0/24 network from either end. I can reach the outside world through the vpn from all computers on the network.
When apf is stopped I can access the computers on both 10.8.0.0/24 and 192.168.0.0/24. So I am assuming that the openvpn conf is correct. and that the iptables need to be corrected. I also read that the tun0 may be an untrusted device for apf. but I do not know how to check or add this device.
Please help
Code: Select all
VNET00=(external ip)
VPNNET="10.8.0.0/24"
$IPT -t nat --flush
$IPT -t nat -A POSTROUTING -s $VPNNET -o venet0 -j SNAT --to-source $VNET00
Please help