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 ...@@ -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 10.231.137.0/24 || ipset flush allowed_guests ipset -q create allowed_guests bitmap:ip range 10.231.137.0/24 || ipset flush allowed_guests
iptables -t nat -N CAPTIF 2> /dev/null || iptables -t nat -F CAPTIF iptables -t nat -N CAPTIF 2> /dev/null || iptables -t nat -F CAPTIF
#iptables -t nat -A PREROUTING --src 10.231.137.189 -j CAPTIF #iptables -t nat -A PREROUTING --src 10.231.137.189 -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 10.231.137.1 iptables -t nat -A CAPTIF -p tcp --dport 80 -m set \! --match-set allowed_guests src -j DNAT --to-destination 10.231.137.1
iptables -t nat -A CAPTIF -j RETURN iptables -t nat -A CAPTIF -j RETURN
# </Portail captif> # </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