LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-14-2005, 11:25 PM   #1
anubhuti_k
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Suse 9.1
Posts: 29

Rep: Reputation: 15
restrict net access


Hi thr
I have fedora core2 and two accounts, root & student.
I want that internet is accessed only through root & not student.
how is that possible.
regrds
 
Old 02-15-2005, 03:57 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

there's user matching support in iptables :
iptables -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner 0 -j ACCEPT

(beware, the line above allows all users except root to use dport 80, because of the !)

it should answer your quesiton... if you do not know what is iptables, then :
http://www.netfilter.org/documentation/index.html

Bye
 
Old 02-15-2005, 07:58 AM   #3
shivaligupta
Member
 
Registered: Oct 2004
Posts: 45

Rep: Reputation: 15
hi

i m also facing the same problem.
I have tried :
iptables -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner 0 -j ACCEPT

but it doesn't work. what i did is i wrote this command on Konsole. logout & then tried to access internet from all the accounts(including root, student & faculty) & i was able to access it. i hav also tried after clearing history & cache.
what i want is that internet shud be accessible from root & faculty account but not from students's account. on a particular pc in network
 
Old 02-15-2005, 04:09 PM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
have a look at this site: http://www.nufw.org/
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict X server access using /etc/security/access.conf anand_kt Linux - General 0 04-22-2005 08:40 AM
Restrict Network Access alxdotnet Linux - Software 3 04-10-2004 10:05 PM
how to restrict access to one application only? randomx Linux - General 1 05-29-2003 02:32 PM
Restrict access by IP waifurchin Linux - Security 3 02-02-2003 07:54 AM
restrict file access loocw General 0 03-07-2001 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration