Re: Openssh, TCP Wrappers & Port Forwarding (Was: Re: TCP Wrappers)
From: Pontus Skoeld (pont_nyscss_at_soua.net)
Date: 05/08/03
- Previous message: Darren Dunham: "Re: SSH->login does not work non-interactively"
- In reply to: gary_at_hanley.net: "Openssh, TCP Wrappers & Port Forwarding (Was: Re: TCP Wrappers)"
- Next in thread: gary_at_hanley.net: "Re: Openssh, TCP Wrappers & Port Forwarding"
- Reply: gary_at_hanley.net: "Re: Openssh, TCP Wrappers & Port Forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 08 May 2003 11:25:55 +0200
gary@hanley.net writes:
> I'm trying to gateway-forward a connection from an F-Secure-SSH-2.3.1
> client to a back-end server with the same F-Secure build thru this
> OpenSSH box.
>
> On the OpenSSH box I have local port 2222 gateway-forwarded to the
> back-end server port 22 and that works as it should: Both port
> forwarding via 2222 to the back-end server and normal SSH via 22 to
> this middle host works fine.
>
> When I try to stop the client from connecting to 2222 with TCP Wrappers
> by defining it in the /etc/hosts.deny normal port-22 ssh is rejected,
> however when I ssh to the forwarded port 2222 I am passed thru successfully.
AFAIK, tcpwrappers are not used that way (I think there used to be
some support for tcpwrapping X11-connections, but that seems gone
now).
You're probably best of with a packet filter such as SunScreen or ip
filter. If you need the additional features offered by tcpwrappers,
you should probably set up the tunnel on another port to only allow
local connections and make a wrapper that tcpwraps the port (using
inetd, tcpd and nc or tcpconnect or some other package that shouldn't
be to hard)
HTH
/Pontus
-- Pontus Sköld, see <URL:http://soua.net/> for more information.
- Previous message: Darren Dunham: "Re: SSH->login does not work non-interactively"
- In reply to: gary_at_hanley.net: "Openssh, TCP Wrappers & Port Forwarding (Was: Re: TCP Wrappers)"
- Next in thread: gary_at_hanley.net: "Re: Openssh, TCP Wrappers & Port Forwarding"
- Reply: gary_at_hanley.net: "Re: Openssh, TCP Wrappers & Port Forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|