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 )

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

{ 5 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?

{ 29 comments }

How do I redirect 80 port to 8123 using iptables?

{ 14 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?

{ 3 comments }

How do I configure iptables firewall under CentOS / Fedora / RHEL / Redhat Linux to allow access to the Samba server? How do I open TCP ports # 137, 138, 139 and 445 under Linux so that all Microsoft Windows machine can access files and printer on a Linux host?

{ 8 comments }

I know how to configure iptables (IPv4) host-based firewall using Netfilter. How do I configure ip6tables for basic filtering IPv6 packets?

{ 2 comments }