Add VPN Loop Filter for Wireguard, too #27

Closed
trm235 wants to merge 2 commits from wg_vpnloop_filter into master
2 changed files with 2 additions and 1 deletions
Showing only changes of commit cc20230213 - Show all commits

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
__pycache__ __pycache__
site.retry site.retry
*.pyc *.pyc
ff-ansible.code-workspace

View File

@ -1,7 +1,7 @@
# {{ ansible_managed }} # {{ ansible_managed }}
*filter *filter
:INPUT ACCEPT [0:0] :INPUT ACCEPT [0:0]
-A INPUT -p udp -m multiport -i br-{{ site_code }} --destination-ports {{ fastd_port }}:{{ fastd_port + (fastd_instances-1) }} -j LOG --log-prefix "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 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 -A INPUT -p udp -m multiport -i br-{{ site_code }} --destination-ports {{ fastd_port }}:{{ fastd_port + (fastd_instances-1) }} -j REJECT
-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 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 -A INPUT -p udp -i br-{{ site_code }} --dport {{ mesh_wg_port }} -j REJECT