Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Blanc
scripts
Commits
2614286f
Commit
2614286f
authored
Oct 01, 2014
by
Daniel STAN
Browse files
firewall4: ipset CONFIRMATION est un hash:ip
Pour pouvoir indiquer les IPs de plusieurs range. (genre appt et cie)
parent
ee76d0dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
gestion/gen_confs/firewall4/komaz.py
View file @
2614286f
...
...
@@ -42,7 +42,7 @@ class firewall(base.firewall_routeur):
})
# Portail captif/blacklist soft: ipset des gens ayant cliqué pour continuer à naviguer
self
.
ipset
[
'confirmation'
]
=
base
.
Ipset
(
"CONFIRMATION"
,
"
ipmap"
,
"--from 138.231.136.0 --to 138.231.151.255
"
)
self
.
ipset
[
'confirmation'
]
=
base
.
Ipset
(
"CONFIRMATION"
,
"
hash:ip"
,
"
"
)
def
blacklist_maj
(
self
,
ips
):
"""Mise à jour des blacklistes"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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