Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Trouble connection to certain droplets when connected to VPN server droplet
Here is an interesting little problem I am having. Kudos to anyone who can clue me in to an answer:
All my droplets are Ubuntu 14.04
All are based in San Francisco
All up to date and running fine for at least a month
Recently I set up OpenVPN on a droplet, and connect to that vpn from home. Works great for the last week. No problems with the VPN or droplet or home network.
I keep the VPN connected at all times for various reasons.
Yesterday I needed to ssh in to another droplet (webserver), but encountered this error:
ssh_exchange_identification: read: Connection reset by peer
If I disconnect from the VPN, I can ssh in fine to that droplet.
I tried a few other droplets I manage, and some of them will ssh fine while on the VPN, and some will not.
The common factor for the non-connecting ones seems to be the subnet of the droplet: 255.255.240.0 which is the same subnet of the droplet that I have OpenVPN running on.
So, in summary: Droplets that have the same subnet of my VPN server will not allow me to connect while I am connected to the VPN.
Droplets on a different subnet will connect fine.
Are there some rules I can add to my VPN config that will allow me to ssh to droplets within the same subnet?
Thanks in advance!!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×