[Solved] Firewall
Posted: Mon Sep 12, 2016 11:27 am
Hello,
How to enable - and disable - the firewall ?
(GhostBSD 10.3 XFCE 64-bit).
Thanks.
How to enable - and disable - the firewall ?
(GhostBSD 10.3 XFCE 64-bit).
Thanks.
https://old-forums.ghostbsd.org/
Code: Select all
pf_enable="YES"
Code: Select all
ext_if = "kue0"
all_ifs = "{" $ext_if lo0 "}"
pass out on $ext_if from any to any
pass in on $ext_if proto tcp from any to any port 25
Yes, /etc/pf.conf, sorry, seems I forgot to mention that.christophe60_fr wrote:Yes, that's exactly what I needed.
But in what file to put these rules ? Should I create a pf.conf ?
My /etc/pf.conf file was empty so i just added those rules to the empty /etc/pf.conf file and save it. Was it right or is it another way to add the rules?ASX wrote: ↑Mon Sep 12, 2016 7:28 pm GhostBSD doesn't ship with a firewall, (you can choose among several available in FreeBSD),
pf is one commonly used in FreeBSD
place in /etc/rc.conf:and customize your filters as fit your needs, below an example from pf.conf man page, that basically allow any traffic going outside and only traffic on port 25 inward.Code: Select all
pf_enable="YES"
Hope that help, even if I'm not sure this is what you would have read.Code: Select all
ext_if = "kue0" all_ifs = "{" $ext_if lo0 "}" pass out on $ext_if from any to any pass in on $ext_if proto tcp from any to any port 25
![]()