nathanx21
(usa Debian)
Enviado em 01/12/2011 - 14:07h
estou com dificuldade em liberar a porta do pop3 e do imap4 no debian segue a configuração aabaixo quando executo a operação do firewal tento acessar o squirellmail via servidor cliente não funciona e fala que pop3 e imap4 não esta sendo liberado eu faço o que?
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -t nat -A POSTROUTING -s 0/0 -o eth0 -j MASQUERADE
#iptables -t nat -A PREROUTING -p tcp -i eth2 --dport 80 -j REDIRECT --to-port 3128
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 22 -j ACCEPT
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -p tcp -s 172.17.0.251/32 -d 172.17.0.253/32 --dport 22 -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -p tcp -s 172.17.0.251/32 -d 172.17.0.253/32 --dport 8080 -j ACCEPT
iptables -A FORWARD -p tcp -s 172.17.0.251/32 -d 172.17.6.2/32 --dport 80 -j ACCEPT
iptables -A FORWARD -p udp -s 172.17.0.253/32 -d 172.17.0.253/32 --dport 53 -j ACCEPT
iptables -A FORWARD -p tcp -s 172.17.0.25/32 -d 192.17.6.2/32 --dport 3389 -j ACCEPT
iptables -A INPUT -p udp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 3128 -j ACCEPT
iptables -A INPUT -p udp --dport 3130 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
iptables -A OUTPUT -p udp --dport 53 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p udp -s 172.17.0.254/32 --dport 53 -j ACCEPT
iptables -A INPUT -p icmp -s 172.17.0.253/32 -j ACCEPT
iptables -A OUTPUT -p icmp -j ACCEPT
iptables -A INPUT -p icmp -s 172.17.0.251/32 -j ACCEPT
iptables -A FORWARD -p icmp -s 172.17.0.254/32 -d 172.17.0.253/32 -j ACCEPT
FORWARD -p tcp -s 172.17.0.253/32 -d 172.17.0.251/32 --dport 193 -j ACCEPT
#debian
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 3306 -j ACCEPT
iptables -A INPUT -p udp -s 172.17.0.254/32 --dport 3306 -j ACCEPT
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 143 -j ACCEPT
iptables -A INPUT -p udp -s 172.17.0.254/32 --dport 143 -j ACCEPT
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 995 -j ACCEPT
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 110 -j ACCEPT
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 993 -j ACCEPT
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 25 -j ACCEPT
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 993 -j ACCEPT
iptables -A INPUT -p tcp -s 172.17.0.254/32 --dport 995 -j ACCEPT