【问题标题】:iptables --to-port on linux kernel 3.4.103Linux 内核 3.4.103 上的 iptables --to-port
【发布时间】:2015-10-17 15:18:02
【问题描述】:

我的嵌入式系统使用的是 linux kernel 3.4。

我尝试了设置iptable规则的命令:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

但我收到了这条消息:

iptables v1.4.10: unknown option `--to-port'
Try `iptables -h' or 'iptables --help' for more information.

难道不能在 linux kernel 3.4 上使用--to-port 选项吗? 还有其他选择或解决方案吗?

【问题讨论】:

    标签: linux redirect embedded firewall iptables


    【解决方案1】:

    你必须安装apckage iptables-mod-nat-extraiptables extensions for extra NAT targets. Includes: - REDIRECT

    看看HERE

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-29
      • 2016-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多