here is what I need: I have a linux iptables machine, forwarding ports to machines inside the nat for VPN. The machines do not have a default gateway (we are testing wan application stuff, and don't want to change it trying to go to the web via this connection) on this interface.
Can I do something like this (mangle tables maybe?)
1. World client, 10.0.0.1
2. Iptables NAT box, 20.0.0.1 (Live) 30.0.0.1
3. Internal VNC server 30.0.0.2
I want the connection from 10.0.0.1 to hit the 20.0.0.1 IP, get changed so source appears to be from 30.0.0.1 to 30.0.0.2 and have it route from 30.0.0.2 back out to 10.0.0.1?
Hope this makes sense.
Can I do something like this (mangle tables maybe?)
1. World client, 10.0.0.1
2. Iptables NAT box, 20.0.0.1 (Live) 30.0.0.1
3. Internal VNC server 30.0.0.2
I want the connection from 10.0.0.1 to hit the 20.0.0.1 IP, get changed so source appears to be from 30.0.0.1 to 30.0.0.2 and have it route from 30.0.0.2 back out to 10.0.0.1?
Hope this makes sense.