找回密码
 注册
查看: 453|回复: 2

请教透明代理问题!!

[复制链接]
发表于 2003-6-24 09:03:10 | 显示全部楼层 |阅读模式
[root@localhost root]# /etc/rc.d/init.d/iptables restart
正在应用 iptables 防火墙规则:
iptables-restore v1.2.7a: Unknown arg `--to-ports'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
                                                                [ 失败 ]
请问出现这样的错误是什么问题!!

# 指定 网卡、地址:
[0] -A PREROUTING -s 10.3.2.0/255.255.255.0 -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
[0] -A PREROUTING -s 10.3.2.0/255.255.255.0 -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 3128
#10.3.2.0 ip段的设置
#[0] -A PREROUTING -s 10.3.3.0/255.255.255.0 -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
[0] -A PREROUTING -s 10.3.3.0/255.255.255.0 -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT
--to-ports 3128
#10.3.3.0 ip段的设置

我的配置是这样的!!
发表于 2003-6-24 09:25:46 | 显示全部楼层
iptables v1.2.7a 没有 `--to-ports' 参数
回复

使用道具 举报

 楼主| 发表于 2003-6-24 10:04:09 | 显示全部楼层
那我应该怎样设置啊 !!具体的参数是什么 ??
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-3-4 01:38 , Processed in 0.043236 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表