problem with squid and iptables
i use my mandrake 10.0 as a adsl gateway and transparent proxy. i installed squid and ppoe for adsl service. i configure iptables below :
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT
iptables -A OUTPUT -j ACCEPT -m state --state NEW -o eth1 -p tcp --dport 80
echo 1 > /proc/sys/net/ipv4/ip_forward
my server also running an apache server for the local network, but it only can be browse using an ip address, i already add the erver name in /etc/hosts but it still not working, i think maybe it because of my iptables configuration, anybody have an idea ?
|