BUG - ShieldsUP port scan causes crash (soft reboot)

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
alceryes
DD-WRT Novice


Joined: 09 Mar 2007
Posts: 38

PostPosted: Thu May 05, 2016 19:28    Post subject: BUG - ShieldsUP port scan causes crash (soft reboot) Reply with quote
Router: DIR-862l
Firmware: DD-WRT v3.0-r29519 std (04/25/16)
Bug ID: 0004769

I already submitted the bug with logs from my syslog server. Can anyone else confirm this issue? I'm performing an 'All Service Ports' port scan from the ShieldsUP website. Once the scan starts my router reboots within 5-15 seconds - every time.
Sponsor
alceryes
DD-WRT Novice


Joined: 09 Mar 2007
Posts: 38

PostPosted: Thu May 05, 2016 19:40    Post subject: Reply with quote
Looks like I found the culprit.
I have logging turned up all the way (high and enabled x3) and going to my syslog server. It appears that if the router can't keep up with the the traffic and logging it reboots. Can someone else confirm this?

I would really like to be able to log everything but this is definitely an exploitable side effect of having logging enabled so I have turned it off for now.
Is there a way to put in a configurable 'clutch' mechanism so that if the router does get overloaded with port scans and logging it just logs a warning that says something like, "Due to resource overload, only X number of logs per second will be recorded for the next X number of seconds"(?)
Thanks.
jwoods
DD-WRT User


Joined: 13 Mar 2016
Posts: 403

PostPosted: Thu May 05, 2016 19:41    Post subject: Re: BUG - ShieldsUP port scan causes crash (soft reboot) Reply with quote
alceryes wrote:
Router: DIR-862l
Firmware: DD-WRT v3.0-r29519 std (04/25/16)
Bug ID: 0004769

I already submitted the bug with logs from my syslog server. Can anyone else confirm this issue? I'm performing an 'All Service Ports' port scan from the ShieldsUP website. Once the scan starts my router reboots within 5-15 seconds - every time.


See this bug report from 2 years ago...

http://svn.dd-wrt.com/ticket/3266

I personally have never experienced any issues running ShieldsUP or DNS Spoofability.
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 05, 2016 19:44    Post subject: Reply with quote
no. something is wrong at your side... working fine here...
alceryes
DD-WRT Novice


Joined: 09 Mar 2007
Posts: 38

PostPosted: Thu May 05, 2016 19:46    Post subject: Re: BUG - ShieldsUP port scan causes crash (soft reboot) Reply with quote
jwoods wrote:
alceryes wrote:
Router: DIR-862l
Firmware: DD-WRT v3.0-r29519 std (04/25/16)
Bug ID: 0004769

I already submitted the bug with logs from my syslog server. Can anyone else confirm this issue? I'm performing an 'All Service Ports' port scan from the ShieldsUP website. Once the scan starts my router reboots within 5-15 seconds - every time.


See this bug report from 2 years ago...

http://svn.dd-wrt.com/ticket/3266

I personally have never experienced any issues running ShieldsUP or DNS Spoofability.


I'm sending the logs to my syslog server. Shouldn't they clear the RAM when they are sent?

I also confirmed that this happens on 'medium' log level as well (medium and enabled x3).
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 05, 2016 19:47    Post subject: Reply with quote
alceryes wrote:
Looks like I found the culprit.
I have logging turned up all the way (high and enabled x3) and going to my syslog server. It appears that if the router can't keep up with the the traffic and logging it reboots. Can someone else confirm this?

I would really like to be able to log everything but this is definitely an exploitable side effect of having logging enabled so I have turned it off for now.
Is there a way to put in a configurable 'clutch' mechanism so that if the router does get overloaded with port scans and logging it just logs a warning that says something like, "Due to resource overload, only X number of logs per second will be recorded for the next X number of seconds"(?)
Thanks.


why don't you use remote logging? no router can handle so much writings... you can have 1000 attacks in 1 second...
alceryes
DD-WRT Novice


Joined: 09 Mar 2007
Posts: 38

PostPosted: Thu May 05, 2016 19:48    Post subject: Reply with quote
Mile-Lile wrote:
no. something is wrong at your side... working fine here...


Do you have logging on and going to a syslog server?
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu May 05, 2016 19:53    Post subject: Reply with quote
I am using remote logging with papertrail... but only syslogging... firewall logging is very CPU intensive because of lots of writings/in 1 second...
jwoods
DD-WRT User


Joined: 13 Mar 2016
Posts: 403

PostPosted: Thu May 05, 2016 20:10    Post subject: Reply with quote
I have syslogging turned on and firewall logging set to Low.

Logging is local.

I just ran the All Service Ports scan three times in a row, and monitored logging and RAM.

Nothing was logged, and RAM usage only increase by 1 to 2%, and then released when the test was done.

I am using the same build, different router.
hurleyp
DD-WRT User


Joined: 10 Sep 2009
Posts: 425
Location: Ottawa, Ontario, Canada

PostPosted: Thu May 05, 2016 23:39    Post subject: Reply with quote
For what it's worth, I had this same problem some years back with my old WRT610N (Broadcom). Too much traffic from the GRC port scan with logging set to high (and sending to a local instance of Wallwatcher) would cause the router to reboot. I don't think this is specifically related to DD-WRT, it's just too much to process at once.
_________________
Netgear R7000: v3.0-r54248 std (11/29/23)
EdgeRouter-X: EdgeOS v2.0.9-hotfix 7
alceryes
DD-WRT Novice


Joined: 09 Mar 2007
Posts: 38

PostPosted: Fri May 06, 2016 17:11    Post subject: Reply with quote
jwoods wrote:
I have syslogging turned on and firewall logging set to Low.

Logging is local.

I just ran the All Service Ports scan three times in a row, and monitored logging and RAM.

Nothing was logged, and RAM usage only increase by 1 to 2%, and then released when the test was done.

I am using the same build, different router.


Confirmed.
With logging set to Low (Low and Enabled x3) I can perform the ShieldsUP test fine and nothing is logged on my syslog server (remote logging). I didn't even see the 1-2% increase on memory usage.
It seems that setting it to medium or high floods the routers memory faster than it can send the logs to my syslog server. So it's just a hardware limitation not a bug.
Could someone test medium or high firewall logging with a router that has 64 or 128MB? If it's just the limited amount of RAM causing the issue I may be upgrading.

Thanks for all your replies!
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Fri May 06, 2016 17:51    Post subject: Reply with quote
dont "upgrade" cause a poorly designed port checker causes a crash..the med/high settings when logging everything are ridiculous & broken its nothing but a deluge of spam. 512mb ea8500 sometimes crashes there too if all are logging at high. it also wastes lots of cpu, like lots of cpu thst could be going into nat performance, vpn etc.
_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

alceryes
DD-WRT Novice


Joined: 09 Mar 2007
Posts: 38

PostPosted: Fri May 06, 2016 20:13    Post subject: Reply with quote
tatsuya46 wrote:
dont "upgrade" cause a poorly designed port checker causes a crash..the med/high settings when logging everything are ridiculous & broken its nothing but a deluge of spam. 512mb ea8500 sometimes crashes there too if all are logging at high. it also wastes lots of cpu, like lots of cpu thst could be going into nat performance, vpn etc.

Okay, sounds good.
If it's just a flood of garbage (broken?) that will even reboot a 512MB router that's good enough for me. I have Exchange, FTP, and web services going through this router. It's a dev environment but is still being used regularly so I don't want the router rebooting with some occasionally heavy WAN-LAN activity (sustained 30Mb+ for minutes at a time).

Thanks for your help.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum