FreeBSD Stop IPFW Firewall

Posted on in Categories , , , , last updated November 18, 2008

Q. How do I IPFW firewall in FreeBSD using a shell prompt or over remove ssh login?

A. ipfw is a FreeBSD IP packet filter and traffic accounting facility. Its ruleset logic is similar to many other packet filters except IPFilter.

The IPFW stateless rule syntax is empowered with technically sophisticated selection capabilities which far surpasses the knowledge level of the customary firewall installer.

IPFW is the default firewall in FreeBSD. If you can’t reach your FreeBSD server, it is a good idea to stop the firewall first to see if the firewall is the problem.

FreeBSD command to stop IPFW Firewall

To stop the firewall, issue the command:
# /etc/rc.d/ipfw stop
To disable firewall remove following line from /etc/rc.conf file:
firewall_enable="YES"
OR set it as follows:
firewall_enable="NO"

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

2 comment

Leave a Comment