freebsd_firewall
Differences
This shows you the differences between two versions of the page.
| freebsd_firewall [2023/06/20 05:19] – created chris | freebsd_firewall [2026/02/08 02:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== FreeBSD IPFW Firewall ====== | ||
| + | |||
| + | This is a base service so all you need is a few rc.conf vars | ||
| + | Download this conf and add it to / | ||
| + | |||
| + | <code txt rc.conf> | ||
| + | firewall_enable=" | ||
| + | firewall_type=" | ||
| + | firewall_trusted=" | ||
| + | firewall_myservices=" | ||
| + | firewall_allowservices=" | ||
| + | </ | ||
| + | |||
| + | - 1. your personal IP is always trusted | ||
| + | - 2. List of ports that will have services running | ||
| + | - 3. allow all from the services, this setup you can't do this per port so allow all | ||
| + | - 4. this is 1 computer so we use the workstation | ||
| + | |||
| + | < | ||
| + | sysrc blacklistd_enable=" | ||
| + | touch / | ||
| + | vim / | ||
| + | </ | ||
| + | |||
| + | Basic firewall using IPFW | ||
| + | |||
| + | I don't use PF on FreeBSD as it lacks a lot of features from OpenBSD and I believe each OS should stick to it's own firewall and either add in options to it, we really dont need 3 firewall' | ||
| + | |||
| + | |||
