LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2003, 02:02 AM   #1
xen_chris
LQ Newbie
 
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
block local user to access a site


one of my local net colleagues just disrespect me. and since i have the computer which is used as a gateway to linux, and i know the root password, and i told the guy from my local net the respective ip address, now i just want to block it.
i believe it would be something like: block 192.168.0.28 88.231......
if this doesn't brake your moral code, then i need your help. thx in advance.
 
Old 04-15-2003, 08:49 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
If you want to stop him accessing a specific site then you'll need to know the IP address of the site in question, then you'll need to drop everything/deny everything that's comming from his PC destined for the site in question. You'll need to use IPTables to do this. Take a look at the http://www.tldp.org/HOWTO/Firewall-HOWTO.html for some general IP filtering stuff.

I would be tempted to just talk to him about his 'disrespect' though, otherwise it could end up getting rather childish.

HTH

Jamie...
 
Old 04-15-2003, 09:51 AM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Are you trying to block access to YOUR web server? If so you can check out /etc/hosts.deny. If the guys IP address is 192.168.0.28 and you want to block him from accessing the httpd service on your machine then you would have the following in your /etc/hosts.deny file:

httpd: 192.168.0.28

Obviously this is not limited to the httpd service only so you could easily block other services as well by doing something like:

sshd: 192.168.0.28
vsftpd: 192.168.0.28

etc.
 
Old 04-15-2003, 09:55 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by Crashed_Again
Are you trying to block access to YOUR web server? If so you can check out /etc/hosts.deny.
Note that this will only work if you are using tcpwrappers around Apache, which often means if its being started from Inetd. Apache has its own Allow/Deny options in httpd.conf

cheers

Jamie...
 
  


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
SAMBA - VFAT local mount for all user write access... dolvmin Linux - Software 13 12-21-2006 03:50 PM
block internal user to access external proxy server ckamheng Linux - Security 7 09-09-2005 03:37 AM
How can I block net access for 1 user? jimk Linux - Security 10 11-26-2004 11:43 AM
Apache for local dev - block access from net? phlyersphan Linux - Software 1 07-05-2004 04:14 PM
squid acl how to block all site except some mikmok Linux - Networking 1 12-22-2003 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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