Use openvpn client on an EC2 disconnects my ssh session

Post your questions about VPN Gate Academic Experiment Service here. Please answer questions if you can afford.
Post Reply
moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Use openvpn client on an EC2 disconnects my ssh session

Post by moatazelmasry » Fri Dec 11, 2015 12:27 am

Hi all,

We are currently evaluating the hardware of a small hosting provider, we so I installed softether server on a VPS with that provider
The next step is to simulate tens/hundreds of connections to that server and benchmark the performance.
Openvpn client to server connection works fine from my local pc, but starting a connection from an AWS EC2 instance to Softether causes my SSH session to hang/break
The EC2 instance is inside an VPC

Here are my client setings:

dev tun
proto udp
remote xxx.xxx.xxx.xxx
cipher AES-128-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
verb 3
auth-user-pass login.conf

I assume that I lose the connection because openvpn changes the default gateway, so I started and the client with "--route-nopull --route-noexec" and indeed the client started fine without losing the connection.

But now I need someway to push all the traffic through the VPN gateway instead of the default gateway. Any ideas?

Post Reply