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

期待让RouterOS支持golang #12

Open
amilus668 opened this issue Jun 24, 2024 · 12 comments
Open

期待让RouterOS支持golang #12

amilus668 opened this issue Jun 24, 2024 · 12 comments

Comments

@amilus668
Copy link

感谢作者无私奉献🙏

@naishi001
Copy link

golang跨平台的

@elseif
Copy link
Owner

elseif commented Jun 25, 2024

shell下可以运行go编译的程序。

@amilus668
Copy link
Author

哇👍那我就可以试试部署 opengfw(¯▽¯)👍

@amilus668
Copy link
Author

测试了一下,部署OpenGFW

报错

/flash/rw/disk # ./OpenGFW-linux-amd64 -c config.yaml rules.yaml 
2024-06-25T10:58:45Z    FATAL   failed to parse config  {"error": "invalid config: io: exec: \"iptables\": executable file not found in $PATH"}

看起来是RouterOS没有iptables程序

@elseif
Copy link
Owner

elseif commented Jun 25, 2024

内核就没iptables,所有容器才不能装wrt

@amilus668
Copy link
Author

哈哈,看来是没救了🤦‍♂️

@Chupaka
Copy link

Chupaka commented Jun 26, 2024

There are nftables modules in RouterOS kernel, so you just need nft command to try again: apernet/OpenGFW#101 (comment)

@amilus668
Copy link
Author

There are nftables modules in RouterOS kernel, so you just need nft command to try again: apernet/OpenGFW#101 (comment)

/flash/rw/disk # nft
bash: nft: not found

@Chupaka
Copy link

Chupaka commented Jun 29, 2024

Yeah, you need to get it somewhere else. I just know that nftables work in Containers, so it does have support in kernel.

@amilus668
Copy link
Author

Yeah, you need to get it somewhere else. I just know that nftables work in Containers, so it does have support in kernel.

Are you running opengfw on Containers?

@pop2006
Copy link

pop2006 commented Jun 29, 2024

能自由升级吗?如从7.15.1升级到7.15.2

@Chupaka
Copy link

Chupaka commented Jun 29, 2024

Are you running opengfw on Containers?

No, I was playing with WireGuard in Containers, it needs iptables, and I had to use iptables-legacy (in alpine linux) which is iptables interface for nftables

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

5 participants