I set up a VPN ssh tunnel using between two Linux machines using these instructions.
Machine B acts as the server, and A as the client for the following.
I can ping from A and get replies from any computer in B's network, so everything seems to be working peachy. I can't however seem to get replies for DNS requests coming from A to a DNS server in B's network. I am guessing this is because UDP is stateless and only replies are permitted back?
- Is this the case, or must something else be wrong?
- If this is the case, how can I set up up a two way tunnel?
- If I set up a two way tunnel, can I use iptables applied to the tun interface to only allow DNS back? Or maybe there is a better way to only allow DNS?