silva28
(usa Outra)
Enviado em 04/02/2010 - 09:33h
Regras do iptables:
# Generated by iptables-save v1.3.6 on Thu Feb 4 08:37:13 2010
*nat
:PREROUTING ACCEPT [226:30072]
:POSTROUTING ACCEPT [226:14904]
:OUTPUT ACCEPT [243:15936]
-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-A POSTROUTING -o eth1 -p tcp -j MASQUERADE
-A POSTROUTING -o eth0 -p tcp -j MASQUERADE
COMMIT
# Completed on Thu Feb 4 08:37:13 2010
# Generated by iptables-save v1.3.6 on Thu Feb 4 08:37:13 2010
*filter
:INPUT ACCEPT [8592:4953728]
:FORWARD ACCEPT [90:52464]
:OUTPUT ACCEPT [8203:4825228]
-A FORWARD -i eth1 -o eth0 -j ACCEPT
COMMIT
Obrigado amigos: dica é:
1)ip_forward habilitado
2)masquerade na interface de internet
3)permissão de transição entre as interfaces(o que faltava)
Valeu pessoal,muito obrigado