Linux Netfilter Tutorials

Tutorials, howtos and tips about Linux netfilter/iptables firewall includes examples, configurations, blocking traffic and IP address, opening and closing ports, and much more. ( rss feed )

Iptables Drop IP Address

by on November 20, 2010 · 3 comments

How do I block particular IP addresses or host with the iptables command under Linux?

{ 3 comments }

I need to know how much data are transmitted on my ppp0 network or eth0 Internet links? How do I set IP accounting by address such as 123.1.2.3 and 123.1.2.4? How do I set IP accounting per Apache virtual domain? How do I set accounting by service port (http, smtp) and protocol (tcp, udp, icmp)? How do I record how much traffic each of the clients computer is using?

{ 9 comments }

How do I read a list of ip address (subnets) using a text file and block all of them using Linux iptables command?

{ 10 comments }

How do I restrict the number of connections used by a single IP address to my server for port 80 and 25 using iptables?

{ 35 comments }

How do I redirect 80 port to 8123 using iptables?

{ 20 comments }

How do I invert a protocol or ip address test while writing iptables based shell scripts?

{ 4 comments }

I’ve root ssh access and need to add / delete a few IP address on fly using the IPtables command via local shell script. How do I add or delete an IP address remotely over the SSH session under CentOS / Redhat / RHEL / Debian / Ubuntu Linux?

{ 4 comments }