Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do to allow icmp ping from anywhere to linux with nordvpn? #344

Closed
tm4ig opened this issue Mar 30, 2024 · 6 comments
Closed

How do to allow icmp ping from anywhere to linux with nordvpn? #344

tm4ig opened this issue Mar 30, 2024 · 6 comments

Comments

@tm4ig
Copy link

tm4ig commented Mar 30, 2024

How can I to allow icmp ping from anywhere to my linux host when nordvpn connection is active?
Earlier I have created issue #158 that nordvpn firewall can not be fully disabled and it have not resolved yet.
Nordvpn firewall is blocking icmp even Firewall disabled option is installed.
Now I want to allow icmp ping for my host where nordvpn is using. How can I to do it?
I have tried nordvpn whitelist add subnet 0.0.0.0/0 command but with this setting nordvpn does not work.

@mariusSincovici
Copy link
Contributor

hi
would meshnet and nicknames be a possible option?
In this way the pings would go thru the tunnel and leak.

@tm4ig
Copy link
Author

tm4ig commented Apr 3, 2024

I do not not use meshnet. I want that my linux host with nordvpn will be available by ping from everywhere

@mariusSincovici
Copy link
Contributor

Then in this case you might need to play with the routing table and the firewall.

Because by default when the VPN is started, the VPN's interface will be used to send the traffic by default. Allowing packets to bypass the tunnel you'll need to have a route for a specific destination or packet type(check the Policy-based routing). And then to configure the firewall to allow those packets. Kind of this is what happens when LAN access is enabled.

But please keep in mind that this are VPN leaks and should be configured with care because other apps might exploit this.

@tm4ig
Copy link
Author

tm4ig commented Apr 6, 2024

I do not want allow ping from my host to anywhere outside vpn. I want allow ping from remote hosts to my host.

@tm4ig
Copy link
Author

tm4ig commented Apr 6, 2024

after add

iptables -A OUTPUT -t mangle -p icmp --icmp-type 0 -j MARK --set-mark 0xe1f1

ping is working

@mariusSincovici
Copy link
Contributor

I'm closing this, if more info is needed from our side let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants