You've already forked custom-firewall
chore: added create table DOCKER-USER
This commit is contained in:
@@ -12,6 +12,7 @@ iptables -I INPUT 1 -p tcp -m multiport --dports {{ whitelist_ssh_port }} -j f2b
|
|||||||
|
|
||||||
iptables -N enemy_input
|
iptables -N enemy_input
|
||||||
iptables -I INPUT 1 -i {{ whitelist_interface }} -j enemy_input
|
iptables -I INPUT 1 -i {{ whitelist_interface }} -j enemy_input
|
||||||
|
iptables -N DOCKER-USER
|
||||||
iptables -I DOCKER-USER 1 -i {{ whitelist_interface }} -j enemy_input
|
iptables -I DOCKER-USER 1 -i {{ whitelist_interface }} -j enemy_input
|
||||||
iptables -I enemy_input 1 -p tcp -m multiport ! --dports {{ whitelist_public_port|join(',') }} -m set --match-set {{ whitelist_ip4_name }} src -j ACCEPT
|
iptables -I enemy_input 1 -p tcp -m multiport ! --dports {{ whitelist_public_port|join(',') }} -m set --match-set {{ whitelist_ip4_name }} src -j ACCEPT
|
||||||
iptables -I enemy_input 2 -m set --match-set {{ whitelist_ip4_name }} src -j ACCEPT
|
iptables -I enemy_input 2 -m set --match-set {{ whitelist_ip4_name }} src -j ACCEPT
|
||||||
@@ -26,6 +27,7 @@ ip6tables -I INPUT 1 -p tcp -m multiport --dports {{ whitelist_ssh_port }} -j f2
|
|||||||
|
|
||||||
ip6tables -N enemy_input
|
ip6tables -N enemy_input
|
||||||
ip6tables -I INPUT 1 -i {{ whitelist_interface }} -j enemy_input
|
ip6tables -I INPUT 1 -i {{ whitelist_interface }} -j enemy_input
|
||||||
|
ip6tables -N DOCKER-USER
|
||||||
ip6tables -I DOCKER-USER 1 -i {{ whitelist_interface }} -j enemy_input
|
ip6tables -I DOCKER-USER 1 -i {{ whitelist_interface }} -j enemy_input
|
||||||
ip6tables -I enemy_input 1 -p tcp -m multiport ! --dports {{ whitelist_public_port|join(',') }} -m set --match-set {{ whitelist_ip6_name }} src -j ACCEPT
|
ip6tables -I enemy_input 1 -p tcp -m multiport ! --dports {{ whitelist_public_port|join(',') }} -m set --match-set {{ whitelist_ip6_name }} src -j ACCEPT
|
||||||
ip6tables -I enemy_input 2 -m set --match-set {{ whitelist_ip6_name }} src -j ACCEPT
|
ip6tables -I enemy_input 2 -m set --match-set {{ whitelist_ip6_name }} src -j ACCEPT
|
||||||
|
|||||||
Reference in New Issue
Block a user