"Network: SymmetricNAT" problem

I2P router issues
User avatar
zzz
Posts: 180
Joined: 31 Mar 2018 13:15

Re: "Network: SymmetricNAT" problem

Post by zzz »

I2P-over-VPN doesn't work well and you shouldn't do it if at all possible. We report symmetric NAT because the VPN is doing symmetric NAT stuff. If you have to use VPN, and it works, then ignore it saying symmetric NAT, and have fun.
User avatar
AntibodyMama
Posts: 15
Joined: 18 Jun 2024 20:45

Re: "Network: SymmetricNAT" problem

Post by AntibodyMama »

zzz wrote: 14 Aug 2024 15:42 I2P-over-VPN doesn't work well and you shouldn't do it if at all possible. We report symmetric NAT because the VPN is doing symmetric NAT stuff. If you have to use VPN, and it works, then ignore it saying symmetric NAT, and have fun.
Thanks much
anikey
Posts: 44
Joined: 30 Nov 2023 20:08

Re: "Network: SymmetricNAT" problem

Post by anikey »

On that note, I think there is a way to exclude VPN from specific programs (or, rather, enable it for specific processes).

There is a feature in the kernel called network namespaces (netns). It allows to create separate spaces with different network interfaces.

The plan is like this:
- Create a netns with the command `ip netns add`
- After the VPN is up, move the tun/tap interface of the vpn (typically called tun0, or wg0, or something like that [but definitely not wlan0, eth0, wlp..., enp..., beacuse those are usually physical interfaces]) into the netns, with `ip link set <tun interface> netns <netns name>`.
- Launch specific programs, for which you want to enable VPN, in the netns, with `ip netns exec`, or attach processes with `ip netns attach`.
- When want to cleanup, remove netns with `ip netns delete`.

(i haven't actually tried myself, because i haven't used vpn since switching to linux, but this seems like it should work)

That is the rough plan, please consult the man pages [ip-link(8), ip-netns(8), etc.] for details.
If you wanted to run everything except I2P through the VPN, you would need to attach everything (or at least the programs that are internet-connected) except the I2P process to the netns.

Linux namespaces are an amazing containment and isolation feature.
User avatar
AntibodyMama
Posts: 15
Joined: 18 Jun 2024 20:45

Re: "Network: SymmetricNAT" problem

Post by AntibodyMama »

anikey wrote: 14 Aug 2024 22:00 On that note, I think there is a way to exclude VPN from specific programs (or, rather, enable it for specific processes).

There is a feature in the kernel called network namespaces (netns). It allows to create separate spaces with different network interfaces.

The plan is like this:
- Create a netns with the command `ip netns add`
- After the VPN is up, move the tun/tap interface of the vpn (typically called tun0, or wg0, or something like that [but definitely not wlan0, eth0, wlp..., enp..., beacuse those are usually physical interfaces]) into the netns, with `ip link set <tun interface> netns <netns name>`.
- Launch specific programs, for which you want to enable VPN, in the netns, with `ip netns exec`, or attach processes with `ip netns attach`.
- When want to cleanup, remove netns with `ip netns delete`.

(i haven't actually tried myself, because i haven't used vpn since switching to linux, but this seems like it should work)

That is the rough plan, please consult the man pages [ip-link(8), ip-netns(8), etc.] for details.
If you wanted to run everything except I2P through the VPN, you would need to attach everything (or at least the programs that are internet-connected) except the I2P process to the netns.

Linux namespaces are an amazing containment and isolation feature.
This seems to be lots of work. I am getting "Network: OK" when the VPN in turned off and "Network: SymmetricNAT" when the VPN in turned on. I consulted the VPN company and will see what they say.

I tried excluding the i2p processes from the VPN app but it does not seem to be working, i excluded:
/usr/bin/java-service-wrapper
and
/usr/lib/jvm/java-21-openjdk/bin/java
User avatar
1337s
Posts: 2
Joined: 01 Oct 2024 04:35

Re: "Network: SymmetricNAT" problem

Post by 1337s »

I tried excluding the i2p processes from the VPN app but it does not seem to be working, i excluded:
/usr/bin/java-service-wrapper
and
/usr/lib/jvm/java-21-openjdk/bin/java

Which VPN protocol are you using? Not all of them support split tunneling, I would imagine that if you're using one of those this would have little affect.
1337s.i2p
User avatar
AntibodyMama
Posts: 15
Joined: 18 Jun 2024 20:45

Re: "Network: SymmetricNAT" problem

Post by AntibodyMama »

1337s wrote: 09 Oct 2024 22:54
I tried excluding the i2p processes from the VPN app but it does not seem to be working, i excluded:
/usr/bin/java-service-wrapper
and
/usr/lib/jvm/java-21-openjdk/bin/java

Which VPN protocol are you using? Not all of them support split tunneling, I would imagine that if you're using one of those this would have little affect.
I was using WireGuard. The app has an option to use OpenVPN.
I am now using the VPN as a browser extension instead of system wide VPN via the desktop app. This makes me run i2p without a VPN and use only the VPN in the browser. The disadvantage is that all the other desktop app or system updates will not use the VPN.
User avatar
1337s
Posts: 2
Joined: 01 Oct 2024 04:35

Re: "Network: SymmetricNAT" problem

Post by 1337s »

AntibodyMama wrote: 09 Oct 2024 23:19
1337s wrote: 09 Oct 2024 22:54
I tried excluding the i2p processes from the VPN app but it does not seem to be working, i excluded:
/usr/bin/java-service-wrapper
and
/usr/lib/jvm/java-21-openjdk/bin/java

Which VPN protocol are you using? Not all of them support split tunneling, I would imagine that if you're using one of those this would have little affect.
I was using WireGuard. The app has an option to use OpenVPN.
I am now using the VPN as a browser extension instead of system wide VPN via the desktop app. This makes me run i2p without a VPN and use only the VPN in the browser. The disadvantage is that all the other desktop app or system updates will not use the VPN.
Try connecting to the vpn using the built in software in your OS and select protocol PPOE and do not force DNS over remote gateway.
1337s.i2p
User avatar
AntibodyMama
Posts: 15
Joined: 18 Jun 2024 20:45

Re: "Network: SymmetricNAT" problem

Post by AntibodyMama »

I used port forwarding in my router and i am getting "Network: OK", everything seems to be working fine now.
The VPN in not used tho.
Screenshot_20241013_062306.png
Screenshot_20241013_062306.png (62.25 KiB) Viewed 373 times
I used the port from my UDP configuration in WAN and LAN ports, also the LAN host has my device mac address.
Post Reply