Created
January 25, 2021 13:52
-
-
Save silenius/a1cae2b9c05761e9211c6c31e06eaf7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fw1 { | |
vnet; | |
vnet.interface = "epair0b"; | |
vnet.interface += "epair1b"; | |
vnet.interface += "epair2b"; | |
devfs_ruleset = "501"; | |
#allow.raw_sockets = "1"; | |
#allow.chflags = "1"; | |
exec.prestart += "ifconfig epair0 create up"; | |
exec.prestart += "ifconfig epair1 create up"; | |
exec.prestart += "ifconfig epair2 create up"; | |
exec.prestart += "ifconfig epair0a up descr vnet-${name}-modem"; | |
exec.prestart += "ifconfig epair1a up descr vnet-${name}"; | |
exec.prestart += "ifconfig epair2a up descr vnet-${name}-pfsync"; | |
exec.prestart += "ifconfig switch-modem addm epair0a up"; | |
exec.prestart += "ifconfig switch-local addm epair1a up"; | |
exec.prestart += "ifconfig switch-pfsync addm epair2a up"; | |
exec.prestop = "/usr/sbin/jexec ${name} /bin/sh /etc/rc.shutdown"; | |
exec.prestop += "/sbin/ifconfig epair0b -vnet ${name}"; | |
exec.prestop += "/sbin/ifconfig epair1b -vnet ${name}"; | |
exec.prestop += "/sbin/ifconfig epair2b -vnet ${name}"; | |
#exec.start += "/sbin/ifconfig lo0 127.0.0.1 up"; | |
#exec.start += "/sbin/ifconfig epair0b up"; | |
#exec.start += "/sbin/ifconfig epair1b 192.168.0.252/24 up"; | |
#exec.start += "/sbin/route add default 192.168.0.254"; | |
exec.poststop += "ifconfig switch-modem deletem epair0a"; | |
exec.poststop += "ifconfig switch-local deletem epair1a"; | |
exec.poststop += "ifconfig switch-pfsync deletem epair2a"; | |
exec.poststop += "ifconfig epair0a destroy"; | |
exec.poststop += "ifconfig epair1a destroy"; | |
exec.poststop += "ifconfig epair2a destroy"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment