thgh / pilon

Pilon, easy wifi hotspot for Raspberry Pi, pay with bitcoin
GNU General Public License v2.0
42 stars 15 forks source link

Will redirection work with bridging? #6

Open creativepsyco opened 9 years ago

creativepsyco commented 9 years ago

I have connected my pi via eth0 to the internet and exposed the captive portal via wlan0 which serves as the access point. I tried with the current set of iptable rules listed in the README however none of them work on the bridged interface br0 and the clients which connected via the wlan0 AP can connect to the internet. Since the php scripts currently mostly rely on iptables and mac addresses, will they work in conjunction with a bridged interface?

thgh commented 8 years ago

It might.

The iptables rules listed in the README are probably too minimal, but you can find better configurations by searching for "captive portal iptables". For example: http://serverfault.com/questions/722667/iptables-rules-for-captive-portal