Results 1 to 4 of 4
Thread: Quick IPTables Commands
Threaded View
-
08-01-2009, 07:53 PM #1Web Hosting Guru
- Join Date
- Jun 2008
- Location
- India
- Posts
- 266
Quick IPTables Commands
Quick IPTables Commands
List: iptables -L -n | grep <IP Address>
Remove: iptables -D INPUT -s <IP 1> -d <IP 2> -j DROP
Insert: iptables -I INPUT -s <IP> -j DROP
Flush: iptables -F
Remove: iptables -D OUTPUT -s 0.0.0.0/0 -d 66.93.33.185 -j DROP
netstat -nap | grep :80 | wc –l (shows # of connections to HTTP)
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort –n (shows total connections per IP, if more than 100 block)Ranjith
Light travels faster thn sound.This is why some people look bright until you actually hear them speak
Similar Threads
-
sed commands have a quick question
By rumrunner439 in forum Programming DiscussionReplies: 3Last Post: 07-09-2009, 03:50 PM -
after flush+zero iptables, will a new iptables ban work?
By Tertsi in forum Hosting Security and TechnologyReplies: 2Last Post: 01-06-2008, 12:04 AM -
How to find IPtables (I can't restart iptables without a reboot)
By DSD in forum Hosting Security and TechnologyReplies: 13Last Post: 12-28-2005, 03:51 PM -
iptables quick help...
By polira in forum Hosting Security and TechnologyReplies: 3Last Post: 02-08-2005, 12:56 PM -
IPTables quick sample
By AlaskanWolf in forum Hosting Security and TechnologyReplies: 3Last Post: 05-06-2003, 08:54 PM