Re: Need help installing SSH tunnel
From: Richard E. Silverman (res_at_qoxp.net)
Date: 07/26/03
- Previous message: Richard E. Silverman: "Re: rsync over ssh using non standard ssh port"
- In reply to: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Next in thread: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Reply: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 26 Jul 2003 00:21:30 -0400
>
> > channel 3: open failed: connect failed: Connection refused
> This could be a problem with the firewall or /etc/hosts.allow on the server.
Perhaps with the firewall; not with libwrap. If it were libwrap, the
connection would be accepted, then immediately closed again; you would not
see "connection refused."
> Do both of these permit all connections from localhost? In my
> /etc/hosts.allow, I have
>
> # localhost
> ALL : 127.
> ALL : xx.xx.xx.xx
>
> where xx.xx.xx.xx is the external IP address (on eth0) of the server. This
> permits all connections from localhost there. Yes, I know the second
> condition seems strange, because tunneled connections should come over the
> loopback interface, on 127.0.0.1.
You're confusing interfaces and addresses. Libwrap does not test which
interface a connection arrives on; it looks at the source address.
Suppose you have a host foo, with two interfaces:
lo0 : 127.0.0.1 (loopback)
eth0 : 10.1.1.1
Assume name "foo" resolves to 10.1.1.1, and consider the TCP connections
created by the following:
foo% telnet localhost ...
foo% telnet foo ...
Both connections flow over the loopback interface, but the source address
of the first will be 127.0.0.1, while that of the second will be
10.1.1.1 (following the usual rules for selecting source addresses when
the application does not specify them).
> I don't understand this either, but until I added it, I also got refused
> connections.
You would have gotten accepted but then closed connections, a slightly
different symptom from what the OP is seeing.
-- Richard Silverman res@qoxp.net
- Previous message: Richard E. Silverman: "Re: rsync over ssh using non standard ssh port"
- In reply to: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Next in thread: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Reply: Andrew Schulman: "Re: Need help installing SSH tunnel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|