This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 有关防火墙的 iptables 的帮助

Guru**** 2455560 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1048027/help-with-iptables-for-firewall

大家好、

我们正在开发一个客户项目、该项目在基于 iMX6的 SBC–山高 A62 J 上运行 Android OS。我们正在研究在此项目上实施软件防火墙、并发现命令行工具- iptables 在这方面很有帮助。 我们需要通过阻止除其中两个端口(5671和443)之外的所有端口来阻止不需要的传入流量。

我们对相同的命令使用了以下命令:

 

iptables -a output -p tcp --dport 5671 -j accept //启用端口5671

iptables -a output -p tcp --dport 443 -j accept  //启用端口443 iptables -a output -p tcp -m tcp -j reject //禁用所有其它端口

 

这些命令在我们将通过调用解释的某些情况下不起作用。 以上命令也用于输出。 输入的类似命令不起作用。 因此、我们需要对此提供一些指导。

在此感谢您的帮助。

Thnaks

Mithun

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Mithun、

    请说明您在此设计中使用的是哪款 TI 处理器?  

    此致、

    ~Leonard