Hey hey,
I’m redoing my nixos-container to work with mullvad vpn (via services.mullvad), coming from openvpn (protonvpn). I’m running into some trouble getting privateNetwork to work with the container, and it seems like i’m not the only one: (1) (2).
The wiki leads me to believe that my configuration should be enough:
Outside container:
networking = {
nat = {
enable = true;
internalInterfaces = [ "ve-+" ]; # packets coming from ve-* interfaces
externalInterface = "wg0-mullvad"; # will be translated to VPN thru NAT
};
# don't remeber why i had this set, but makes no difference
# networkmanager.unmanaged = [ "interface-name:ve-*" ];
};
<snip>
Inside container:
containers.pirateship = {
autoStart = true;
privateNetwork = true; # needed for vpn
hostAddress = "192.168.100.10"; # address of the container in pantheon
localAddress = "192.168.100.11"; # address of pantheon in the container
<snip>
However,
[root@pirateship:~]# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 192.168.100.11 icmp_seq=1 Destination Host Unreachable
disabling privateNetwork makes everything connect, and this worked with my earlier openvpn setup.
I don’t know enough about networking to be able to diagnose what’s going wrong, and there seems to be nothing relevant in any logs AFAICT. Anyone know what’s going wrong, or some way to debug this? Any suggestions are welcome ![]()