1
1
14MR2015-10-13 16:58:19
WiFi
14MR, 2015-10-13 16:58:19

How to redirect all wifi clients to the same domain(localhost)?

There is a local server that is located in the wi-fi network, there is a wi-fi router itself with DD-WRT on board. Task: whenever a user tries to download something (for example, ya.ru), you need to do a redirect to a certain 192.168.х.х:хххх, and it is desirable to change the domain.
Is it possible? I'm thinking about doing this with iptables. For example, like this:

iptables -t nat -I POSTROUTING -j SNAT -s 2.2.2.3 --to 1.1.1.3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2015-10-13
@martin74ua

it's called a hotspot. Or captive portal. Look for ready-made implementations, there are answers to all your questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question