Goal: be able to route all the trafic through the OpenVPN server and being able to communicate with the remote DNS (127.128.129.130) and the remote LAN (12x.x.x.x)
I have added to the OpenVPN client config file
As decribed here, I have added the three rules to iptables (in case the post is deleted):
iptables -I FORWARD -i tun0 -o eth0 \ -s 10.8.0.0/24 -m conntrack --ctstate NEW -j ACCEPT iptables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED \ -j ACCEPT iptables -t nat -I POSTROUTING -o eth0 \ -s 10.8.0.0/24 -j MASQUERADE
Which works great except that I cannot resolve hosts on my private DNS. I might be due to the first FORWARD rule which forward all trafic from
How can I do so the trafic to the remote DNS and LAN does not go away?