Не работает NAT для PPTP интерфейса.Advanced setup
-> NAT
-> Virtual server
options works only for
nas_*_* interface and not for ppp0.
F/W: DSL-2640U_BRU_C2_RU_2.05_20101129.zip (the latest firmware)
WAN:
Port/VPI/VCI: 0/0/33
VLAN Mux:Off
Con. ID: 1
Category: UBR
Service: mer_0_0_33
Interface: nas_0_0_33
Protocol: MER
IGMP: Disabled
QoS: Disabled
State: Enabled
PPTP: Auth method: AUTO, No compression, Default route, Always On.
for example (adding RDP port forwarding from web interface; DSL eth:
192.168.1.1, target eth: 192.168.1.4:3389, listen: :3390), in telnet:
1 2 3 4 5 |
# iptables -L PREROUTING -t nat -v Chain PREROUTING (policy ACCEPT 1925 packets, 156K bytes) pkts bytes target prot opt in out source destination 8 529 DNAT udp -- br0 any anywhere 192.168.1.1 udp dpt:domain to:11.35.32.34 0 0 DNAT tcp -- nas_0_0_33 any anywhere anywhere tcp dpt:3390 to:192.168.1.4:3389 |
All works fine if we add this rule :
1 |
iptables -t nat -A PREROUTING -p tcp --dport 3390 -j DNAT --to-destination 192.168.1.4:3389 -i ppp0 |
1 2 3 4 5 6 |
# iptables -L PREROUTING -t nat -v Chain PREROUTING (policy ACCEPT 1944 packets, 158K bytes) pkts bytes target prot opt in out source destination 8 529 DNAT udp -- br0 any anywhere 192.168.1.1 udp dpt:domain to:11.35.32.34 0 0 DNAT tcp -- nas_0_0_33 any anywhere anywhere tcp dpt:3390 to:192.168.1.4:3389 0 0 DNAT tcp -- ppp0 any anywhere anywhere tcp dpt:3390 to:192.168.1.4:3389 |
The fastest solution can be:
— add for every web-rule two iptables rules for ppp0 and nas_*
interfaces. iptables process good not existing interfaces.
————————
RUS:
Надеюсь разработчики исправят, т.к. модель не снята с производства.
P.S.
Полезные линки по модему:
http://pudeev.livejournal.com/26318.html
http://wierus.livejournal.com/3662.html?thread=23118