Answer the question
In order to leave comments, you need to log in
How to wrap http traffic to localhost so that the client's host address does not change?
I intercept traffic on port 80 going in transit through the gateway, and wrap it up on the local web server.
To do this, I use a rule of the form:
iptables -t nat -A PREROUTING -s $LAN_IP/24 -p tcp --dport 80 -j DNAT --to-destination x.x.x.x
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question