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

客户端加了allowed_ips启动报错 No such file or directory (os error 2) #33

Open
fantasy0v0 opened this issue Dec 17, 2024 · 0 comments

Comments

@fantasy0v0
Copy link

fubuki 0.5.12
OS:Debian 12

日志

Caused by:
    No such file or directory (os error 2)

Stack backtrace:
   0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
   1: fubukil::nat::add_nat
   2: fubukil::node::tcp_handler::{{closure}}::{{closure}}
   3: tokio::runtime::task::raw::poll
   4: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
   5: tokio::runtime::task::raw::poll
   6: std::sys::backtrace::__rust_begin_short_backtrace
   7: core::ops::function::FnOnce::call_once{{vtable.shim}}
   8: std::sys::pal::unix::thread::Thread::new::thread_start

看代码后发现是debian 12不再内置iptables导致的,需要手动安装一下iptables。

https://github.com/xutianyi1999/fubuki/blob/930c857cc9156813841a3233b197661bc535aca8/src/nat/linux.rs#L20C36-L30

不过我目前还不会rust,先记录一下。

xutianyi1999 added a commit that referenced this issue Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant