Skip to Content
Linux Network Administrator's Guide, Second Edition
book

Linux Network Administrator's Guide, Second Edition

by Olaf Kirch, Terry Dawson
June 2000
Intermediate to advanced
512 pages
15h 18m
English
O'Reilly Media, Inc.
Content preview from Linux Network Administrator's Guide, Second Edition

Testing a Firewall Configuration

After you’ve designed an appropriate firewall configuration, it’s important to validate that it does in fact do what you want it to do. One way to do this is to use a test host outside your network to attempt to pierce your firewall: this can be quite clumsy and slow, though, and is limited to testing only those addresses that you can actually use.

A faster and easier method is available with the Linux firewall implementation. It allows you to manually generate tests and run them through the firewall configuration just as if you were testing with actual datagrams. All varieties of the Linux kernel firewall software, ipfwadm, ipchains, and iptables, provide support for this style of testing. The implementation involves use of the relevant check command.

The general test procedure is as follows:

  1. Design and configure your firewall using ipfwadm, ipchains, or iptables.

  2. Design a series of tests that will determine whether your firewall is actually working as you intend. For these tests you may use any source or destination address, so choose some address combinations that should be accepted and some others that should be dropped. If you’re allowing or disallowing only certain ranges of addresses, it is a good idea to test addresses on either side of the boundary of the range—one address just inside the boundary and one address just outside the boundary. This will help ensure that you have the correct boundaries configured, because it is sometimes easy to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Network Administrator's Guide, 3rd Edition

Linux Network Administrator's Guide, 3rd Edition

Tony Bautts, Terry Dawson, Gregor N. Purdy

Publisher Resources

ISBN: 1565924002Catalog PageErrata