mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 09:10:15 +01:00
Merge pull request #1200 from BastilleBSD/firewall_fix
update default firewalls to support ipv6 by default
This commit is contained in:
@@ -69,7 +69,7 @@ them through the external interface:
|
|||||||
pass out
|
pass out
|
||||||
|
|
||||||
pass in proto tcp to port {22}
|
pass in proto tcp to port {22}
|
||||||
pass in inet proto icmp icmp-type { echoreq }
|
pass in proto icmp icmp-type { echoreq }
|
||||||
pass in on $bridge_if
|
pass in on $bridge_if
|
||||||
|
|
||||||
Restart the host and make sure everything comes up correctly. You should see the
|
Restart the host and make sure everything comes up correctly. You should see the
|
||||||
|
|||||||
@@ -469,7 +469,7 @@ Create the firewall rules:
|
|||||||
block in all
|
block in all
|
||||||
pass out quick keep state
|
pass out quick keep state
|
||||||
antispoof for $ext_if inet
|
antispoof for $ext_if inet
|
||||||
pass in inet proto tcp from any to any port ssh flags S/SA modulate state
|
pass in proto tcp from any to any port ssh flags S/SA modulate state
|
||||||
|
|
||||||
- Make sure to change the ``ext_if`` variable to match your host system
|
- Make sure to change the ``ext_if`` variable to match your host system
|
||||||
interface.
|
interface.
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ rdr-anchor "rdr/*"
|
|||||||
block in all
|
block in all
|
||||||
pass out quick keep state
|
pass out quick keep state
|
||||||
antispoof for \$ext_if inet
|
antispoof for \$ext_if inet
|
||||||
pass in inet proto tcp from any to any port ssh flags S/SA keep state
|
pass in proto tcp from any to any port ssh flags S/SA keep state
|
||||||
EOF
|
EOF
|
||||||
sysrc pf_enable=YES
|
sysrc pf_enable=YES
|
||||||
warn "pf ruleset created, please review ${bastille_pf_conf} and enable it using 'service pf start'."
|
warn "pf ruleset created, please review ${bastille_pf_conf} and enable it using 'service pf start'."
|
||||||
|
|||||||
Reference in New Issue
Block a user