iptables is firewall can be use for redirect port for transparant proxy. if our network use a proxy with a linux system we can redirect traffic from our internal network to the internet with iptables.
just put script below
iptables -A PREROUTING -t nat -j REDIRECT -p tcp -s 192.168.168.0/24 -d 0/0 –dport 80 –to-ports 3128
in case we have so many port for redirect but usually port for redirect is 80, 8080, 3128 example above is for my network just customize with your own networkiptables is firewall can be use for redirect port for transparant proxy. if our network use a proxy with a linux system we can redirect traffic from our internal network to the internet with iptables.
just put script below
iptables -A PREROUTING -t nat -j REDIRECT -p tcp -s 192.168.168.0/24 -d 0/0 –dport 80 –to-ports 3128
in case we have so many port for redirect but usually port for redirect is 80, 8080, 3128 example above is for my network just customize with your own network



[...] Originally Posted by MrUnix I understand I can forward VNC via SSH. I would prefer if Computer A had two ports redirect (eth0) (via iptables) to the VNC servers on the LAN (eth1) from Computers B & C. Ah I think understand now, you need to take the traffic it receives on one ethernet interface and expose it on the other (which is on a different network?). If this was web traffic this would be a piece of cake (use a reverse proxy) but I'm afraid I've never done anything like this for non-web traffic. Hopefully someone who has done that can make a suggestion. Sorry if I wasted your time (the ssh tunnel was my best idea at the time). P.S. I assume you've looked at the documentation online for the REDIRECT iptables directive? Maybe this is relevant: http://networking-dummies.com/redire…-with-iptables. [...]