Commit 12bbb593 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue
Browse files

[fete-du-slip] Apu portail captif.

parent 95fe74b7
......@@ -25,7 +25,7 @@ iptables -t mangle -A PREROUTING -i eth0 -m state --state NEW -j LOG --log-pref
ipset -q create allowed_guests bitmap:ip range || ipset flush allowed_guests
iptables -t nat -N CAPTIF 2> /dev/null || iptables -t nat -F CAPTIF
#iptables -t nat -A PREROUTING --src -j CAPTIF
iptables -t nat -A PREROUTING -j CAPTIF
#iptables -t nat -A PREROUTING -j CAPTIF
iptables -t nat -A CAPTIF -p tcp --dport 80 -m set \! --match-set allowed_guests src -j DNAT --to-destination
iptables -t nat -A CAPTIF -j RETURN
# </Portail captif>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment