NHAS / wag

Simple Wireguard 2FA
BSD 3-Clause "New" or "Revised" License
502 stars 27 forks source link

Leaves iptables rule after stopping #1

Closed paulb-smartit closed 2 years ago

paulb-smartit commented 2 years ago

Very nice.

I'm just testing it out and picked one small issue. When stopping, it leaves one iptables rule behind. So next time you start you get another one, and another one, etc.

-A INPUT -i wg0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -i wg0 -p tcp -m tcp --dport 8080 -j ACCEPT
NHAS commented 2 years ago

Hi there, Thanks!

Seems that when I start the iptables part, its adding an additional rule (and not removing it).

Thanks for pointing this out! Latest commit should fix this.