我想为其设置了鱿鱼服务器的正向代理。
现在,我要从一台Linux计算机上转发该计算机生成的所有流量,以便将google.com发送到我的鱿鱼服务器。
如何通过iptables完成此操作
我尝试了以下命令,但现在有所帮助
[root@ip-10-1-1-154 ~]# iptables -I OUTPUT -p tcp -s google.com -d 10.1.1.196:3128 -j ACCEPT
iptables v1.4.21: host/network `10.1.1.196:3128' not found
Try `iptables -h' or 'iptables --help' for more information.
根据我的理解,上述命令失败了,我试图将其转发到该服务器的IP和端口
[root@ip-10-1-1-154 ~]# iptables -I OUTPUT -p tcp -s google.com -d 10.1.1.196 -j ACCEPT
此命令在I表中输入了一条规则,但没有帮助