aloisiopf
(usa Fedora)
Enviado em 05/09/2011 - 20:30h
Boa noite Renato.
O problema ainda persiste. Para fazer uns teste até fiz uma regra com a política padrão como ACCEPT para ver se resolvia. Abaixo segue as regras que fiz com a política ACCEPT. Se puder me ajudar agradeço.
#!/bin/sh
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp
modprobe iptable_filter
modprobe iptable_mangle
modprobe iptable_nat
modprobe ip_tables
modprobe ipt_limit
modprobe ipt_LOG
modprobe ipt_MARK
modprobe ipt_mark
modprobe ipt_MASQUERADE
modprobe ipt_TOS
modprobe nf_conntrack_ftp
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z
iptables -t mangle -F
iptables -t mangle -X
iptables -t mangle -Z
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -s $IP_LAN -o $INT_WAN -j MASQUERADE
iptables -A INPUT -i $INT_WAN -d $DOMINIO_WAN_NOIP -p tcp --dport 21 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i $INT_WAN -d $DOMINIO_WAN_NOIP -p tcp --dport 2100:2200 -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT
iptables -A INPUT -i $INT_WAN -d $DOMINIO_WAN_NOIP -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT
iptables -A FORWARD -s $IP_LAN -p tcp -m multiport --dports 20,21,2100:2200 -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT
iptables -A FORWARD -d $DOMINIO_WAN_NOIP -p tcp --sport 1024: --dport 20 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -d $DOMINIO_WAN_NOIP -p tcp --sport 1024: --dport 2100:2200 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -d $DOMINIO_WAN_NOIP -p tcp --sport 1024: --dport 20 -m state --state ESTABLISHED -j ACCEPT
iptables -t nat -A PREROUTING -i $INT_WAN -d $DOMINIO_WAN_NOIP -p tcp --dport 20 -j DNAT --to $IP_SERVER:20
iptables -t nat -A PREROUTING -i $INT_WAN -d $DOMINIO_WAN_NOIP -p tcp --dport 21 -j DNAT --to $IP_SERVER:21
iptables -t nat -A PREROUTING -i $INT_WAN -d $DOMINIO_WAN_NOIP -p tcp --sport 1024: --dport 3100:3200 -m state --state ESTABLISHED,RELATED -j DNAT --to $IP_SERVER:3100-3200
iptables -t mangle -A OUTPUT -o $INT_LAN -p tcp -m multiport --dports 20,21,2100:2200 -j TOS --set-tos 8
iptables -t mangle -A PREROUTING -i $INT_WAN -p tcp -m multiport --dports 20,21,2100:2200 -j TOS --set-tos 4
echo 1 > /proc/sys/net/ipv4/ip_forward