Re: allow login from specific address



On 2006-09-21, Sylvain Ferriol <sferriol@xxxxxxx> wrote:
Todd H. a écrit :
[...]
If you want to allow a forward connection from internet to intranet on
the gateway to set up that port forwarding, you can't prohibit "a user
from internet can not login the ssh_gateway."
why ?

Or are you saying you want to allow this port forwarding, but no
interactive login shells from internet users?

yes

There's a couple of new features in OpenSSH 4.4 (and newer) that could
help here: "PermitOpen" which controls which portforwards are allowed and
"Match" which can apply those restrictions to a subset of connections.

So assuming your local net is 192.168.0.0/24 and you wanted to allow any
commands or forwards from connections originating from it, this would
be something like

Match Address 192.168.0.*
PermitOpen any

Match Address *
PermitOpen 1.2.3.4:44444

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
.



Relevant Pages

  • Re: allow login from specific address
    ... i want to config a ssh gateway between internet and my intranet: ... some users from intranet can login the ssh_gateway ... the problem is that i want to allow port forwarding from internet to ...
    (comp.security.ssh)
  • RE: Login from Internet
    ... \par - You would like to know how to prevent a user not log on the site from Internet if he didn't input his domain credential. ... \par Microsoft Online Partner Support ... \par Subject: Login from Internet ... they get prompted for their credentials again. ...
    (microsoft.public.sharepoint.portalserver)
  • RE: Login restrictions in NIS environment
    ... and nbaker to login, but it seems to block out IMAP connections - not after ... > Richard Hobbs ... >>> This e-mail has been scanned for viruses by MCI's Internet ...
    (RedHat)
  • Re: Intranet/Internet Site Permissions
    ... require ntfs login from internet and no login from intranet. ...
    (microsoft.public.inetserver.iis)
  • Re: too many login attempts from Internet
    ... but do they require login from the internet or just from your lan? ... internet to get a listing of accounts on a machine then start an attack to ... and be sure to enable lockouts after just a couple failed login ... >> you have users that are trying to login to user accounts on your server ...
    (microsoft.public.win2000.security)