View Full Version : Problem With IPFW
Slash93
December 29th, 2010, 19:10
Hallo,
When I install the firewall IPFW, I go to /usr/src/sys/1386/conf/ to change the file GENERIC. But the problem is I haven't the files in /usr/src/sys/1386/conf/.
How do I get them?
I use FreeBSD 7.1 32 bit
Thanks.
DutchDaemon
December 29th, 2010, 19:49
Either extract the kernel sources from the installation CD/DVD, or use csup to grab a copy from the net. Use the relevant chapter (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading.html) from The Handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/) (also available in Italian (ftp://ftp.freebsd.org/pub/FreeBSD/doc/it/books/handbook/)). There's too much to explain about building and installing a customized kernel, so make sure you read the handbook.
Slash93
December 29th, 2010, 19:57
I don't have the CD of installation, I Buy the server with FreeBSD from a holding.
I Pay The server Only month
DutchDaemon
December 29th, 2010, 21:38
I don't see the relevance. Get the kernel sources from the Internet, as described earlier.
vand777
December 30th, 2010, 18:55
I don't have the CD of installation, I Buy the server with FreeBSD from a holding.
I Pay The server Only month
To download/sync kernel source code:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html
codeWarrior
December 30th, 2010, 22:53
You don't need to rebuild the kernel to enable ipfw UNLESS you need to do NAT... Just enable ipfw in rc.conf ipfw_enable="yes"
create your firewall rules
and reboot...
but be careful: the default ipfw configuration will lock you out because the default rule is to deny all... so make sure you know what you are doing BEFORE you lock yourself out of the box...
phoenix
January 4th, 2011, 03:47
Correction: you can load the libalias module and use ipfw nat rules for NAT.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.