| 段誉 回复于:2004-12-20 01:42:36
|
多谢,并请大家测试。
PS:可能不会搞代理了,但是希望能给大家提供交流的平台。
|
| chris_wan 回复于:2004-12-22 19:19:51
|
晕倒,这么好的东东竟然没有人顶...........................
楼主我帮你测试,有什么问题请教你.
我的MSN: chris_wan@hotmail.com (24小时在线)
QQ:278352648 (不是常在线)
|
| chris_wan 回复于:2004-12-22 19:22:57
|
强列建议加精--置顶!
|
| sailboy 回复于:2004-12-24 19:00:05
|
谢谢
|
| chris_wan 回复于:2004-12-28 16:59:55
|
好象有点错误,请看
[root@sztl-fw2 firewall]# ./firewall.sh
Usage: ./firewall.sh {start|stop|restart|show}
[root@sztl-fw2 firewall]# ./firewall.sh start
Starting firewall...Bad argument `DROP'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `80'
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.8: Unknown arg `--dprot'
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.8: Unknown arg `--to-ports'
Try `iptables -h' or 'iptables --help' for more information.
OK!
[root@sztl-fw2 firewall]# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:http state NEW
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh state NEW
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp state NEW
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3 state NEW
REJECT tcp -- anywhere anywhere reject-with tcp-reset
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@sztl-fw2 firewall]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- anywhere anywhere to:192.168.9.1
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
|
| chris_wan 回复于:2005-01-03 11:39:21
|
嗯,怎么没人回呢
|
| tianfuming 回复于:2005-01-04 12:09:24
|
你把该脚本放到/sbin下然后chmod +x /sbin/firewall
然后/sbin/firewall start试试
|
| Linux小鱼儿 回复于:2005-01-14 15:11:06
|
[code:1:a4eff34bb4]tianfuming
你好,你在这里说到可以[/code:1:a4eff34bb4]
[code:1:a4eff34bb4]重新安装GCC[/code:1:a4eff34bb4]
我想问一下是怎么个装法,我没有Rhat9 的光盘。
|
| sailboy 回复于:2005-01-18 16:44:24
|
支持.!!!
|
| unixli 回复于:2005-03-02 11:27:16
|
[quote:0d6724ff88="chris_wan"]l-fw2 firewall]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source ..........[/quote:0d6724ff88]
iptables -A FORWARD -d !202.108.36.196 -p tcp -m multiport --[color=red:0d6724ff88]dprot[/color:0d6724ff88] 25 110 -j DROP
这句有笔误,dprot应改为dport
|
| lzlux 回复于:2005-03-26 16:55:37
|
http_access allowd lanb homepage #08、允许部分人员只能浏览指定网站;
???
有http_access allowd .... 这个命令参数吗??
|
| zhangxiaosan 回复于:2005-03-28 11:43:15
|
zhichi
|
| joyaid 回复于:2005-05-01 21:55:32
|
up
|
| dqi 回复于:2005-05-08 22:30:02
|
我用的代理服务器redhat linux 9.0 ADSL共享上网,客户机WIN2000连接外部的VPN服务器连接不上,错误721。我的iptables设置的很简单:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
就那么多。那位大哥知道在加点iptables命令,我的VPN就可以连接上?
|