Nodemind
Hello guys!
There are two OpenVPN servers connected in a tunnel, + Client.
I am interested in how to use the DNS of the last server, so that a request goes to it from the IP of the last server.
That is, the IP of the last server in the chain should be in the DNS logs.
I tried to insert:
push "redirect-gateway def1 bypass-dhcp"
in server.conf on OpenVPN1 and OpenVPN2.
But this dont work.
Traffic redirection doesn't work either:
iptables -t nat -A PREROUTING -i tun0 -p udp --dport 53 -j REDIRECT --to-ports 53