On Monday 13 May 2002 10:15 pm, Robert La Ferla wrote:

> Simple question:
>
> How can I block a specific IP addresses using iptables?

Source or destination ?

Coming in to your firewall, or going through it ?


If it's a specific source coming in to your machine, try:

iptables -A INPUT -s 11.22.33.44 -j DROP

If it's a specific source going through your firewall to somewhere else, try:

iptables -A FORWARD -s 11.22.33.44 -j DROP

If it's a specific destination you want to stop people going to through the 
firewall, try:

iptables -A FORWARD -d 11.22.33.44 -j DROP


Hope this helps,



Antony.

Reply via email to