Networking Forums

Networking Forums > Computer Networking > Linux Networking > full networking for console user, limited networking for remotely logged in user

Reply
Thread Tools Display Modes

full networking for console user, limited networking for remotely logged in user

 
 
RJ41
Guest
Posts: n/a

 
      08-14-2003, 08:27 AM
Hello

I need to setup a lab. such that the users logged on to console have
full access of lan and internet but, users remotely logging(via
telnet/ssh) into the lab servers would be allowed only to access lan(
i.e. others servers in lab only) and would not be granted access to
network outside of lab, i.e. to internet.
I would use RedHat 9.0.

So how to go about doing this ???
 
Reply With Quote
 
 
 
 
/dev/rob0
Guest
Posts: n/a

 
      08-14-2003, 05:58 PM
[followup-to set]
In article <(E-Mail Removed)> , RJ41 wrote:
> I need to setup a lab. such that the users logged on to console have
> full access of lan and internet but, users remotely logging(via
> telnet/ssh) into the lab servers would be allowed only to access lan(


See the iptables "owner" match extension ("man iptables"). If you have a
fixed list of authorised and unauthorised users, this will be easy:
simply assign the remote users to a single group, and use -m owner to
block that GID.

I'm not sure how pid-owner and sid-owner work, but those might make it
even easier, if they can exclude any process started under sshd or
telnetd. Perhaps someone else will know?

If users might alternate between console and remote logins, this would
be more complicated and possibly weak. You could use the shell to set
the effective GID when logging in. That of course opens up a lot of
other shell issues.

> I would use RedHat 9.0.


Note that Red Hat by default puts all new user accounts in per-user
unique groups. You might have to override this default (and change any
accounts which already exist.)
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
Joe Beanfish
Guest
Posts: n/a

 
      08-15-2003, 06:28 PM
/dev/rob0 wrote:
>
> [followup-to set]
> In article <(E-Mail Removed)> , RJ41 wrote:
> > I need to setup a lab. such that the users logged on to console have
> > full access of lan and internet but, users remotely logging(via
> > telnet/ssh) into the lab servers would be allowed only to access lan(

>
> See the iptables "owner" match extension ("man iptables"). If you have a
> fixed list of authorised and unauthorised users, this will be easy:
> simply assign the remote users to a single group, and use -m owner to
> block that GID.
>
> I'm not sure how pid-owner and sid-owner work, but those might make it
> even easier, if they can exclude any process started under sshd or
> telnetd. Perhaps someone else will know?
>
> If users might alternate between console and remote logins, this would
> be more complicated and possibly weak. You could use the shell to set
> the effective GID when logging in. That of course opens up a lot of
> other shell issues.
>
> > I would use RedHat 9.0.

>
> Note that Red Hat by default puts all new user accounts in per-user
> unique groups. You might have to override this default (and change any
> accounts which already exist.)


Users may belong to more than one group.
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      08-15-2003, 08:18 PM
In article <(E-Mail Removed)>, Joe Beanfish wrote:
> /dev/rob0 wrote:
>> simply assign the remote users to a single group, and use -m owner to

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> block that GID.
>> [snip IRRELEVANT quoted material]


>> Note that Red Hat by default puts all new user accounts in per-user
>> unique groups. You might have to override this default (and change any
>> accounts which already exist.)

>
> Users may belong to more than one group.


Why yes, that is true, and I am aware of that. I am also aware how a
user can change his/her effective GID to any of those groups. That is
why I suggested using a SINGLE collective group.

BTW iptables can also filter based upon more than one GID. But I didn't
suggest that because it would be complex and difficult to maintain. The
filtering could be inverse: the list of GID's could be used for allowing
or for denying access.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
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
How Can I Obtain a Logged On User Name from Just a Computer Name? razor Windows Networking 3 03-22-2008 09:22 PM
Another USER might be logged on? Dave_s Wireless Internet 5 10-26-2007 09:31 PM
user(s) logged on warning please jona Windows Networking 4 06-09-2007 01:49 PM
Who was the last logged in user? Dudute Windows Networking 0 09-26-2006 02:18 PM
Determining how many of one user is logged-on to the network Bill Bradley Windows Networking 0 02-04-2006 08:34 PM



1 2 3 4 5 6 7 8 9 10 11