Linux Netfilter discussions
 help / color / mirror / Atom feed
* block an ip
@ 2002-09-14  2:39 yuksel
  2002-09-14  8:59 ` Antony Stone
  0 siblings, 1 reply; 4+ messages in thread
From: yuksel @ 2002-09-14  2:39 UTC (permalink / raw)
  To: netfilter

Hello,

I'm a novice. I understand how to block acces to some ports but I didn't
understand how to block an ip.

In fact, since 4 days, someone is trying ton hack my network and I have
his ip (he is using more than 10 ip...).

I dont really care cause he is using some funny ways (he thinks that I am
under IIS :) ), but I prefer to stop him now.

Friendly,
Yuksel.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: block an ip
  2002-09-14  2:39 block an ip yuksel
@ 2002-09-14  8:59 ` Antony Stone
  0 siblings, 0 replies; 4+ messages in thread
From: Antony Stone @ 2002-09-14  8:59 UTC (permalink / raw)
  To: netfilter

On Saturday 14 September 2002 3:39 am, yuksel@aydin.no-ip.org wrote:

> Hello,
>
> I'm a novice. I understand how to block acces to some ports but I didn't
> understand how to block an ip.

iptables -A FORWARD -s 11.22.33.44 -j DROP

Antony.
-- 

This is not a rehearsal.
This is Real Life.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Block an IP
@ 2011-01-30  8:02 Cory McPherson
  2011-01-31  5:17 ` Srinivasa T N
  0 siblings, 1 reply; 4+ messages in thread
From: Cory McPherson @ 2011-01-30  8:02 UTC (permalink / raw)
  To: netfilter



Hello,

I'm new to iptables and would like to block an IP. How do I achieve that? More specifically, I'd like to block it from accessing a specific port
but other ports should be accessible to that IP... Can someone give me an example?

Thanks

PS: please CC me as I'm not subscribed to the list.
 		 	   		  

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Block an IP
  2011-01-30  8:02 Block an IP Cory McPherson
@ 2011-01-31  5:17 ` Srinivasa T N
  0 siblings, 0 replies; 4+ messages in thread
From: Srinivasa T N @ 2011-01-31  5:17 UTC (permalink / raw)
  To: netfilter

On Sunday 30 January 2011 01:32 PM, Cory McPherson wrote:
>
>
> Hello,
>
> I'm new to iptables and would like to block an IP. How do I achieve that? More specifically, I'd like to block it from accessing a specific port
> but other ports should be accessible to that IP... Can someone give me an example?
>
> Thanks
>
> PS: please CC me as I'm not subscribed to the list.
>   		 	   		  --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

Assuming your protocal is tcp:

iptables -A INPUT p- tcp --source <IP Address> --dport <Port No.> -j REJECT

Regards,
Seenu.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-31  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-30  8:02 Block an IP Cory McPherson
2011-01-31  5:17 ` Srinivasa T N
  -- strict thread matches above, loose matches on Subject: below --
2002-09-14  2:39 block an ip yuksel
2002-09-14  8:59 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox