I would really appreciate it if someone would double check me. Sorry for the screenshot. Either the Lemmy code button isn’t great or I’m just dum at formatting.
This has local *arr servers available and traceroute shows me going through the VPN.
The largest blue blotch is the ip address of a mullvad vpn server.
Rpi4, Raspberry Pi OS lite.
Mullvad VPN. IPv6 has been nuked. Using Wireguard through wg-quick.
wg2 originates from a .conf file from Mullvad with IPv6 stripped.
Do these UFW settings look right?
Why would you strip ipv6 if mullvad supports it. The reason people disable or block v6 are for 2 reasons, ignorance, and/or the vpn providor doesn’t support ipv6. V4 and v6 can and usually do run at the same time (this is called dual stack), so if the vpn only touches the v4 side of things, v4 will be tunneled while v6 will be unaffected.
Also, the firewall doesn’t matter if you use a torrent client that can just bind to the wg interface (assuming there is no nat being performed from the wg interface to the physical interface). The client will take one or all of the ips on the interface, which will make it impossible to leak IP directly assuming your switch or router doesn’t also have an ip in the same subnet as your wg interface ip.
I don’t know UFW, but if you run
iptables-save
ornft list ruleset
i can take a look to see if it is sane.But what i can tell is that it might work. You appear to be only allowing public traffic to wg. It should be noted that this setup will likely fail at some point because you are hard coding the IP. It should fail safe, but the public internet will not work.
I think I’m just ignorant 😅 I know how ipv4 works and all the addressing and that’s why I’m currently sticking to it I just couldn’t really wrap my head about ipv6 I guess there aren’t any major changes just other addressed
There are definitely differences, but usually they don’t matter from a simple address and routing perspective.
For example, there is no ARP in IPv6. Instead another protocol is used called Neighbor Discovery Protocol, which actually is done through ICMPv6. Therefore, if you blindly block all ICMPv6, your network may break.
Once you have a grasp on v6, it is much better than v4 because even the smallest common v6 network size of /64 is many times larger than all the addresses in v4. Every device can have it’s own global ip, so you no longer need nat at all. Everything can easily connect, assuming there is no firewall blocking it.
I’m stripping ipv6 because I’m ignorant on a lot of this and a lot people say it’s bad and show how to strip it. I’m a script kiddie in a old guys body.
I ran both
iptables-save
andnft list ruleset
but, the output was so offensively formatted when inserted into Lemmy, I’ll wait until I’ve had some sleep to try and get it legible.Right, fail safe is the concern, I couldn’t get the kill switch to work so I started monkeying with UFW.