User Tools

Site Tools


vps_-_freebsd_setup_pf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vps_-_freebsd_setup_pf [2023/09/12 05:40] – created hc9vps_-_freebsd_setup_pf [2023/12/02 05:00] (current) – [Setting up PacketFilter (pf) on FreeBSD] m( hc9
Line 1: Line 1:
-{{example:example.png?nolink&150|sdf.org Public Access UNIX System; A non-commercial Internet community}}+{{example:example.png?nolink&150|}}
  
 ====== Setting up PacketFilter (pf) on FreeBSD ====== ====== Setting up PacketFilter (pf) on FreeBSD ======
Line 7: Line 7:
 //Default deny// and //default permit// are the two approaches to building a firewall. The default deny approach blocks all traffic and permits only traffic specified by a rule. The default permit does the opposite. It allows all traffic and blocks only traffic specified by a rule. This tutorial uses the default deny approach. //Default deny// and //default permit// are the two approaches to building a firewall. The default deny approach blocks all traffic and permits only traffic specified by a rule. The default permit does the opposite. It allows all traffic and blocks only traffic specified by a rule. This tutorial uses the default deny approach.
  
-Pf rulesets are stored in a configuration file at ''/etc/pf.conf''. It's okay to store thise file elsewhere as long as the location is specified in ''/etc/rc.conf''.+Pf rulesets are stored in a configuration file at ''/etc/pf.conf''. It's okay to store this file elsewhere as long as the location is specified in ''/etc/rc.conf''.
  
 This tutorial adds rules to control SSH traffic. Before starting ensure that you can access your SDF VPS console. It is recommended to connect to your VPS through the console for this tutorial to avoid inadvertently locking yourself out via SSH. This tutorial adds rules to control SSH traffic. Before starting ensure that you can access your SDF VPS console. It is recommended to connect to your VPS through the console for this tutorial to avoid inadvertently locking yourself out via SSH.
Line 25: Line 25:
 </code> </code>
  
-Edit ''/etc/rc.conf'' and begin by adding a few macros.+Edit ''/etc/pf.conf'' and begin by adding a few macros.
  
 <file> <file>
vps_-_freebsd_setup_pf.1694497241.txt.gz · Last modified: 2023/09/12 05:40 by hc9