add BGP control plane filtering
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
*filter
|
||||
:INPUT ACCEPT [0:0]
|
||||
{% if salt["pillar.get"]("control-plane-protection:bgp:IPv6",None) != None %}
|
||||
-A INPUT -p tcp --dport 179 -m set --match-set control-plane-bgp-v6 src -j ACCEPT
|
||||
-A INPUT -p tcp --dport 179 -m tcp -j REJECT --reject-with tcp-reset
|
||||
{% endif %}
|
||||
:FORWARD ACCEPT [0:0]
|
||||
-A FORWARD -m set --match-set bcp38-cone-oface-v6 src,dst -j ACCEPT
|
||||
-A FORWARD -m set --match-set bcp38-else-oface-v6 src,dst -j DROP
|
||||
|
Reference in New Issue
Block a user