Купил ADSL модем - all-in-one, повелся на рекламу.
Оказалось норм прошивки нет, торренты настроить крайне сложно, мало очень конечных пользователей.... очень расстроен.
Прошу помощи в настройке port forwarding:
Цель открыть из WAN доступ к 192.168.1.2:1100 (webgui utorrent)
Модель модема: DSL N13
Коннекчусь по ssh
iptables --list
Добавляю:Code:# iptables --list Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpts:7070:7079 ACCEPT udp -- anywhere anywhere udp dpt:5060 ACCEPT tcp -- anywhere anywhere tcp dpt:1111 ACCEPT 2 -- anywhere anywhere ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED DROP all -- anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere 224.0.0.251 ACCEPT all -- anywhere 239.255.255.250 TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN tcpmss match 1453:65535 TCPMSS set 1452 ACCEPT all -- anywhere BASE-ADDRESS.MCAST.NET/3 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED DROP all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination DROP all -- anywhere 239.255.255.250
Не работает.Code:iptables -t nat -I PREROUTING -p tcp -i ppp_0_1_50_1 --dport 1100 -j DNAT --to-destination 192.168.1.2:1100 iptables -I FORWARD -p tcp -i ppp_0_1_50_1 -d 192.168.1.2 --dport 1100 --j ACCEPT iptables -A INPUT -p tcp --dport 1100 -j ACCEPT iptables -A OUTPUT -p tcp --sport 1100 -j ACCEPT
Бьюсь уже неделю, подскажите пожалуйста в чем косяк.
Спасибо.




Reply With Quote
