[fete-du-slip] Apu portail captif.
This commit is contained in:
parent
95fe74b74b
commit
12bbb59356
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
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 -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 -j RETURN
|
||||
# </Portail captif>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue