wrgaspar
(usa Debian)
Enviado em 17/04/2009 - 20:59h
Boa noite Claudir
Rodo o mns-proxy em modo verbose e está ok.
Mysql, msn-proxy e php estão rodando
instalei o squid transparente.
Vou postar abaixo o meu iptables
Obrigado!!
iptables -F
iptables -t nat -F
iptables -t mangle -F
rede_interna=192.168.1.0/24 #eth1
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
modprobe iptable_nat
modprobe ip_tables
modprobe ipt_state
modprobe ip_conntrack
modprobe ipt_multiport
modprobe iptable_mangle
iptables -A INPUT -p tcp --dport 1863 -i eth0 -j ACCEPT
iptables -A INPUT -p tcp --dport 25000:30000 -s 192.168.1.0/24 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 25000:30000 -s 192.168.1.0/24 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 1863 -s 192.168.1.0/24 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -s $rede_interna --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -p tcp -s $rede_interna --dport 443 -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -s $rede_interna -p tcp --dport 8000 -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 1863 -j REDIRECT --to-port 1863
# iptables -t nat -A PREROUTING -p tcp --dport 1863 -s 192.168.1.0/24 -j REDIRECT --to-port 1863
iptables -t nat -I POSTROUTING -s $rede_interna -j MASQUERADE
iptables -A FORWARD -s $rede_interna -d loginnet.passport.com -j REJECT
exit 0