LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 07-16-2004, 05:16 PM   #1
koy-b
Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Prevent user from accessing the Internet


Is it possible to prevent a single user or a program from accessing the Internet? Like a simplified Zonealarm. I would like to allow a user to receive email from a local email server, maybe access the Intranet but not the Internet, i.e. no telnet to some server or h t t p to some server.

Lars
 
Old 07-17-2004, 06:17 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
simply add a rule on your gateway preventing any packets originating from the restricted user's IP to be forwarded to the Internet.

something like

#iptables -A INPUT -i <local internface> -p tcp -s <restricted user's ip> --dport 80 -j REJECT
 
Old 07-17-2004, 12:17 PM   #3
koy-b
Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
and if it is a question of preventing user A but not B accessing the Internet from the same machine?

Lars
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
amaroK: How to prevent it from accessing the net? furryspider Linux - Software 2 09-17-2005 03:42 PM
prevent irc script accessing web site dtra Linux - Networking 3 06-09-2005 06:10 AM
Prevent program from accessing the internet penguinco Fedora 3 03-28-2005 07:21 AM
Prevent a user from logging into X? sorrodos Linux - Security 6 06-26-2004 03:30 PM
prevent users from accessing KDE or GNOME cyberswami Linux - Security 6 01-24-2003 01:46 PM


All times are GMT -5. The time now is 03:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration