Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npfctl: fstat: No such file or directory #107

Open
diorgesl opened this issue Jun 6, 2020 · 5 comments
Open

npfctl: fstat: No such file or directory #107

diorgesl opened this issue Jun 6, 2020 · 5 comments

Comments

@diorgesl
Copy link

diorgesl commented Jun 6, 2020

Idk whats wrong, everything compiled ok...

Using Debian 10.4.

root@npf:~/npf# npfctl start
npfctl: fstat: No such file or directory

npfctl debug works

Thanks in advance.

@rmind
Copy link
Owner

rmind commented Jun 6, 2020

Please provide a proper problem description when submitting the bug reports.

Are you running the NPF-Router? If yes, then npfctl start is currently not functional / not needed; NPF will be automatically started on spinning up the router, so you can just load your configuration.

@perseant
Copy link
Contributor

perseant commented Jul 8, 2021

I had the same issue just now on a host newly upgraded to NetBSD 9.2. After some lucky guessing I resolved this by creating /dev/npf . It would be a lot easier to figure out what's wrong if the error message included the name of the file that wasn't found instead of "fstat" (replace "fstat" with path on npfctl.c line ~348).

@rmind
Copy link
Owner

rmind commented Jul 9, 2021

@perseant: Seems sensible. Would you like to make a PR?

@perseant
Copy link
Contributor

@rmind PR 56307. Wasn't sure which one was the canonical source. I'm happy to commit the patch in the PR if it looks good to you. Thanks!

@rmind
Copy link
Owner

rmind commented Jul 13, 2021

@perseant: I meant a pull request (PR) on GitHub since this repository is the source/upstream. :) It will automatically compile-test and run the unit tests for you here.

There are already some new features here (e.g. rate-limiting using the CAR algorithm), so it's best to not diverge the trees, but merge everything here and then perform a sync to NetBSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants