]]>By: Mustafahttp://www.debuntu.org/how-to-redirecting-network-traffic-to-a-new-ip-using-iptables/#comment-143824
Sun, 16 Feb 2014 11:30:54 +0000http://www.debuntu.org/?p=664#comment-143824Hi Very nice post helped me lot. wanted to say thank you... My use case is simple
I have an Active Directory (ip a.a.a.a) server running on port 389 and a web site hosted on another hosting provider (ip b.b.b.b) (on port 80)
What I want to do is place a system in between and point the A record to this server (ip c.c.c.c)

Now the other challenge comes that the WEB server and AD server need to see the actual IP of the system that making the get request. If I were to use a proxy I could setup a X-Forward for. can I do this in IPtables ?
BTW -- even if we don't expose the end client IP to AD server its ok but for the Web Server it is a must.

Basically, I'm using an android app with a bug in it that doesn't allow you to type a "." in the IP address, so I can't change the address. It's going to try to connect to the wrong address, and I want those TCP/IP packets to go to the right address isntead.

but if i do a nmap localhost, the port 80 is closed (because no service is locally running on that port.)
how can the traffic be redirect from a closed port?
I tried also with
# iptables -A INPUT -p tcp --dport 80 -j ACCEPT

but nothing change....

can you help me?

thanks

]]>By: Royhttp://www.debuntu.org/how-to-redirecting-network-traffic-to-a-new-ip-using-iptables/#comment-140538
Thu, 21 Nov 2013 02:50:34 +0000http://www.debuntu.org/?p=664#comment-140538webmim only open using internal ip 172.31.3.61:10000 but when i'm open from ip public 54.254.203.200:10000 it won't open.
what iptables rule to help me open it from ip public?