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



  • 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?


  • Banned

    @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.



  • 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: 
    
    

Log in to reply