Page 1 of 1

Use openvpn client on an EC2 disconnects my ssh session

Posted: Fri Dec 11, 2015 12:27 am
by moatazelmasry
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?