Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

FreeBSD As a Server Operating System > Configuring a Firewall

Configuring a Firewall

The FreeBSD base system comes with three separate firewall frameworks: IPFILTER, IPFW, and OpenBSD's Packet Filter (pf). None of them have simple configurations, and all of them work in fundamentally different ways, even if they all aim for the same goal of limiting network traffic. If you'd like to find out more about these firewalls, you can view their man pages: pf, ipfilter, and ipfw are the appropriate names to use.

Enabling IPFW

To enable IPFW, modify these lines accordingly and put them into /etc/rc.conf:

firewall_enable="YES"
firewall_type="simple" # Firewall type (see /etc/rc.firewall)
firewall_quiet="YES" # Set to YES to suppress rule display
firewall_logging="YES" # Set to YES to enable events logging
firewall_flags="" # Flags passed to ipfw when type is a file

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint