Mastering IPTables, Final Installment

November 4th, 2008 by Elliot Isaacson in

Your rating: None Average: 4.4 (7 votes)

This final installment of the IPTables tutorial details the paths that packets take along the chains, and presents some useful code snippets that should go in almost any firewall script.

Transcript: http://dark-code.bulix.org/fl04jo-68849?raw

Final firewall script: http://dark-code.bulix.org/a8il4b-68850

__________________________


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roland's picture

blocking input from certain IPaddresses

On January 21st, 2009 Roland (not verified) says:

I run a mini-webserver on 192.168.1.80:80 behind a Linksys router.
This series didn't explain how I can block certain IPaddresses that
abuse that server. I ran 'sudo /sbin/iptables -L' and couldn't figure
out the mess. I use ufw under Kubuntu, but it doesn't allow a table-based
configuration, which is a PITA because the order of these rules is
important. Is there a simple line I can add to this script that would
block incoming access from a certain IPaddress?

Anonymous's picture

Hardly "Mastering"

On November 6th, 2008 Anonymous (not verified) says:

This series would be MUCH more appropriately named "an intro to IPTABLES"

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

December 2009, #188

If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.







Read this issue