Forward TCP Connections with Iptables
Posted
by
opc0de
on Ask Ubuntu
See other posts from Ask Ubuntu
or by opc0de
Published on 2013-07-03T10:14:48Z
Indexed on
2013/07/03
11:18 UTC
Read the original article
Hit count: 325
I receive connections to my server from several ip addresses I want to route these connections just like rinetd does but based on the ip the connection is coming from to connect to a specified host.
Just like this:
IP 10.10.12.1 => CONNECTS TO MY SERVER => MY SERVER REDIRECTS IT TO 82.12.12.1
IP 10.10.12.2 => CONNECTS TO MY SERVER => MY SERVER REDIRECTS IT TO 81.121.12.10
etc
Is it possible or do I need to write my own daemon to achieve this functionality ?
© Ask Ubuntu or respective owner