Alukardd Не подскажите какие порты необходимы для торрентов, Iptables выглядит так:
[more]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
UTPUT ACCEPT [0:0]
:RH-F ireua11-1-INPUT - [0:0]
-A INPUT -j RH-F ireua11-1-INPUT
-A FORWARD -j RH-Fireua11-1-INPUT
-A RH-F ireua11-1-INPUT -i lo -j ACCEPT
-A RH-Fireual1-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m udp -p udp --dport 123 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1500:1550 -j A
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-F ireua11-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3128 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m udp -p udp --dport 162 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3389 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5190 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5938 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m udp -p udp --dport 5938 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9091 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 465 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 585 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT
-A RH-Fireual1-1-INPUT -m state --state NEW -m tcp -p tcp --dport 995 -j ACCEPT
[/more]
Nat раздаю для NAS так:
-A POSTROUTING -s [NAS-адрес]/32 -o eth1 -j MASQUERADE