Closed LoganDark closed 2 years ago
Adding these rules to iptables:
-A INPUT -p tcp -m tcp --dport <port> -j ACCEPT -P INPUT DROP
cause the VPN to stop working.
I'm not sure why. Setting -P INPUT ACCEPT makes it work again.
-P INPUT ACCEPT
I'm a total iptables noob so what is going on here?
oops, looks like WireGuard uses UDP, not TCP!
-A INPUT -p udp -m udp --dport <port> -j ACCEPT
found by using -A INPUT -j LOG and looking in /var/log/kern.log for traffic on the WireGuard port
-A INPUT -j LOG
/var/log/kern.log
Adding these rules to iptables:
cause the VPN to stop working.
I'm not sure why. Setting
-P INPUT ACCEPT
makes it work again.I'm a total iptables noob so what is going on here?