Find the answer to your Linux question:
Results 1 to 4 of 4
Is there a possibility to block access to ethernet card (say eth0) to block network access for an user? And how it can be done? If above is not possible, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    22

    How to block ethernet card access to an user in RHEL


    Is there a possibility to block access to ethernet card (say eth0) to block network access for an user? And how it can be done?

    If above is not possible, can we block network access for a normal user on a linux box?

    Thanks in advance

  2. #2
    Just Joined!
    Join Date
    Aug 2009
    Posts
    83
    Quote Originally Posted by vnykr View Post
    can we block network access for a normal user on a linux box?
    Either GRSecurity kernel patch, IIRC it has got a sysctl for denying network access, or more generic: using the iptables "owner" module.

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    22
    Requirement is that, i need to block network access for just one user and rest all should be able to access network.
    sysctl looks like blocking at kernel level and not at user level. (correct me if i am wrong)

    Can you please suggest any commands? or series of commands? where i can run just for particular username..

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Have a look at this

    Block Outgoing Network Access For a Single User Using Iptables

    Google is your friend, you should learn how to use it.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •