Port Forwarding IPTABLES public IP

Posted by tric on Server Fault See other posts from Server Fault or by tric
Published on 2009-12-02T18:00:27Z Indexed on 2010/03/19 23:11 UTC
Read the original article Hit count: 211

Filed under:

hello i have a computer linuxbox_1.eth0 public ip 89.40.x.y eth1 public ip 85.121.a.b i have another linuxbox_2. ethx public ip 86.34.c.d

what i want to do is forward port 8001 from linuxbox_1 eth0 89.40.x.y:8001 to linuxbox_1 eth1 85.121.a.b,

and then forward again port 8001 from linuxbox_1 eth1 85.121.a.b:8001 to linuxbox_2 ethx 86.34.c.d:80

i have searched for answers using google "that knows everything" but this time it has failed. i would like to use IPTABLES or any other tool like rinetd. i tryed rinetd but it somehow mistakes the eths sorry for my bad english. 10q

© Server Fault or respective owner

Related posts about port-forwarding