Keep "tap" interface after reboot? (bridge member)
-
Hi,
How do I keep a tap interface I created there after reboot?
I did a simple "ifconfig tan0 create" then on GUI I enabled it, made a new bridge and set tap and another interface as members. Nothing special.
I also added "net.link.tap.up_on_open=1" to /etc/sysclt.conf
But! After reboot tap is gone and net.link.tap.up_on_open is 0!
Any ideas?
-
pfSense uses neither rc.conf nor sysctl.conf(dircertly) so that won't work.
sysctls need to be entered in Sys > Adv > System Tunables. That list is stored in the config and overwrites the file at boot.
What exactly are you trying to do?
Steve
-
@stephenw10 Ive been testing freebsd bhyve on a testing system I have (I know its not recommended on a firewall etc!)
I created a tap0 so VM can attach to it and added it to the "LAN" bridge together with the physical ethernet port etc (all this from GUI).
On reboot tap0 is gone.
I added the net.link line on System Tunables but I need to find a way to keep tap0 alive through reboots.Is there a way to hack it in?
Thanks
-
You can probably add it with a shellcmd. It might need to be an early shellcmd.
https://docs.netgate.com/pfsense/en/latest/development/boot-commands.html#executing-commands-at-boot
When I have done this before I used a script that created the tap adapter and lauched bhyve against it. It's been a while though!
Steve
-
@stephenw10 this is amazing! I didnt know about it!
Ill report back for future weirdos!Thanks a lot