NPF LOAD

Emmanuel Nyarko <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
https://github.com/NetBSD/src/blob/trunk/usr.sbin/npf/npfctl/npfctl.c#L506

		ret = npfctl_load(fd);  
		fun = "npfctl_config_load”;  // looks like there’s a typo here
There’s no npfctl_config_load function in netbsd and npfctl_load isn’t doing what I’m expecting.



An issue to be fixed.

Have some configurations in /etc/npf.conf

# npfctl start
# npfctl show
    Output:
	filtering : active
	config.  : empty
# npfctl load //loading the configuration
# npfctl show
    output:
	filtering : active
	config  : empty // why is config empty here ??? 

#npfctl reload
#npfctl show
	filtering : active
	config.  : loaded
/************
Configurations listed below 
************/

I don’t know if it is a design philosophy but I think "npfctl load" should load the config too and not only reload doing that.

On the Manual

 load 
 Load the saved configuration file and the connections from the
file. Note that any existing connections will be destroyed.
Administrator may want to start packet inspection after the
load.

After doing 
# npfctl load
Then…
#npfctl start
# npfctl show
// same story with configuration file empty.


Emmanuel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.