Redirect all traffic to the web server?

Condition: there is a router (OpenWRT) is installed on the web server.
Task: to redirect the traffic of all users (connected via wifi) to the web server.
How to do it?
June 26th 19 at 14:22
1 answer
June 26th 19 at 14:24
That is to when entering any site the user came to your page? If so, then that it should work on the 8000 port of your server, instead of br-lan - wifi interface.
iptables-t nat -A PREROUTING policy -i br-lan-p tcp --dport 80 -j REDIRECT --to-port 8000

Find more questions by tags Network administrationIptables