mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-02 10:53:01 +02:00
Iptables to ansible_ssh_port
This commit is contained in:
parent
376b023565
commit
37275e2ae3
2 changed files with 4 additions and 4 deletions
|
@ -64,8 +64,8 @@ COMMIT
|
|||
-A INPUT -p icmp --icmp-type echo-request -m hashlimit --hashlimit-upto 5/s --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-name icmp-echo-drop -j ACCEPT
|
||||
# Accept IPSEC/WireGuard traffic to ports {{ subnets|join(',') }}
|
||||
-A INPUT -p udp -m multiport --dports {{ ports|join(',') }} -j ACCEPT
|
||||
# Allow new traffic to port {{ ssh_port }} (SSH)
|
||||
-A INPUT -p tcp --dport {{ ssh_port }} -m conntrack --ctstate NEW -j ACCEPT
|
||||
# Allow new traffic to port {{ ansible_ssh_port }} (SSH)
|
||||
-A INPUT -p tcp --dport {{ ansible_ssh_port }} -m conntrack --ctstate NEW -j ACCEPT
|
||||
|
||||
{% if ipsec_enabled %}
|
||||
# Allow any traffic from the IPsec VPN
|
||||
|
|
|
@ -70,8 +70,8 @@ COMMIT
|
|||
-A INPUT -p icmpv6 --icmpv6-type echo-request -m hashlimit --hashlimit-upto 5/s --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-name icmp-echo-drop -j ACCEPT
|
||||
# Accept IPSEC/WireGuard traffic to ports {{ subnets|join(',') }}
|
||||
-A INPUT -p udp -m multiport --dports {{ ports|join(',') }} -j ACCEPT
|
||||
# Allow new traffic to port {{ ssh_port }} (SSH)
|
||||
-A INPUT -p tcp --dport {{ ssh_port }} -m conntrack --ctstate NEW -j ACCEPT
|
||||
# Allow new traffic to port {{ ansible_ssh_port }} (SSH)
|
||||
-A INPUT -p tcp --dport {{ ansible_ssh_port }} -m conntrack --ctstate NEW -j ACCEPT
|
||||
|
||||
# Accept properly formatted Neighbor Discovery Protocol packets
|
||||
-A INPUT -p icmpv6 --icmpv6-type router-advertisement -m hl --hl-eq 255 -j ACCEPT
|
||||
|
|
Loading…
Add table
Reference in a new issue