iptables / staging: fix the actual used template
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
a14b081ab3
commit
363af73e57
1 changed files with 3 additions and 5 deletions
|
@ -14,11 +14,9 @@
|
|||
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
|
||||
# if the blocked_ips is defined - drop them
|
||||
{% if blocked_ips is defined %}
|
||||
{% for ip in blocked_ips %}
|
||||
-A INPUT -s {{ ip }} -j DROP
|
||||
{% endfor %}
|
||||
# if the host is external, block some ips
|
||||
{% if external == 'true' %}
|
||||
-A INPUT -p all -m set --match-set blocklist src -j REJECT
|
||||
{% endif %}
|
||||
|
||||
# allow ssh - always
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue