SSH disconnect issue

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sunilmh
OpenVPN User
Posts: 31
Joined: Tue May 24, 2011 6:32 am

SSH disconnect issue

Post by sunilmh » Fri Jul 08, 2011 7:38 am

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.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: SSH disconnect issue

Post by maikcat » Fri Jul 08, 2011 8:00 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

sunilmh
OpenVPN User
Posts: 31
Joined: Tue May 24, 2011 6:32 am

Re: SSH disconnect issue

Post by sunilmh » Fri Jul 08, 2011 8:18 am

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.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: SSH disconnect issue

Post by maikcat » Fri Jul 08, 2011 8:36 am

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply