Now, it happens the strangest thing:
I have one sd card with raspbian, pivpn and wireguard without ufw, only pivpn with wireguard. It works.
I made a copy of this sdcard, and create an sdcard to play with. So I installed ufw and it worked with these rules:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), allow (routed)
New profiles: skip
To Action From
-- ------ ----
Anywhere ALLOW IN 192.168.1.0/24
Anywhere ALLOW IN 10.176.62.0/24
18000/udp ALLOW IN Anywhere
18000/udp (v6) ALLOW IN Anywhere (v6)
But... if I restart the pi, there is no internet via wireguard. It connects, but no internet.
I did it again, create a new card, all working (without ufw), install ufw, create rules, activate ufw, all working, restart the pi, and not working anymore. It seems that ufw changes some rules in iptables than enter into force when restarting, but honestly, I am completely lost.
Any one can help? Much appreciated.
I have one sd card with raspbian, pivpn and wireguard without ufw, only pivpn with wireguard. It works.
I made a copy of this sdcard, and create an sdcard to play with. So I installed ufw and it worked with these rules:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), allow (routed)
New profiles: skip
To Action From
-- ------ ----
Anywhere ALLOW IN 192.168.1.0/24
Anywhere ALLOW IN 10.176.62.0/24
18000/udp ALLOW IN Anywhere
18000/udp (v6) ALLOW IN Anywhere (v6)
But... if I restart the pi, there is no internet via wireguard. It connects, but no internet.
I did it again, create a new card, all working (without ufw), install ufw, create rules, activate ufw, all working, restart the pi, and not working anymore. It seems that ufw changes some rules in iptables than enter into force when restarting, but honestly, I am completely lost.
Any one can help? Much appreciated.
Statistics: Posted by Yopispo — Sun Sep 15, 2024 8:43 pm