ansible-ffrgb/roles/exit_ip/templates/rules.v4.j2

19 lines
928 B
Plaintext
Raw Normal View History

2017-03-27 21:00:03 +02:00
# {{ ansible_managed }}
*nat
:PREROUTING ACCEPT [1:136]
:INPUT ACCEPT [1:136]
:OUTPUT ACCEPT [2:472]
:POSTROUTING ACCEPT [0:0]
2021-08-03 18:19:26 +02:00
-A POSTROUTING -o {{ ansible_default_ipv4.interface }} -j SNAT --to-source {{ nat_pool }}
2017-03-27 21:00:03 +02:00
COMMIT
*filter
:INPUT ACCEPT [1124:131621]
2021-08-03 11:37:19 +02:00
-A INPUT -p udp -m multiport -i br-{{ site_code }} --destination-ports {{ fastd_port }}:{{ fastd_port + (fastd_instances-1) }} -j LOG --log-prefix "fastd-vpn-int-loop-" -m limit --limit 5/min
-A INPUT -p udp -m multiport -i br-{{ site_code }} --destination-ports {{ fastd_port }}:{{ fastd_port + (fastd_instances-1) }} -j REJECT
2021-08-03 11:37:19 +02:00
-A INPUT -p udp -i br-{{ site_code }} --dport {{ mesh_wg_port }} -j LOG --log-prefix "wg-vpn-int-loop-" -m limit --limit 5/min
-A INPUT -p udp -i br-{{ site_code }} --dport {{ mesh_wg_port }} -j REJECT
2017-03-27 21:00:03 +02:00
:FORWARD ACCEPT [0:0]
2018-07-21 01:40:20 +02:00
-A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
2017-03-27 21:00:03 +02:00
:OUTPUT ACCEPT [1151:175226]
COMMIT