O'Reilly logo

Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications by Mick Knutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring Linux firewall rules

I felt a personal attachment to writing a recipe on setting up firewall rules on the Linux server, because several years ago I fell victim to an invasion on a Linux server that cost almost $10,000 in bandwidth charges in five days. Basically, I was hacked because I allowed several standard ports to be opened, even though they were not being actively used.

The iptables project (netfilter.org) is a user command-line program that allows a system administrator to configure the Linux IPv4 packet filtering rules to create very simple, to incredibly complex firewalls.

Getting ready

Since iptables is included with pretty much every modern Linux distribution, there should be no need to install anything. The only caveat would ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required