Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maud Kerebel
scripts
Commits
12bbb593
Commit
12bbb593
authored
Jun 29, 2014
by
Pierre-Elliott Bécue
Browse files
[fete-du-slip] Apu portail captif.
parent
95fe74b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/install-party/fete-du-slip
View file @
12bbb593
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment