Mailinglist Archive: opensuse (4749 mails)

< Previous Next >
Re: [SLE] Restrict Users from Internet access
  • From: Basil Fowler <bjfowler@xxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 28 May 2003 07:03:24 +0000
  • Message-id: <200305280703.24824.bjfowler@xxxxxxxxxxxxxxxxxxxx>
I shut down my always-on ASDL connection regularly.

To close down a specific interface such as eth0, run

/sbin/ifdown eth0

and to bring it up again run

/sbin/ifup eth0

Both need to be done as root. It is best to use sudo to run them.

Sudo allows a specific user to run certain defined ( in /etc/sudoers ) scripts
or programs as root ( or any other defined user ).

For details read the man pages sudo and sudoers.

I further alias the commands to 'netdown' and 'netup' in my $HOME/.bashrc file

alias netup='sudo /sbin/ifup eth0'
alias netdown='sudo /sbin/ifdown eth0'

Hope this helps

Basil Fowler

< Previous Next >
Follow Ups