LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-22-2003, 12:47 PM   #1
osX-linux
LQ Newbie
 
Registered: Jun 2003
Location: Tacoma, Wa
Posts: 3

Rep: Reputation: 0
Question Deny some users access to the web with IPtables?


To begin with I should say I'm one of those crazy Mac people, but we have a Linux box running RH9 with IPtables for our firewall at work. We've had a local kid set it up for us but getting timely "adjustments" hasn't been the easiest thing. I've become pretty good at making some changes and I'm looking for a little help on starting something new here.
My boss would like to not allow certain users access to the web. We have two nic's in the firewall and our lan is set up with 192.168.2.xxx that I assign to each computer. Can anyone give me a hint how to start?
 
Old 06-22-2003, 12:59 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Certain users or certain ip addresses?
 
Old 06-22-2003, 01:15 PM   #3
osX-linux
LQ Newbie
 
Registered: Jun 2003
Location: Tacoma, Wa
Posts: 3

Original Poster
Rep: Reputation: 0
IP addresses.
 
Old 06-22-2003, 01:30 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try:
iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP

Replace xxx.xxx.xxx.xxx with the ip to block.
 
Old 06-22-2003, 01:42 PM   #5
osX-linux
LQ Newbie
 
Registered: Jun 2003
Location: Tacoma, Wa
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks David, I'll give that a try tomorrow and post back.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh: deny all users, except one hamish Linux - Security 13 09-07-2008 07:58 PM
deny ssh access from lan with iptables NuLLiFiEd Linux - Security 10 12-01-2005 07:11 PM
IPTABLES How to access to web server on gateway from LAN? kozaki Linux - Networking 4 08-26-2005 11:27 AM
iptables does not allow me to access internal web server. JawjLindo Linux - Security 2 11-10-2003 02:23 PM
how to deny all users in vsftp except one? lzyking Linux - Software 7 12-11-2002 10:02 PM


All times are GMT -5. The time now is 01:22 AM.

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