Bookmark and Share

Author Topic: DD-WRT and Port Triggering  (Read 13736 times)

0 Members and 1 Guest are viewing this topic.

Offline AndyPopely

  • PcWinTech Member
  • *
  • Join Date: Feb 2013
  • Posts: 5
  • Karma: 0
DD-WRT and Port Triggering
« on: February 08, 2013, 12:51:41 PM »
I've been trying, unsuccessfully, to use Port Triggering Initiator v.1.0.0 on my Netgear router running DD-WRT.

I asked a friend to try Port Triggering Initiator v.1.0.0 on his Buffalo router which also is using DD-WRT firmware.  He too couldn't make his router trigger the required ports.  My friend tried it with a router not running DD-WRT firmware and no problem.

We both came to the conclusion that the problem is with DD-WRT's port triggering mechanism.

Have you come across this with DD-WRT ?  … if so have you seen any links to workarounds so that Port Triggering Initiator v.1.0.0 can work ?

PcWinTech.com Forums

DD-WRT and Port Triggering
« on: February 08, 2013, 12:51:41 PM »

Offline Evan

  • Global Moderator
  • PcWinTech Guru
  • *****
  • Join Date: Feb 2009
  • Posts: 1,306
  • Karma: 45
Re: DD-WRT and Port Triggering
« Reply #1 on: February 08, 2013, 10:52:43 PM »
I haven't seen this issue but I'm also not familiar with Port Triggering Initiator v.1.0.0 either. What exactly are you trying to do?

Evan
About Evan:Site Admin, Tester, Editor

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: DD-WRT and Port Triggering
« Reply #2 on: February 09, 2013, 01:29:17 PM »
Port triggering is a on/off type of port forwarding.

The port stays closed till the router sees a connection from the computer on that port. So my port triggering program simply sends a connection on that port so the router should see it and then turn the rule on.

For some reason the DD-WRT isnt seeing the connection or something else. You may just have to use a port forwarding rule instead.

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline AndyPopely

  • PcWinTech Member
  • *
  • Join Date: Feb 2013
  • Posts: 5
  • Karma: 0
Re: DD-WRT and Port Triggering
« Reply #3 on: February 09, 2013, 05:45:33 PM »
I've been able to confirm that port triggering works on older versions of DD-WRT and therefore Port Triggering Initiator v.1.0.0 works fine too on those older versions of DD-WRT.

Sometime between 2010 and 2012 DD-WRT "broke" port forwarding on outbound connections ... something to do with loopback.

They've subsequently fixed that problem with port forwarding.  I don't know where they stand with port triggering.

I've checked the DD-WRT iptables on my DD-WRT and can see that when Port Triggering Initiator v.1.0.0 is issuing the outbound message the "trigger_out" section of the iptables is showing packet counts.

I'm hoping that I can get hold of a listing of the iptables from a router running a version of DD-WRT where port triggering works.

Offline Evan

  • Global Moderator
  • PcWinTech Guru
  • *****
  • Join Date: Feb 2009
  • Posts: 1,306
  • Karma: 45
Re: DD-WRT and Port Triggering
« Reply #4 on: February 09, 2013, 10:36:25 PM »
Wow....whoops. I apparently missed Port Triggering Initiator. My bad.    :shocked:

Evan
About Evan:Site Admin, Tester, Editor

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: DD-WRT and Port Triggering
« Reply #5 on: February 10, 2013, 07:32:16 PM »
So it is a bug in DD-WRT. I use DD-WRT here at home but dont use port triggering. Let me know what you find out :wink:

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline AndyPopely

  • PcWinTech Member
  • *
  • Join Date: Feb 2013
  • Posts: 5
  • Karma: 0
Re: DD-WRT and Port Triggering
« Reply #6 on: February 11, 2013, 10:47:13 PM »
Hi Shane .... does port triggering work on your home DD-WRT router? ... if so what's the version number and date of the firmware? ... also does your home router use an Atheros or Broadcom chipset?

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: DD-WRT and Port Triggering
« Reply #7 on: February 12, 2013, 08:50:39 AM »
My router is  Netgear WNDR3700v3 and DD-WRT I use is  DD-WRT v24-sp2 (06/20/12) mega - build exported

CPU Model:
Broadcom BCM4716 chip rev 1

CPU Clock:
480 MHz

Memory is 65MB with only 10% in use.

I will test port triggering later on today when I have some time and see if I can get it to work for me or not :wink:

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline AndyPopely

  • PcWinTech Member
  • *
  • Join Date: Feb 2013
  • Posts: 5
  • Karma: 0
Re: DD-WRT and Port Triggering
« Reply #8 on: February 12, 2013, 10:11:27 AM »
That would be great .....

My router is  Netgear WNDR3700v1 and DD-WRT v24-sp2 (12/31/12) std - build 20453

CPU Model:
Atheros AR7161 rev 2 (0xaa)

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: DD-WRT and Port Triggering
« Reply #9 on: February 12, 2013, 01:13:04 PM »
Well there is a bug for sure lol.

I went to the port triggering page, added 2 rules

Rule #1: Port trigger - 2000 forward to port 1979
Rule #2: Port Trigger 1980 forward to Port 1980

I didnt hit apply settings yet I just hit save. The entire web interface in DD-WRT is now down and not responding, the instant I hit save. Internet still works. So now about 2 min have passed and the web interface is working and the rules are there. I click apply changes now and it shows the progress circle for 2 sec then web page cant be displayed. Web interface is no longer responding till it finishes what it is doing.

I then made a port forwarding rule for port 1981, clicked saved and then apply changes, pages stayed working fine. So big bug on the port triggering page.

I then loaded up the port triggering program and my port tester. The 2 ports from port triggering are not working, the port on the port forwarding page is.

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline AndyPopely

  • PcWinTech Member
  • *
  • Join Date: Feb 2013
  • Posts: 5
  • Karma: 0
Re: DD-WRT and Port Triggering
« Reply #10 on: February 12, 2013, 03:44:52 PM »
Thanks a lot Shane for taking the time to do the test ....

So I have a list of 4 routers running DD-WRT firmware from 3 different people

Netgear WNDR3700v1 - DD-WRT v24-sp2 (12/31/12) std - build 20453
Atheros AR7161 rev 2 (0xaa)

Netgear WNDR3700v3 - DD-WRT v24-sp2 (06/20/12) mega - build exported
Broadcom BCM4716 chip rev 1

Buffalo WZR-HP-G300NH2 - DD-WRT v24-SP2-MULTI (06/03/12) std - build 19154
Atheros AR7242 rev 1.1 (0x1101)

Linksys WRT54G/GL/GS - DD-WRT v24-SP2 (08/12/10) std - build 14929
Broadcom BCM5352 chip rev 0

Port triggering only works on the Linksys WRT54GL which is running a DD-WRT base firmware from 2010.

I opened a ticket with DD-WRT on port triggering failing and it got closed immediately as "being too vague".

Would you mind if I tried to get them to consider reopening the ticket if I included part of what ports you defined for your test?

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Re: DD-WRT and Port Triggering
« Reply #11 on: February 12, 2013, 03:46:11 PM »
I will help any way I can :-)

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

PcWinTech.com Forums

Re: DD-WRT and Port Triggering
« Reply #11 on: February 12, 2013, 03:46:11 PM »