IP Filter FAQ
Welcome to the IP Filter Frequently Asked Questions. This FAQ contains a lot of useful information and if you use, or plan to use IPF, you should read it. Here is some information about the FAQ:
- The latest version can be found at http://home.earthlink.net/~jaymzh666/IPF-FAQ/IPFtoc.html
- You may copy it, mirror it, distribute it at will as long as you do so IN IT'S ENTIRETY
- The FAQ was written, and currently maintained by Phil Dibowitz so please direct any updates, or questions there.
- The FAQ doesn't address bugs in versions prior to 3.4.20 (other than how to upgrade to that level). If you find a bug not on here, and you don't have a recent version, you should try upgrading.
Additionally I would like to thank Darren Reed, Jim Sandoz, Ron Florence, Erik Fichtner, Glen Foster, and everyone else who has contributed for all of their help.
Last updated: 10/29/01
TABLE OF CONTENTS
I. General
- Who wrote IP Filter?
- What is the website for IP Filter?
- Is there a tutorial?
- What OS's does it run on?
II. Mailing List
- What mailing list(s) is/are available for IP Filter?
- What do I need to know before sending stuff to the list?
- What should I ALWAYS do when sending stuff to the list?
- What should I NEVER do when sending stuff to the list?
- Are there archives for the mailing list?
III. Common Questions about IP Filter
- What does
keep state
actually do? Is it useful?
- What is with this last match stuff?
- What is "in" and what is "out"?
- Does IP Filter actually work on BSD/OS? What do I need to make it work?
- I'm using PPPoE (or some other virtual interface/tunnel), how should I write my rulesets?
- So, if 'map a.b.c.d/M -> w.x.y.z/32' does NAT for all protocols, why do I need a 'map a.b.c.d/M -> w.x.y.z/32 portmap'
- Well, after reading the answer to III-6, do I have to have the first rule if I have the second rule?
- How do I upgrade IPF?
- I have a dynamic IP address, how can I do NAT?
- What's the difference between MAP and RDR?
- When does NAT happen in relation to filtering?
- Are there any GUI's or other aids?
- Are there any log analyzers?
- How do you clear accounting stats?
IV. Common Problems with IP Filter(non-OS Specific)
- I have file transfer (FTP or HTTP) and if download speed is more then 100 KB/sec, connection breaks.
- I have to keep clearing the state table or IPF dies, why?
- The default ipfboot script flushes the state table. Is this necessary everytime you change some rule or just when that rule has a 'keep state' in it and there are existing state table entries that would be affected?
- Sending mail is horribly slow!
- I can't connect to IRC.
- When I try to load the LKM (if_ipl.o), I get "fr_checkp" (or other) unresolved symbols. (FreBSD, OpenBSD, SunOS)
- When I do a
make
, it complains about -I(TOP).
- I'm using rdr for a webserver behind IPF and the world can see it just fine, but the internal machines can't surf to it via the external IP address.
- Long ftp transfers and some other long single-connection sessions fail.
- I've set up to use the ftp-proxy in my ipnat.conf file, and it works fine from NAT'ed machines, but I can't ftp from the firewall machine unless I put a rule in ipf.conf to pass port 20/tcp in from remote machines. How do I get the ftp proxy to work from the firewall machine too?
V. IPFilter and VPN
- I can only initiate x number of VPN connections to/from my NAT'd boxes! Why?
- I'm having more VPN problems... ESP packets and UDP packets are not being mapped to the same IP ddress.
VI. IPMon
- I have IPMon logging to syslog, but syslog doesn't log anything, why not?
- I have IPMon logging to syslog, and I can't use ipmon -oI, why not?
- When I start ipmon, it fails to start with an error.
VII. IPFilter and Solaris
- Why don't my return-rst's work?
- It won't compile, something about
/usr/ucb/cc
.
- I'm using a 64-bit kernel, and when it tries to load ipf, it gets an error.
- How can I tell if I'm using a 32-bit or 64-bit kernel?
- Can the gcc to make 64-bit Sparc kernel modules?
- What do I need to make a 64 bit Sparc kernel module?
- Wait, my Sparc host is running in 64 bit mode, but I don't want to buy Sun's Forte compiler, nor do I want to install the try-and-buy. What can I do to get IPF up?
- When I try and pkgadd the precompiled IPF package I downloaded, there are two sub-packages. What do I do?
- Can I use IPF on Solaris as a Layer 2 bridge?
- How can I tweak some of IPF's internal values at boot time?
- How can I build a transparent proxy using Squid on Solaris 8?
VIII. SunOS
IX. HP-UX
- Does IPF Support HP-UX?
X. FreeBSD
- I'm having problems with bridging and FreeBSD
- How can I get IP Filter to block by default?
- What version of IPF is included in FreeBSD?
- Where do I find the sources?
- How do I (re)compile IPF on FreeBSD?
- How do I start ipfilter on a running system?
- Don't I need to compile IPF into my kernel?
- How do I configure FreeBSD to enable ipfilter at startup?
- Forget the loadable kernel module stuff, how do I do compile IPF into my kernel?
- How do I start ipnat on a running system?
- How do I configure FreeBSD to enable ipnat at startup?
- How do I use the FreeBSD traffic shaper dummynet(4) with IPF?
- Which is better/faster/cool/etc., IPF of IPFW?
- IPF and IPFW both have features I want to use, must I choose between them?
- Won't this slow down processing packets? By how much?
- How can I tweak some of IPF's internal values?
XI. NetBSD
- How do I upgrade IP Filter on NetBSD?
XII. OpenBSD
- How can I get IP Filter to block by default?
- How can I upgrade IP Filter on OpenBSD?
XIII. Linux
- Is there a linux port?