secure port forwarding without shell access

From: robert (rturner_at_teamcertified.com)
Date: 09/29/04


Date: 29 Sep 2004 10:09:54 -0700

I have the following set up on linux with the intention of allowing
specific ports to be forwarded and to not allow shell access to these
specific users.

I am unsure if this is an acceptable configuration and hope to get
input regarding same.

My setup is :

SSH-2.0-OpenSSH_3.5p1
sshd is started with : sshd --command=permitopen=localhost:3128

sshd_config has not been modified from its default.

Those users that are "restricted" have been usermod -s "/bin/rbash"
username
and /bin/rbash mode is 755 owned by root and contains :

#!/bin/bash
/bin/bash -r >/dev/null 2>&1
tail -f /dev/null

This seems to limit port forwarding and prevent shell access.
Is this the best way and is it secure?
Any suggestions or comments would be greatly appreciated!
Thanks.



Relevant Pages

  • Re: Forwarding by source IP: Linksys BEFSX41?
    ... I asked here about routers that support forwarding based on the ... but I could set up packet filters for four specific ... > ports, then forward each to the appropriate PC. ... it appears Filters also preempt "Block WAN Requests." ...
    (comp.security.firewalls)
  • Re: Request for help: troubleshooting pcAnywhere with TZO + Linksys
    ... successfully forwarding ports 8000, 8001 and 8080 to my Web server, ... and despite the fact that the router's Port Forwarding configuration ... >>Tried connecting to the pcA host via a pcA remote from another one of ...
    (comp.security.firewalls)
  • SUMMARY: All ports in use, but I dont think they are
    ... Some let me do X forwarding, ... I have restarted ssh several times, ... > timeout on Solaris 9 boxes is 4 minutes, but I see no ports in TIME_WAIT ... My thanks to many many folks on both the sunmanagers and secureshell lists ...
    (SunManagers)
  • SUMMARY: All ports in use, but I dont think they are
    ... Some let me do X forwarding, ... I have restarted ssh several times, ... > timeout on Solaris 9 boxes is 4 minutes, but I see no ports in TIME_WAIT ... My thanks to many many folks on both the sunmanagers and secureshell lists ...
    (SSH)
  • Re: Web Site
    ... Ive got ports 79 to 82 forwarded to the .101 which is the ... >> I am running windows 2000 advanced server. ... >> ftp site. ... I have forwarding enabled for the ports I am ...
    (microsoft.public.windows.server.general)