小编dan*_*.ba的帖子

使用 iptables 转发传出流量端口

我试图将所有传出流量从端口 80 转发到端口 8080 iptables,我尝试了以下规则,但它不起作用:

iptables -t nat -A OUTPUT -p tcp --dport 80 -j  REDIRECT --to-port 8080
Run Code Online (Sandbox Code Playgroud)

此外,对于传入流量,我需要一个规则,将同一主机上的端口转发不作为代理。

linux iptables centos

8
推荐指数
1
解决办法
3911
查看次数

标签 统计

centos ×1

iptables ×1

linux ×1