Page 1 of 1

SSH disconnect issue

Posted: Fri Jul 08, 2011 7:38 am
by sunilmh
Hi,

I have openvpn setup with the iptables on the linux server.
All the request to destination servers will be passed through tunnel and then will be forwarded based on the iptables rules.

I'm getting a frequent disconnection issues with my ssh session.
While working with multiple sessions, few ssh sessions gets abrupt exit.
I'm unable to trace out as its iptables issue or openvpn tunnel issue.


the following illustration might help to get more understanding on the issue:
Client A ------ tun0 ----- Linux_Server (openvpnserver + iptables) ----- (R1, R2, R3)

10.8.x.x ------ tun0 ----- xxx.xxx.xx.xx (public ip) (openvpnserver + iptables) --- xxx.xx.xx.xx (remote server)
R1, R2 .. or remote destinations.

I need some input on how to trace this issue.
any response would really helps me to reach the cause for the problem.

Re: SSH disconnect issue

Posted: Fri Jul 08, 2011 8:00 am
by maikcat
hi there,

try to disable iptables for start..

also
if you place a ping to your server at the same time you ssh,
you can easily see if you loose packets when you disconnecting from ssh..

if you check openvpn logs,do you see anything?

Michael.

Re: SSH disconnect issue

Posted: Fri Jul 08, 2011 8:18 am
by sunilmh
Hi Michael,

Disabling the iptables, is a difficult task at this moment, will try to check on that.

on the ping part, it works fine.
when I get a disconnect issue, next moment if I reconnect again, it works fine.

The case is, if I have 5 different putty (ssh) sessions for the same remote server, disconnect happens randomly on any session(s) and others will be running fine.

And openvpn log doesn't give any hint.

Re: SSH disconnect issue

Posted: Fri Jul 08, 2011 8:36 am
by maikcat
if you open the same sessions locally ,are they work ok?

if you check ssh logs,is there anything there?

can you post openvpn configs?

Michael.