LinuxQuestions.org
Review your favorite Linux distribution.
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 11-03-2004, 12:14 PM   #1
Zac2003
Member
 
Registered: Feb 2003
Posts: 35

Rep: Reputation: 15
help me block an ip


ok somone is using a php or cgi script on my server and sending email though my server as anonymous with my local ip of 127.0.0.1 how can I with plesk disable users from sending email that way, can I make it not allowed in the hosts.allow or what are some options?

thanks, Zac
 
Old 11-03-2004, 09:48 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Tcpwrappers (hosts.allow/deny) aren't used by all applications, so it's usually a good idea to consult the tcpwrapper and specific apps documentation to verify if they do. One of those which doesn't by default is Apache.

Probably the best way to block traffic with a given host is with iptables. The general structure of a rule for blocking a host with IP X.X.X.X would be:
iptables -I INPUT -s X.X.X.X -j DROP

If you'd like to block local users from being able to send mail to a given host use:
iptables -I OUPUT -d X.X.X.X -j DROP

Another good measure to take is to password protect the web interface pages in order to prevent this kind of abuse. Something like htaccess is rather easy to setup and is enough to dissuade most lazy spammers.
 
  


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
block public ip space_beyond Linux - Security 6 06-04-2005 08:23 AM
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 06:58 PM
block-major-8 xbaez Red Hat 0 05-27-2004 11:13 PM
How to block? Obie Linux - Security 6 05-15-2004 12:27 AM
how to block an ip porous Linux - Security 2 10-13-2003 02:55 PM

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

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