- 论坛徽章:
- 0
|
squid.conf应该没什么问题,你没做任何限制
iptables试试以下脚本:
- #! /bin/bash
- for table in filter nat mangle
- do
- iptables -F $table
- iptables -X $table
- done
- iptables -P INPUT ACCEPT
- iptables -P FORWARD ACCEPT
- iptables -P OUTPUT ACCEPT
- iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
- iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
- echo "1" > /proc/sys/net/ipv4/ip_forward
- iptables -t nat -A PREROUTING -s 192.168.0.200/32 -p tcp --dport 80 -j REDIRECT 3128
- iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE
复制代码 |
|