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.
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
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