简体   繁体   English

繁忙桌上的iptables

[英]iptables on busybox

I have busybox installed as a 'starter' package on my embedded linux board and I also need to use iptables to configure some firewall rules. 我在嵌入式Linux板上安装了busybox作为“启动程序”软件包,并且还需要使用iptables配置一些防火墙规则。

Is there a way to get access to iptables from the busybox shell? 有没有办法从busybox外壳访问iptables?

Otherwise, how can I exit busybox shell to get to the iptables command? 否则,如何退出busybox shell进入iptables命令?

Thank you. 谢谢。

(1)First you need to how to modify the kernel, install modules and applications in Busybox environment. (1)首先需要在Busybox环境中修改内核,安装模块和应用程序。

(2)Then you can config the kernel to support Iptables (most in menu of network/netfilter),you can build those kernel modules as ko modules or part of kernel image. (2)然后可以配置内核以支持Iptables(大多数在网络/ netfilter菜单中),可以将这些内核模块构建为ko模块或内核映像的一部分。

(3)go to homepage to netfilter to get application souce code. (3)进入首页进入netfilter获取应用程序源代码。 Build and install. 生成并安装。

(4)modprobe the ko (for example) (4)modprobe ko(例如)

modprobe iptable_filter
modprobe ip_tables

(5)try your IPTABLES....If meet problem, you may goto step 2 to make some change. (5)尝试使用IPTABLES。...如果遇到问题,则可以转到步骤2进行更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM