LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 08-06-2003, 11:55 AM   #1
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Rep: Reputation: 0
Allowing users to watch sites of a positive list


Hallo everybody !
I have a question concerning the internet access from a local network.
I know there are firewalls which can deny the access to certain sites using some kind of blacklist or negativelist, but that would not solve my problem. I need to grant the users of a lan access to some sites (about 20), to eMail and to deny the access to the rest of the i-net.
The number of sites the users may have access to can vary in number an address (maybe updateable through the sysadmin).
Is this possible ? If it is, how can I do this ?
Do I need to run a Proxy or do I need to setup special Firewall rules ?
Can anyone point to a link with examples or some detailed HOWTOs ?

Thanks in advance !

Last edited by MobbyDick; 08-06-2003 at 11:59 AM.
 
Old 08-06-2003, 12:13 PM   #2
cIx
Member
 
Registered: Aug 2003
Location: /dev/null
Posts: 40

Rep: Reputation: 15
You can setup a firewall rule to deny all outgoing packets from the LAN to the internet and then add specific rules to enable only DNS (for domain queries), email and outgoing packets to port 80 (http).

You can do that with IPtables or IPF on openbsd.
 
Old 08-07-2003, 03:17 AM   #3
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, but if I add the rules for DNS queries, all sites will be seen by the users.
 
Old 08-07-2003, 08:15 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yes, but if I add the rules for DNS queries, all sites will be seen by the users.
No they won't. Sounds like you didn't even try it.
 
Old 08-07-2003, 10:23 AM   #5
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
No I didnīt. Because it sounds to me like it would not work, but if you say it works, then I will try.
 
Old 08-08-2003, 08:54 AM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Still quite new to iptables but if it's possible I was thinking maybe only allowing forwarding based on the destination IP address. You could have a plain text file with the IP's you want to allow access to, one on each line which you could add and delete entries from depending on circumstances

The forwarding rules could then be added by reading in the values from the valid ip file something like

allow_access=`cat ipfile.txt`;

for i in $allow_access;
do
iptables -A FORWARD -i my_lan_interface -d $allow_access -j ACCEPT;
done;

iptables -A FORWARD -m state --state ESTABLISHED,RELATED, -j ACCEPT

You could have different scripts to add/delete rules. No sure if that's a proper use of the FORWARD rule but if you try it and it works then all's well.
 
  


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
not allowing me to login as other users madamson Solaris / OpenSolaris 7 10-07-2005 05:49 AM
List of Banned Sites swmok General 6 10-05-2004 04:42 PM
Allowing *some* users to mount ugenn Linux - General 8 03-01-2004 10:48 PM
allowing /mnt/ to all users bcf2 Mandriva 1 02-18-2004 05:10 PM
Allowing Users commands Atroxic Linux - Newbie 2 02-01-2002 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:52 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