Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Keep "tap" interface after reboot? (bridge member)

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 690 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      daemonix
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        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

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          daemonix @stephenw10
          last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            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

            D 1 Reply Last reply Reply Quote 1
            • D Offline
              daemonix @stephenw10
              last edited by

              @stephenw10 this is amazing! I didnt know about it!
              Ill report back for future weirdos!

              Thanks a lot

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.