Remote logging of firewall events flooded with syslog events

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
Rickers
DD-WRT User


Joined: 10 May 2015
Posts: 106

PostPosted: Mon Oct 09, 2023 12:11    Post subject: Remote logging of firewall events flooded with syslog events Reply with quote
Using 'nc -u -l <host-ip> 514' on my Mac to receive events on UDP port 514. This works fine using loglevel Medium (firewall log config).

However, I need to set firewall loglevel set to High so I receive ACCEPT entries. I need to see those as I'm trying to track down an issue.

The problem is that there are 100s of entries a second for the port 514 remote syslog connection itself. It's so bad, the router GUI crawls. 'nc -u -l <host-ip> 514 | grep -v "DPT=514"' VISUALLY filters these out, but the router is still flooding the client and still has performance problems.

Is there a way in the firewall config (is that just the iptables rules?) to stop the logging of these events with a destination port of UDP 514?

Thanks, Rick
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1959

PostPosted: Mon Oct 09, 2023 14:19    Post subject: Reply with quote
PuTTY, logging enabled, tail -f /var/log/mesages | grep -i accept is probably an easier way to glean information. I don't know why you'd need to be surfing the webUI while polling firewall logging at the same time.

https://www.google.com/search?q=install+putty+on+macos

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Rickers
DD-WRT User


Joined: 10 May 2015
Posts: 106

PostPosted: Tue Oct 10, 2023 5:22    Post subject: Reply with quote
Surfing web UI while examining the log...when I turn on remote logging and set firewall logging to High, it completely locks up the router and it will eventually crash...doesn't work at all. It generates over 4000 messages a second. I suspect each message is generating the next one.

I'm using nc to experiment with this, but I eventually want to write an application to receive the data. I want the application to listen on port 514.

Thanks for the suggestion, but I would like to find a way to use port 514.

Regards, Rick
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1959

PostPosted: Tue Oct 10, 2023 15:14    Post subject: Reply with quote
Déjà vu. I don't want to assume, but are you surfing the syslog pages in the webUI when this happens?

How to get klog output send to remote syslog server

A proper tailing of the logfile, local or remote, would probably be easier. Something along the lines of:

Code:
 tail -f /var/log/mesages | grep -i accept -v 514

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Rickers
DD-WRT User


Joined: 10 May 2015
Posts: 106

PostPosted: Wed Oct 11, 2023 6:17    Post subject: Reply with quote
Here is the solution to my problem:
Code:
iptables -I OUTPUT -p udp --dport 514 -j ACCEPT

No port 514 events in remote log now.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum