We help IT Professionals succeed at work.

FreeBSD firewall question

tiger1477
tiger1477 asked
on
We are using freeBSD as a firewall and I need to know how to punch a hole in it for certain ports and protocols.  I think there is a file that holds all this info, but I don't know which one.  I was also wondering what holds the IP masquerading settings?
Comment
Watch Question

Commented:
Hi.
Look at /etc/ipf.rules
This file holds your firewall settings. I allow DHCP in with the following rule
"pass in quick on ed0 proto udp from X.X.X.X/32 to any port =68 keep state"

The file /etc/defaults/rc.conf is where you decide if you want ipnat and stuff.
I use "ipnat_enable=yes" and "ipmon_enable=yes".

There is a great howto on:
http://www.free-x.ch/pub/FreeBSD-IPFILTER.html

I really hope this helps. It did for me.

Best regards

//O

Author

Commented:
Sorry it took so long...that really helped you deserve the points.  Thanks!!!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.