LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-21-2004, 06:41 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Installing IPFILTER question


Hi folks,

FreeBSD 5.2
===========

I tried to install and run IPFILTER but met with following problems;

# which ipfilter
ipfilter: Command not found.

# whereis ipfilter
ipfilter: /usr/src/contrib/ipfilter
# ls /usr/share/examples/ | grep ipfilter
ipfilter

# pkg_info | grep -i ipfilter
No printout

# cd /usr/ports/
# make search -i name=ipfilter
# make search name=ipfilter
Both with no printout

# ee /usr/src/sys/conf/NOTES, searchig for 'IPFILTER' and found follows;
Code:
options         MROUTING                # Multicast routing
options         PIM                     # Protocol Independent Multicast
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
options         IPV6FIREWALL            #firewall for IPv6
options         IPV6FIREWALL_VERBOSE
options         IPV6FIREWALL_VERBOSE_LIMIT=100
options         IPV6FIREWALL_DEFAULT_TO_ACCEPT
options         IPDIVERT                #divert sockets
options         IPFILTER                #ipfilter support
options         IPFILTER_LOG            #ipfilter logging
options         IPFILTER_DEFAULT_BLOCK  #block all packets by default
options         IPSTEALTH               #support for stealth forwarding
options         PFIL_HOOKS              #required by IPFILTER
options         TCPDEBUG
Kindly advise how to install IPFILTER and/or edit kernel option to enable it.

TIA

B.R.
satimis
 
Old 05-21-2004, 09:50 PM   #2
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
Did you check out the handbook here
10.8.3 Enabling IPFW on FreeBSD
http://www.freebsd.org/doc/en_US.ISO...firewalls.html

2.3.2 Kernel Configuration
http://www.freebsd.org/doc/en_US.ISO...#KERNEL-CONFIG
 
Old 05-22-2004, 02:36 PM   #3
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
add
options IPFILTER
options IPFILTER_LOG
options PFIL_HOOKS

to kernel
build and install kernel.
create filter rules in file I keep it in /etc named ipf.conf
then to insert rules
#ipf -f /etc/ipf.conf

to flush all rules
ipf -Fa
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about installing Tuul Linux - Newbie 1 10-25-2004 11:55 PM
Two question about installing oldi Slackware - Installation 2 04-15-2004 07:33 PM
Netfilter in kernel 2.6 and ipfilter Maranza Linux - Networking 1 02-05-2004 07:03 AM
installing question tendaas Linux - Distributions 2 09-26-2003 07:42 AM
IPfilter + IPv6 traffic Lagune *BSD 0 07-28-2003 06:16 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration