| firer2000 回复于:2003-07-04 15:36:02
|
有问题请指出~
|
| 段誉 回复于:2003-07-07 17:57:42
|
暂时没有,长期关注。
|
| workaholic 回复于:2003-07-08 09:29:51
|
我也慢慢看着呢 :)
|
| firer2000 回复于:2003-07-09 13:42:21
|
[quote:3d3211e12f="workaholic"]我也慢慢看着呢 :)[/quote:3d3211e12f]
呵呵,多谢关心呀!
|
| startdd 回复于:2003-07-11 02:28:54
|
支持!
|
| linuxs 回复于:2003-07-14 10:50:48
|
关注
|
| jzcjy 回复于:2003-08-26 12:35:42
|
如何实现在多网段下的支持。
|
| firer2000 回复于:2003-08-26 16:21:08
|
我采用的方法是安装多个网卡,然后在iptables的规则里面添加相应的项目。
|
| windywolf 回复于:2003-08-27 11:30:30
|
你说的
7. 修改squid.conf,enable ncsa_auth用户认证功能
我用过,觉得不好,因为整个内网的机子,只要知道
用户口令就能使用代理了
我一直想用mac来限制机子,可是,用带enable-acl-arp
选项安装squid,始终在squid.conf中没有acl arp 条目出现
自己加又不生效,现在只能用限ip的方法了
不知道大家还有没有更好的管理方法(单指squid
不包括iptables)
|
| windywolf 回复于:2003-08-27 11:34:58
|
firer2000
你的ftp网站密吗是什么呀
想上去看看
|
| firer2000 回复于:2003-08-28 10:11:03
|
你用的是那个版本的squid?用2.5的试试!
|
| firer2000 回复于:2003-08-28 10:11:38
|
我的ftp用户名和密码都是firer2000
|
| windywolf 回复于:2003-08-28 14:12:14
|
我用的是squid-2.5.STABLE3.tar.gz
这个版本应该没有什么问题吧
你能用acl advance arp xx.xx.xx.xx吗???
|
| firer2000 回复于:2003-08-29 07:49:59
|
这个我没有试过,你看看精华贴,里面有这方面的说明,我见过
|
| repairer 回复于:2003-09-05 22:18:43
|
请问通过以上设置,客户机可以用qq和msn吗?谢谢!
|
| antsnm 回复于:2003-09-06 19:23:22
|
我作了密码认证可是怎么就是通不过认证呢?是不是对加密进行设置?
|
| firer2000 回复于:2003-09-08 08:33:43
|
你是说输入用户名和密码后不能通过?
|
| lpy001 回复于:2003-09-10 08:53:23
|
root@localhost squid]# cd bin
[root@localhost bin]# ls
RunAccel RunCache squidclient
[root@localhost bin]# ./squid -z
bash: ./squid: No such file or directory
[root@localhost bin]# cd..
bash: cd..: command not found
[root@localhost bin]# cd..
bash: cd..: command not found
[root@localhost bin]# cd ..
[root@localhost squid]# cd ..
[root@localhost local]# su nobody
This account is currently not available
在执行./squid和su nobody时出错;
1.cache目录是建在/usr/local下,是还是建在/usr/local/squid目录下?
2.chown nobody.nobody -R squid是什么意思?
|
| 段誉 回复于:2003-09-11 13:06:37
|
缺省情况下,squid是在/usr/sbin目录下,至于cache目录,和你的配置文件——squid.conf有关系,在配置文件里面定义这个目录的位置。
|
| forx86 回复于:2003-10-03 09:10:29
|
"下面是原文给出的firewall脚本,共参考
#!/bin/sh
echo "Enable IP Forwarding..."
echo "1">/proc/sys/net/ipv4/ip_forward
echo "Starting iptables rules..."
/sbin/modprobe iptable_filter
/sbin/modprobe ip_tables
/sbin/modprobe iptable_nat
#Refresh all chains
/sbin/iptables -F -t nat
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to a.b.c.d
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT "
上边的iptables -P INPUT DROP
这样用这个脚本能打开网页吗?试试这个脚本怎么打不开网页啊???
请老大指点。
|
| NetDC 回复于:2003-11-12 10:22:27
|
[quote:837df5860d="firer2000"]iptables -P INPUT DROP
iptables -P FORWARD DROP [/quote:837df5860d]
这里我不是很明白,INPUT和FORWARD规则都DROP掉了,nat还能用吗?虽然POSTROUTING 在INPUT之前,可是我当时做的一个nat好像不能把所有的INPUT都drop掉,要不nat就不能工作。
讨教一下,谢谢。
|
| paulwang 回复于:2004-05-21 10:06:11
|
[code:1:0bab3e474e]
这里我不是很明白,INPUT和FORWARD规则都DROP掉了,nat还能用吗?虽然POSTROUTING 在INPUT之前,可是我当时做的一个nat好像不能把所有的INPUT都drop掉,要不nat就不能工作。
讨教一下,谢谢。
[/code:1:0bab3e474e]
听说, INPUT, OUTPUT,FORWARD 这三条链对同一个数据包, 只有其中一条有效, 既NAT不关 INPUT和OUTPUT的事,
见别人的文章:http://www.linuxforum.net/doc/iptable-wu.html
另外:上面的解决方案中好象同时起用了透明代理和NAT吧, 不光是透明代理吧。
还有: 我很菜,请指教
|
| wingger 回复于:2005-02-03 15:51:33
|
[quote:aab337cb6e="NetDC"]
这里我不是很明白,INPUT和FORWARD规则都DROP掉了,nat还能用吗?虽然POSTROUTING 在INPUT之前,可是我当时做的一个nat好像不能把所有的INPUT都drop掉,要不nat就不能工作。
讨教一下,谢谢。[/quote:aab337cb6e]
-p是缺省规则,表示,不区配的包使用的规则
|
| wingger 回复于:2005-02-04 13:37:17
|
[quote:b066cfc110]3、在/etc/rc.d/目录下用touch命令建立firewall文件,执行chmod u+x firewall以改变文件属性,编辑
/etc/rc.d/rc.local文件,在末尾加上/etc/rc.d/firewall以确保开机时能自动运行该脚本.
firewall内容为:
modprobe ip_tables
modprobe ip_nat_ftp
modprobe ip_conntrack
modprobe ip_conntrack_ftp
echo 1>/proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eht1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -t nat -A POSTROUTING -s 172.16.0.0/23 -o eth0 -j SNAT --to 211.141.67.10
###########################################[/quote:b066cfc110]
[quote:b066cfc110]下面是原文给出的firewall脚本,共参考
#!/bin/sh
echo "Enable IP Forwarding..."
echo "1">/proc/sys/net/ipv4/ip_forward
echo "Starting iptables rules..."
/sbin/modprobe iptable_filter
/sbin/modprobe ip_tables
/sbin/modprobe iptable_nat
#Refresh all chains
/sbin/iptables -F -t nat
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to a.b.c.d
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
###########################################[/quote:b066cfc110]
[code:1:b066cfc110]iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT[/code:1:b066cfc110]
有差别哦!我的MSN不通过代理就不能上线!为啥呢,要什么特别的设置吗
|