Closed Trakkasure closed 1 year ago
Update:
After container restart, it started working. No changes to the configuration or network. However, the endpoint did automatically change after restarting the container. I did try setting my own endpoint before posting, but it did not make a difference.
Can an additional health-check be added to include pinging a remote target (set by environment variable) to confirm that packets are actually getting out and back?
FYI: it did stop working again. I resolve this longer term my modifying the script to allow me to choose which server returned by setting an index.
I'm having the same issue, but restarting doesn't help. This is my most minimalist compose using WSL2 on Windows:
version: "3"
services:
nordlynx:
image: ghcr.io/bubuntux/nordlynx
container_name: nordlynx
cap_add:
- NET_ADMIN
environment:
- PRIVATE_KEY=$NORD_PRIVATE_KEY
restart: unless-stopped
Logs:
[2022-07-29T18:53:13+00:00] Connecting...
[#]
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.5.0.2/32 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] wg set wg0 fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] iptables-restore -n
iptables-restore v1.8.7 (legacy): unknown option "--save-mark"
Error occurred at line: 5
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[#] ip -4 rule delete table 51820
[#] ip -4 rule delete table main suppress_prefixlength 0
[#] ip link delete dev wg0
[2022-07-29T18:53:14+00:00] Connected! \(ᵔᵕᵔ)/
I remove the ALLOWED_IPS and i was eable to curl ifconfig.io and everything work
If I set the END_POINT variable, everything works. There could be some similarities with the root cause. Lacking focus is keeping me from being able to properly diagnose this issue. If anyone has been successful in getting this to function as a gateway (not using container networking mode) I would be interested to learn more.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Experiencing the same issue. Logs says it's connected but cannot run a ping from inside the container. Same thing with the nordvpn image.
Same here, even though it says "Connected! (ᵔᵕᵔ)/", I cannot contact anything outside the local network. I tried everything I could find on this repository, but none of the proposed solutions solved it.
With and without: sysctls:
/dev/net/tun
as well as removing the ALLOWED_IPS
I would suggest moving to gluetun. Easy to setup and i haven't had any issues since i started using it.
Same problem here. Using the image's last version and restarted the container a couple of times as well. @bubuntux Julio, any ideas what might be happening?
I think is a DNS issue created by this https://github.com/bubuntux/nordlynx/commit/94a29a6bf7a3b84cfda382e915b4a4d845de93f4 seems like you need to set a custom dns
If gluten or similar work for you, please use that instead if you are not willing to put the work of solving your issue with this container
@bubuntux not sure what made you say i'm "not willing to put the work"... I tried the suggested steps so far on the thread, as well updating my containers. I don't have the knowledge to help at the code level am willing to test and help debug whichever way i can.
What do you mean setting a custom DNS? Doesnt the commit you link does exactly that (uses NordVPN's DNS by default if none is provided)? Do you mean we should be setting a custom DNS different that Nord's?
@lfilho i didn't meant that for you in particular, i mentioned due other ppl suggestion an alternative and i think they should use that alternative, in general if there is another solution that works just use that, if you want to make this container work for you well is up to you, i created this project for myself and it works for me, is available for anyone to use or fork to their needs, but i don't have the time to fix other ppls issues, sry.
yeah i think this issue has happen before and was the reason i removed Nordvpn DNS in the past, but that created dns leaks in some scenarios, you can try rolling back that change and build and test it
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
Using a portainer stack, I cannot connect (ping or wget) to any site, even within a shell inside the container.
To Reproduce using docker-compose
Expected behavior
After starting, I should be able to open a "console" (/bin/bash) within the container to execute "ping 1.1.1.1" all packets are dropped.
Logs
No errors in logs, but here are the logs:
Additional context
Proxmox VM - Alpine Linux Kernel 5.15.16 Portainer 2.14.0 Docker 20.10.12
I can add "NET_LOCAL" setting and I'm able to ping IPs within that network.
ip route:
wg show
iptables -L When running this, it took 5 seconds per line to show