• November 01, 2024, 03:25:08 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Bug in last firmware for DSL-2640U C2 (NAT for PPTP)  (Read 6087 times)

rodji

  • Level 1 Member
  • *
  • Posts: 1
Bug in last firmware for DSL-2640U C2 (NAT for PPTP)
« on: March 14, 2013, 04:01:47 AM »

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 (lastest)

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:
 # 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

By adding this rule all works fine:
 iptables -t nat -A PREROUTING -p tcp –-dport 3390 -j DNAT -–to-destination 192.168.1.4:3389 -i ppp0

# 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

Fastest solution can be for d-link developers:
 - add for every web-rule two iptables rules for ppp0 and nas_*
 interfaces. iptables process good not existing interfaces.
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Bug in last firmware for DSL-2640U C2 (NAT for PPTP)
« Reply #1 on: March 14, 2013, 07:10:06 AM »

Please phone contact your local regional DLink support office an ask for level 2 or higher support regarding this and let them know about this.

Good Luck.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.