B
B
beliyoni2016-03-24 18:05:09
iptables
beliyoni, 2016-03-24 18:05:09

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

By what means can I achieve the result when the client enters address.com in the browser, gets to my server, while address.com still remains in the address bar of the browser and not the domain of my server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-03-24
@beliyoni

this is not a task for the firewall
install nginx and use proxy_pass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question