Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.