我看你应该是有固定的公网IP的,所以这样几句
iptables -t nat -A POSTROUTING -s 10.139.153.0/255.255.255.0 -o eth1 -j MASQUERADE
最好换成
iptables -t nat -A POSTROUTING -s 10.139.153.0/255.255.255.0 -o eth1 -j SNAT --to x.x.x.x #x是你的公网IP作者: milanman 时间: 2004-06-11 08:07 标题: 紧急求助SQUID+IPTABLES问题. 谢了作者: milanman 时间: 2004-06-11 08:11 标题: 紧急求助SQUID+IPTABLES问题. 2004/06/09 17:29:14| Squid Cache (Version 2.5.STABLE1): Exiting normally.
2004/06/09 17:32:27| Starting Squid Cache version 2.5.STABLE1 for i386-redhat-linux-gnu...
2004/06/09 17:32:27| Process ID 1428
2004/06/09 17:32:27| With 1024 file descriptors available
2004/06/09 17:32:27| DNS Socket created at 0.0.0.0, port 32769, FD 5
2004/06/09 17:32:27| Adding nameserver 211.136.18.171 from squid.conf
2004/06/09 17:32:27| Adding nameserver 210.52.207.2 from squid.conf
2004/06/09 17:32:27| Unlinkd pipe opened on FD 9
2004/06/09 17:32:27| Swap maxSize 4194304 KB, estimated 322638 objects
2004/06/09 17:32:27| Target number of buckets: 16131
2004/06/09 17:32:27| Using 16384 Store buckets
2004/06/09 17:32:27| Max Mem size: 81920 KB
2004/06/09 17:32:27| Max Swap size: 4194304 KB
2004/06/09 17:32:27| Store logging disabled
2004/06/09 17:32:27| Rebuilding storage in /var/spool/squid (CLEAN)
2004/06/09 17:32:27| Using Least Load store dir selection
2004/06/09 17:32:27| Set Current Directory to /var/spool/squid
2004/06/09 17:32:27| Loaded Icons.
2004/06/09 17:32:28| Accepting HTTP connections at 0.0.0.0, port 8080, FD 10.
2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:58:53| ipcacheParse: No Address records
2004/06/10 08:58:54| ipcacheParse: No Address records
2004/06/10 08:58:54| ipcacheParse: No Address records
2004/06/10 10:54:31| sslReadServer: FD 41: read failure: (104) Connection reset by peer
2004/06/10 13:30:08| urlParse: Illegal character in hostname 'felix_.html.533.net'
2004/06/10 13:56:58| urlParse: Illegal character in hostname '%20http'
2004/06/10 14:33:11| urlParse: Illegal character in hostname '%b7%bd%c0%f2'
2004/06/10 15:15:07| clientReadRequest: FD 14 Invalid Request
2004/06/10 15:15:07| clientReadRequest: FD 14 Invalid Request
2004/06/10 15:15:07| clientReadRequest: FD 14 Invalid Request
2004/06/10 15:19:38| urlParse: Illegal character in hostname 'samba%20server'
2004/06/10 15:23:54| urlParse: Illegal character in hostname 'samba%20server'
2004/06/10 15:24:05| urlParse: Illegal character in hostname 'samba%20server'
2004/06/10 15:33:15| urlParse: Illegal character in hostname 'samba%20server'
2004/06/10 15:33:17| urlParse: Illegal character in hostname 'samba%20server'
2004/06/10 15:33:22| urlParse: Illegal character in hostname 'samba%20server'
2004/06/10 15:33:22| urlParse: Illegal character in hostname 'samba%20server'
2004/06/10 15:33:24| urlParse: Illegal character in hostname 'samba%20server'
这是CACHE.LOG.作者: milanman 时间: 2004-06-11 08:16 标题: 紧急求助SQUID+IPTABLES问题. 修改过硬件防火墙设置以后,代理可以用了.
谢谢UNIXLI兄的回复.还请你多指教,请问该如何调整SQUID.(我是刚学的这个东西,不太懂.就只在网上找了些帖子配置的).作者: unixli 时间: 2004-06-11 13:42 标题: 紧急求助SQUID+IPTABLES问题. 2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:57:34| ipcacheParse: No Address records
2004/06/10 08:58:53| ipcacheParse: No Address records
2004/06/10 08:58:54| ipcacheParse: No Address records
2004/06/10 08:58:54| ipcacheParse: No Address records