Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Alejandro Flores <alejandro.flores@triforsec.com.br>
To: david <david@suarapembaruan.co.id>
Cc: netfilter@lists.netfilter.org
Subject: Re: Blocking IP
Date: Thu, 29 Jul 2004 09:18:39 -0300	[thread overview]
Message-ID: <1091103519.13650.6.camel@aflores> (raw)
In-Reply-To: <001601c47565$8e0ba110$858310ac@suarapembaruan.com>

	Hello David,

	If you have some firewall rules yet, the rule you mention could never
hit. Use the option -I instead of -A.

	-I will insert your rule at the first position in the chain, unless you
specify the number where you want it.

iptables -I INPUT -i public_interface -s 202.154.10.146/32 -j REJECT

	But, if you're using sendmail, maybe the best to do is to tell sendmail
to reject the traffic from this particular host.
	Go to /etc/mail, edit the file called 'access' and append a line like
this:
202.154.10.146	REJECT "You're sending too much viruses!"
	Then save, type 'make' and restart sendmail.

Regards,
Alejandro Flores


> Dear all,
> 
> My mail server received so many virus mails from ip 202.145.10.147 and after
> i look at gateway (linux) and i using iptraf i see so many traffic from
> 202.145.10.147.
> After that i try to block all traffic from 202.145.10.147 with command :
> #iptables -A INPUT -s 202.145.10.146 -j DROP
> 
> but i still receiveall traffic from 202.145.10.146......
> Can anybody help me ........... that ip send virus in to mail server more
> then 20 mails per minute.......
> 
> 
> Regards,
> David Kandou
> 
> Help me ... iam so confused
> 
> FYI :
> Iam using RedHat 9
> eth0 --> ippublic
> eth1 --> local ip
> mail server --> local ip
> 
> 


  parent reply	other threads:[~2004-07-29 12:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 12:58 security question Andreas Westendörpf
2004-07-29 12:14 ` Blocking IP david
2004-07-29 12:10   ` Victor Julien
2004-07-29 12:40     ` david
2004-07-29 13:29       ` Victor Julien
2004-07-29 13:42       ` Les Mikesell
2004-07-29 12:18   ` Alejandro Flores [this message]
2004-07-29 14:15     ` Aleksandar Milivojevic
2004-07-29 16:57       ` Alejandro Flores
2004-07-29 12:25   ` Dhananjoy Chowdhury
2004-07-29 12:28   ` Les Mikesell
2004-07-29 12:48     ` david
2004-07-29 12:31   ` David Cannings
2004-07-29 14:04   ` Aleksandar Milivojevic
  -- strict thread matches above, loose matches on Subject: below --
2003-12-25 13:13 Blocking ip -

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091103519.13650.6.camel@aflores \
    --to=alejandro.flores@triforsec.com.br \
    --cc=david@suarapembaruan.co.id \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox