Networking Forums

Networking Forums > Computer Networking > Linux Networking > SSH SMTP Tunneling problem

Reply
Thread Tools Display Modes

SSH SMTP Tunneling problem

 
 
Lione
Guest
Posts: n/a

 
      07-14-2003, 10:23 AM
Hi All I have the following net config

Linux1------------Linux2---NAT---SMTPserver

There is a firewall between the two machines than allow ssh connections
I set up this tunnen

linux1% ssh -L 1025:smtpserver:25 ...other tunnel stuff... linux2

POP and IMAP seems to work but I have problems sending mail

If I send a 2 or tree line mail the sending is ok but if my is a 10 lines
mail the connection goes in time out

What could be the problem?


 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      07-15-2003, 02:16 AM
On Mon, 14 Jul 2003 10:23:43 GMT, Lione <(E-Mail Removed)> wrote:
> Hi All I have the following net config
>
> Linux1------------Linux2---NAT---SMTPserver
>
> There is a firewall between the two machines than allow ssh connections
> I set up this tunnen
>
> linux1% ssh -L 1025:smtpserver:25 ...other tunnel stuff... linux2
>
> POP and IMAP seems to work but I have problems sending mail
>
> If I send a 2 or tree line mail the sending is ok but if my is a 10 lines
> mail the connection goes in time out
>
> What could be the problem?


It almost sounds like an mtu path discovery problem. I have never
experienced that with an ssh tunnel, but have not tried sending mail
through my home smtp via ssh tunnel (I just ssh in and use pine).

My home is connected with PPPoE which has an 8 byte header, so its max mtu
is 1492. Since I am using a hardware NAT gateway, I could not set its LAN
mtu, so I had to set the LAN nic of my smtp server to mtu 1492 to receive
mail larger than small test messages (otherwise "timeout waiting for data
transfer" in mail logs with default 1500 mtu).

But in your case I am not sure where you might need to reduce the mtu.
If Linux2 is on on adsl and Linux1 is on dialup or company network, maybe
reducing it on your end would help (ppp mtu if dialup, or nic mtu if on
some other network). I have noticed that on dialup, my default mtu
sometimes ends up 1524.

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
Lione
Guest
Posts: n/a

 
      07-15-2003, 07:36 AM

> >
> > Linux1------------Linux2---NAT---SMTPserver
> >


Linux2 has an interface to an ADSL-NAT router that is it's default gateway.
I dont have for the moment access to the Router configuration interface to
reduce the MTU.
I've tried reducing the MTU of the Linux2 ethernet interface to 576 and
seems to work even there are still some problem while sending large (Mbytes)
files.

May thanks


> It almost sounds like an mtu path discovery problem. I have never
> experienced that with an ssh tunnel, but have not tried sending mail
> through my home smtp via ssh tunnel (I just ssh in and use pine).
>
> My home is connected with PPPoE which has an 8 byte header, so its max mtu
> is 1492. Since I am using a hardware NAT gateway, I could not set its LAN
> mtu, so I had to set the LAN nic of my smtp server to mtu 1492 to receive
> mail larger than small test messages (otherwise "timeout waiting for data
> transfer" in mail logs with default 1500 mtu).
>
> But in your case I am not sure where you might need to reduce the mtu.
> If Linux2 is on on adsl and Linux1 is on dialup or company network, maybe
> reducing it on your end would help (ppp mtu if dialup, or nic mtu if on
> some other network). I have noticed that on dialup, my default mtu
> sometimes ends up 1524.
>
> --




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with SMTP problem Dizzy Net User Broadband 1 08-24-2006 07:25 AM
port tunneling problem with gaim HP Linux Networking 1 10-12-2005 04:39 PM
IPsec tunneling problem: tcpdump and iptables see unencrypted traffic Jurjen Oskam Linux Networking 0 05-23-2004 02:39 PM
IPsec tunneling problem: tcpdump and iptables see unencrypted traffic Jurjen Oskam Linux Networking 0 05-23-2004 01:03 PM
ssh tunneling problem Travis Perkins Linux Networking 3 01-11-2004 09:42 AM



1 2 3 4 5 6 7 8 9 10 11