How to redirect all HTTP request to a local web server, supposing we don't have an internet connections
Exemple
- Web server with @IP 192.168.1.1, running apache
- Client with @IP 192.168.1.X making a HTTP request to X.X.X.X:80-443, and no internet connection is available for always, so all those traffic should be directly redirected to 192.168.1.1:80
I need to do this with iptables, and thank you guys for the help :)