[Solved] Firewall

Need support for GhostBSD. Ask here if your question does not fit elsewhere.

[Solved] Firewall

Postby christophe60_fr » Mon Sep 12, 2016 2:27 pm

Hello,

How to enable - and disable - the firewall ?
(GhostBSD 10.3 XFCE 64-bit).

Thanks.
Last edited by christophe60_fr on Thu Sep 15, 2016 9:38 am, edited 1 time in total.
christophe60_fr
 
Posts: 26
Joined: Thu Oct 29, 2015 6:05 pm
Has thanked: 0 time
Been thanked: 0 time

[Solved] Firewall


Re: Firewall

Postby ASX » Mon Sep 12, 2016 10: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:
Code: Select all
pf_enable="YES"


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
           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


Hope that help, even if I'm not sure this is what you would have read. ;)
ASX
Developer
 
Posts: 476
Joined: Wed May 06, 2015 3:46 pm
Location: ITALY
Has thanked: 20 times
Been thanked: 27 times

Re: Firewall

Postby christophe60_fr » Wed Sep 14, 2016 8:17 am

Yes, that's exactly what I needed.
But in what file to put these rules ? Should I create a pf.conf ?
christophe60_fr
 
Posts: 26
Joined: Thu Oct 29, 2015 6:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Firewall

Postby ASX » Wed Sep 14, 2016 8:58 am

christophe60_fr wrote:Yes, that's exactly what I needed.
But in what file to put these rules ? Should I create a pf.conf ?


Yes, /etc/pf.conf, sorry, seems I forgot to mention that.
ASX
Developer
 
Posts: 476
Joined: Wed May 06, 2015 3:46 pm
Location: ITALY
Has thanked: 20 times
Been thanked: 27 times


Return to General support

Who is online

Users browsing this forum: No registered users and 2 guests