Using Android phone as wifi web server

≡放荡痞女 提交于 2019-12-05 09:07:12
GarethAyres

Wifi hotspots would usually use IPTables to redirect port 80/443 traffic to a local web server.

I have run squid on linux machines in the past on port 3128, then sent all port 80/443 traffic to squid. Then I used squid redirect any url that I didnt explicitly allow to a local web server.

IPTables is accessible on rooted android devices only though.

And I doubt there are many proxy servers available on android, so you would have to send HTTP traffic to a proxy server over the network connection.

Buzz

Like has been said, you'll need IPTables, but you'll also need a proxy server, like Squid.

Google "transparent proxy with squid", or check here:
Linux: Setup a transparent proxy with Squid in three easy steps

funkypieman

you do not need to have a proxy, you just need a full LAMP stack on your device and IPtables, you can mark all packets that have not been authenticated to forward through to your local page, then using php change the rule for that IP address once the address has authenticated, you could do the same for mac addresses if you wish, you would then also need a daemon that periodically reset each exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!