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

NordVPN: disconnected shortly after connecting #279

Open
d3spwn opened this issue Mar 16, 2019 · 19 comments
Open

NordVPN: disconnected shortly after connecting #279

d3spwn opened this issue Mar 16, 2019 · 19 comments

Comments

@d3spwn
Copy link

d3spwn commented Mar 16, 2019

I'm able to connect irssi to an IRC server (with SSL) using proxychians-ng (as suggested by irssi). However a few seconds later I get disconnected. I'm using the default proxychains4.conf with just one socks5 proxy added. The same happens when I use a different proxy server or connect to a non SSL IRC server.

-!- Irssi: warning SSL read error: server closed connection unexpectedly
-!- Irssi: Connection lost to chat.freenode.net
$ proxychains irssi
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.13
@rofl0r
Copy link
Owner

rofl0r commented Mar 16, 2019

as suggested by irssi

can you elaborate on that ?

server closed connection unexpectedly

i don't think this is due to proxychains, but due to the used proxy.

@d3spwn
Copy link
Author

d3spwn commented Mar 16, 2019

https://irssi.org/documentation/startup/#proxies-and-irc-bouncers says:

Using proxychains-ng (for SOCKS) is recommended

I'm using a NordVPN SOCKS5 proxy. I've send them a support request as well, but I doubt they can help. I'm not sure how to troubleshoot this issue or if it's even supposed to be able to work at all.

@rofl0r
Copy link
Owner

rofl0r commented Mar 16, 2019

interesting. does it work when you connect to the IRC network with profixied netcat, or another proxified IRC app like hexchat ?

@d3spwn
Copy link
Author

d3spwn commented Mar 17, 2019

You're right. It's probably my VPN provider. I've tried a few random free SOCKS5 proxies from this list https://www.socks-proxy.net/ and some of them work just fine.

@rofl0r
Copy link
Owner

rofl0r commented Mar 17, 2019

i've seen a couple bug reports mentioning nordvpn in specific, i suspect their socks gateway software does something particular that's currently not compatible with proxychains. would you mind mentioning in your support request that i would be willing to work with them to find and eliminate the issue ? i think it would be sufficient if i get a pcap file of a connection attempt, for starters.

@rofl0r
Copy link
Owner

rofl0r commented Apr 16, 2019

have you been able to contact nordvpn in this context, @d3spwn ?

@d3spwn
Copy link
Author

d3spwn commented Apr 17, 2019

I tried, but I couldn't get past the scripted replies.

@rofl0r rofl0r changed the title disconnected shortly after connecting NordVPN: disconnected shortly after connecting Apr 17, 2019
@i0rpc
Copy link

i0rpc commented Apr 18, 2019

@rofl0r

Im willing to purchase the vpn for you to see if you could find the issue & make the changes.
also, curious if your proxychains can have pptp support added.

if you wanna purchase the vpn your self and just leave your btc wallet or paypal ill refund you.

thank you.

@rofl0r
Copy link
Owner

rofl0r commented Apr 18, 2019

if you wanna purchase the vpn your self and just leave your btc wallet or paypal ill refund you.

@i0rpc thanks for the offer, but i currently don't have access to the one or the other

what would work though is if you order the socks5 access in your name and tell me the credentials in private, so i can test it. theoretically a single day of access would be sufficient, (but supposedly one needs to order at least a month?) so the cost could be kept minimal. we could exchange the credentials over IRC (channel is mentioned in README).

@rofl0r
Copy link
Owner

rofl0r commented Apr 19, 2019

@i0rpc i've seen you joining. next time you enter the channel with the same nickname you will receive a message...

@rofl0r
Copy link
Owner

rofl0r commented Apr 20, 2019

ok, thanks to an account provided by @i0rpc i was able to debug and find the issue.

nordvpn's socks5 service has a hardcoded inactivity timeout of 10 seconds. if there's no packet traffic during 10 seconds, the connection will be closed.
This is insufficient for a couple of protocols, most notably IRC. Usually, IRC servers send a PING packet every couple minutes on otherwise inactive connections. There's actually no standardized timeout and i suppose the timeout used differs per IRC network, with most of them probably using a PING interval of 60 seconds, but i've also seen some with 5 mins.
So NordVPN should fix their inactivity timeout and set it to something reasonable, like 310 seconds to be on the safe side, but at the very least 60+ seconds.

@d3spwn would you mind sending what i wrote above to support@nordvpn.com ? apparently they've got no ticket system and the account i have is not capable of sending emails.

@d3spwn
Copy link
Author

d3spwn commented Apr 21, 2019

I've forwarded your findings to their support team and asked them to keep me informed. I'll post here if I get any reply.

@d3spwn
Copy link
Author

d3spwn commented Apr 22, 2019

This is the reply I got:

Unfortunately, the 10 second inactivity timeout on our SOCKS5 connections has specific reasoning behind it, and is unlikely to change.

For your purposes, we can only recommend to set up an HTTP proxy connection using port 80.

@rofl0r
Copy link
Owner

rofl0r commented Apr 22, 2019

thanks. so the NordVPN socks5 service is practically useless and shouldn't be used. let's keep this open for the world to see until NordVPN is shamed into conformance or out of business.

@rofl0r
Copy link
Owner

rofl0r commented Apr 29, 2019

i did a test with their HTTP server, which works correctly. i didn't have any issues with an IRC server using a ping interval of 180 seconds.
might also be interesting to test this: http://www.tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html to set a tcp keepalive timeout < 10 seconds, but their socks5 software will probably not operate on that layer.

@rofl0r rofl0r pinned this issue Apr 30, 2019
@rhovelz
Copy link

rhovelz commented Jan 19, 2020

meanwhile Im fucked up right now because of this in 2020

@zebdo
Copy link

zebdo commented Oct 1, 2022

2022 me too!

@UMLAUTaxl
Copy link

UMLAUTaxl commented Jun 22, 2023

i got my irc client to work with this tutorial: Proxy setup on qBittorrent
i searched for "http"

• Type: SOCKS5
• Host: Address of the proxy server of your choice

Choose from this list of servers:
amsterdam.nl.socks.nordhold.net
atlanta.us.socks.nordhold.net
dallas.us.socks.nordhold.net
los-angeles.us.socks.nordhold.net
nl.socks.nordhold.net
se.socks.nordhold.net
stockholm.se.socks.nordhold.net
us.socks.nordhold.net

Port: 1080
Select the Use proxy for peer connections and the Authentication checkboxes.
Username: Your NordVPN service username
Password: Your NordVPN service password`

it's just not every server works. you have to find out yourself

edit:
oh, well. it might not be that stable ... looks like i lost connection after 10 min
and again after 18 minutes :/

@dp289m
Copy link

dp289m commented Mar 7, 2024

2024 still the same

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

7 participants