Navigation

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

    Where is pf module (pf.ko) located in pfsense?

    General pfSense Questions
    3
    3
    538
    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.
    • T
      trongkha last edited by

      I have a project working with pf in pfsense. I want to modify pf modules. In FreeBSD, I founded it located in /boot/kernel by the name pf.ko, but in PFsense I can't find any module with the same name, I've checked pf module loaded by command: kldstat -m pf, so the result: .

      I have 2 question about this progress:

      • Where does pf locate in pfsense?

      • Can I modify pf module in FreeBSD and load it into pfsense? If yes, How can I do that?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned last edited by

        @trongkha:

        Can I modify pf module in FreeBSD and load it into pfsense? If yes, How can I do that?

        Sure thing. If you want the box to make a giant kaboom, go ahead.

        1 Reply Last reply Reply Quote 0
        • H
          heper last edited by

          it's more than likely it's builtin the kernel and not a module.

          kldstat shows that it isnt loaded seperately:

          
          [2.2.2-DEVELOPMENT][root@pfsense]/root: kldstat
          Id Refs Address    Size     Name
           1   10 0xc0400000 1f3c660  kernel
           2    1 0xc4d45000 20000    ipfw.ko
           3    1 0xc475b000 d000     dummynet.ko
          
          

          it also shows that the ones that are loaded are in the directory you've been looking in:

          
          [2.2.2-DEVELOPMENT][root@pfsense]/root: find / -name ipfw.ko
          /boot/kernel/ipfw.ko
          [2.2.2-DEVELOPMENT][root@pfsense]/root: 
          
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post