Tuesday, November 24, 2009

How do I block specific incoming ip address?

following iptable rule will drop incoming connection from host/IP 72.30.2.43:

iptables -A INPUT -s 72.30.2.43 -j DROP
iptables -A OUTPUT -d 72.30.2.43 -j DROP

service iptables status

iptables -D INPUT -s 72.30.2.43 -j DROP
iptables -D OUTPUT -d 72.30.2.43 -j DROP

1 comment:

  1. I am doing research for my college thesis, thanks for your great points, now I am acting on a sudden impulse.

    - Laura

    ReplyDelete

About

Blogger templates