- SQUID - IPTABLES
+ Responder ao Tópico
-
SQUID - IPTABLES
E ai pessoal blz?
Segunte, colokei pra rodar aki na empresa o iptables com Squid, mas agora nao consigo nem mandar e nem receber emails, qual a regra q coloco no iptables pra fazer isso.
A tem mais uma pergunta, como fa;o pra mandar e receber arquivos com o RECEITANET da Receita Federal.
Valeu . . . Agurado Respostas . . . <IMG SRC="images/forum/icons/icon_smile.gif"> <IMG SRC="images/forum/icons/icon_smile.gif"> <IMG SRC="images/forum/icons/icon_smile.gif">
-
AndrewAmorimdaSilva
Visitante
SQUID - IPTABLES
Fala blz??
Para e-mail.
# iptables - A FORWARD -i eth0 -p tcp --dport 23 -j ACCEPT
Para o receita net:
-Verifique a porta que o programa usa, ligue para o suporte e pergunte qual a porta ele usa, depois...
# iptables -A FORWARD -p tcp --dport 0000 -j ACCEPT
# iptables -A FORWARD -p udp --dport 0000 -j ACCEPT
# iptables -A FORWARD -p sport --dport 0000 -j ACCEPT
# iptables -A FORWARD -p sport --dport 0000 -j ACCEPT
Onde 0000 é o nº da porta que vc obteve.
Um abraço!!! ;-) ;-) ;-)
-
SQUID - IPTABLES
Fala AndrewAmorimdaSilva
A porta 23 sera para Telnet nao?
nao seria 25 ou 110?
Valeu
-
AndrewAmorimdaSilva
Visitante
SQUID - IPTABLES
Ai good, desculpe...hehe
Isso mesmo!!!
-
SQUID - IPTABLES
Fala fera
A respeito do email, nao funcionou aki, vou passar as regras q estou usando . . .
#************** LIMPA E ZERA AS REGRAS **********
/usr/sbin/iptables -F
/usr/sbin/iptables -Z
/usr/sbin/iptables -t nat -F
#***** NEGA TODA ENTRADA E A PASSAGEM DE PACOTES ****
/usr/sbin/iptables -t filter -P INPUT DROP
/usr/sbin/iptables -t filter -P FORWARD DROP
#***** ACEITA TODA A ENTRADA E SAIDA DE PACOTES PARA O LOOPBACK ******
/usr/sbin/iptables -t filter -A INPUT -i lo -j ACCEPT
/usr/sbin/iptables -t filter -A OUTPUT -o lo -j ACCEPT
#***** PING OF DEATH*******************************************************************
/usr/sbin/iptables -t filter -A INPUT -p icmp --icmp-type echo-request -m limit --limit 1/s -j ACCEPT
/usr/sbin/iptables -t filter -A FORWARD -p icmp --icmp-type echo-request -m limit --limit 1/s -j ACCEPT
#***** SYN-FLOAD ***********************************************************************
/usr/sbin/iptables -t filter -A INPUT -p tcp -m limit --limit 1/s -j ACCEPT
/usr/sbin/iptables -t filter -A FORWARD -p tcp -m limit --limit 1/s -j ACCEPT
#***** NMAP *******************************************************************************
/usr/sbin/iptables -t filter -A INPUT -p tcp --tcp-flags ALL SYN,ACK,FIN,RST -m limit --limit 1/s -j ACCEPT
/usr/sbin/iptables -t filter -A FORWARD -p tcp --tcp-flags ALL SYN,ACK,FIN,RST -m limit --limit 1/s -j ACCEPT
#***** CONEXOES JA ESTABELECIDAS *******************************
/usr/sbin/iptables -t filter -A INPUT -m state --state NEW -j ACCEPT
/usr/sbin/iptables -t filter -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/usr/sbin/iptables -t filter -A FORWARD -m state --state NEW -j ACCEPT
/usr/sbin/iptables -t filter -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
#***** ACEITA A PASSAGEM ****************************************
/usr/sbin/iptables -t filter -A FORWARD -d 0/0 -s 192.168.1.0/24 -o eth0 -j ACCEPT
/usr/sbin/iptables -t filter -A FORWARD -d 192.168.1.0/24 -s 0/0 -i eth0 -j ACCEPT
#***** TODA SAIDA SERA MASCARADA ********************************************
/usr/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/usr/sbin/iptables -t filter -A INPUT -s 192.168.1.0/24 -d 0/0 -j ACCEPT
/usr/sbin/iptables -t filter -A OUTPUT -s 192.168.1.0/24 -d 0/0 -j ACCEPT
#***** PING DA MAKINA FIREWALL PARA QUALQUER LUGAR SERA ACEITA ****
/usr/sbin/iptables -t filter -A OUTPUT -p icmp -s 192.168.1.0/24 -d 0/0 -j ACCEPT
#* TODA ENTRADA PORTA 80 SERA DIRECIONADA PARA A PORTA DO SQUID (312<IMG SRC="images/forum/icons/icon_cool.gif">
/usr/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
#***** REGRAS DO ICQ *******************************************************************************
#/usr/sbin/iptables -t filter -A INPUT -p udp --source-port 4000 -d 192.168.1.0/24 -i ppp0 -j ACCEPT
#/usr/sbin/iptables -t filter -A INPUT -p udp -s 192.168.1.0/24 --dport 4000 -j ACCEPT
#/usr/sbin/iptables -t filter -A INPUT -p udp --source-port 5190 -d 192.168.1.0/24 -i ppp0 -j ACCEPT
#/usr/sbin/iptables -t filter -A INPUT -p udp -s 192.168.1.0/24 --dport 5190 -j ACCEPT
;;
stop)
gprintf "Parando o serviço %s: " "IPtables"
echo
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
echo 0 > /proc/sys/net/ipv4/ip_forward
/usr/sbin/iptables -t nat -F
/usr/sbin/iptables -Z
/usr/sbin/iptables -F
;;
*)
gprintf "Uso: iptables (start|stop)"
echo
;;
esac
exit 0
Valeu...... Aguardo Respostas Pessoal
-
SQUID - IPTABLES
Cara, não sei se é o caso.
Mas vi um problema igual as seu... mas o problemas estava na configuração do gateway da maquina cliente....
Não tinha gateway nem dns... por isso as mensagens nao entravam e nem saiam.
-
SQUID - IPTABLES
Eu tambem estou com este mesmo problema e as maquinas clientes estao com o gateway e dns configurado
-
SQUID - IPTABLES
No meu caso, o gateway e o DNS funcinaram... e todas os clientes outlook começaram a funcionar....