Ranger802004
Very Senior Member
I'll look into the ASN issue guys.
It's doing it not only for me though !See this comment.
![]()
Query ASN - ***Error*** Attempt 1 failed to query ASN · Issue #114 · Ranger802004/asusmerlin
I started getting errors in the log: Oct 31 01:16:13 domain_vpn_routing: Query ASN - Querying ASN: AS62041 Oct 31 01:16:14 domain_vpn_routing: Query ASN - ***Error*** Attempt 1 failed to query ASN:...github.com
Did you test my recommendation?It's doing it not only for me though !
Again, refer to my comment on GitHub.It's working now ! I think you need a backup or a way to change the url that you're pulling the ASN from because it wasn't working for a couple of us for a few days !
VPN Routing is such a helpful add-on and addresses sites/services that just refuse to work going over VPN, with or without dedicated IP, etc.
One enhancement that would be useful is to adjust the logging to support scribe, so that it is separate from the System Messages logging. I checked that all policies that I have configured do not have verbose logging enabled, yet see debug logging in system messaging each time the cron job runs. While I'm happy for the validation in the logs, would prefer them to have their own section with support for scribe if possible.
In general, every process/service/script in Merlin firmware, interface with the same logging service/facility the same way for producing log messages. It's the logging service/facility responsibility to process the log entries it receives. This means that the scribe script utilizing the syslog-ng service is the one responsible for processing all messages produced by DomainVPNRouting, hence, filtering and categorizing all its messages.One enhancement that would be useful is to adjust the logging to support scribe, so that it is separate from the System Messages logging.
Yep, the script's developer has done amazing and an outstanding work on the logging system for their script and it's super precise and helpful even without having verbose logging enabled for any policy.I checked that all policies that I have configured do not have verbose logging enabled, yet see debug logging in system messaging each time the cron job runs.
I think what you're actually interested in, is a log filtering definition file to add to scribe's filters folder so that it can filter DomainVPNRouting. It's as simple as creating a new file in a specific folder of scribe's script then restarting syslog-ng service.While I'm happy for the validation in the logs, would prefer them to have their own section with support for scribe if possible.
nano /opt/etc/syslog-ng.d/domainvpnrouting
# FILTER DomainVPNRouting script log messages
# DISCARD lower level log messages
#
# Created by: Tarek Yag @ SNBForums
destination d_domainvpn {
file("/opt/var/log/DomainVPNRouting.log");
};
# Filter desired level messages (notice to emergecy, inclusive)
filter f_domainvpn {
program("domain_vpn_routing") and level(notice..emerg);
};
# Filter lower level messages (debug and info)
filter x_domainvpn {
program("domain_vpn_routing") and level(debug..info);
};
# Remove lower level log messages
log {
source(src);
filter(x_domainvpn);
flags(final);
};
# Log filtered log messages
log {
source(src);
filter(f_domainvpn);
destination(d_domainvpn);
flags(final);
};
#eof
chmod 600 /opt/etc/syslog-ng.d/domainvpnrouting
/opt/etc/init.d/S01syslog-ng restart
echo "uiscribe_logs_enabled" >> /jffs/addons/custom_settings.txt
service start_uiScribeconfig
I'm super glad that this has worked for you!This worked perfectly and was the exact process I was looking to achieve.
Yep! These filters are super powers for logging. I always use them for all of my logging needs. My logs are always categorized, filtered, and sorted exactly as I want them to be.With other add-ons, the option is typically menu driven, so even having these reproducible steps is just as good and makes reviewing the System Messages that much easier.
It seems like you didn't read enough through scribe tips. There are a lot of example filter files for syslog-ng that works for many other services and scripts. They already come with Scribe script installation. Take a look at the following folder in your router's setupKnowing this would also lead me to believe that it could be applied to other desired log separations as well, such as dnsmasq-dhcp[11146] or hostapd entries if needed
/opt/share/syslog-ng/examples/
You're welcome, and good luck!I greatly appreciate the time and knowledge!
Interestingly, I didn't actively enable debug logging for domainvpnrouting, they are collected following a clean installation and I don't see a configuration setting to disable. In fact, the only logging that is prompted is when creating a new policy.You're welcome, and good luck!
Just always try not to include debug level log entries if not really needed, because they pile up much faster than you would expect.
There's no separate debug-level logging option built-in within DomainVPNRouting. It all depends on the logging facility as I explained previously.Interestingly, I didn't actively enable debug logging for domainvpnrouting, they are collected following a clean installation and I don't see a configuration setting to disable.
The update appears to have worked in clearing the debug logs. Following running a full query of all policies, I now see the following:There's no separate debug-level logging option built-in within DomainVPNRouting. It all depends on the logging facility as I explained previously.
My bad, it shouldn't have logged debug log messages, but I made a tiny mistake by having the word "and" in the second line of the filter conditions instead of the first line. So, I just corrected it in the original log filter file. Moreover, the filter file I made does not discard lower level log messages, but these should have gone to the main system log instead of going to the same log file.
I've gone ahead with editing the example log filter file above to discard lower level log messages while adding more than enough comment lines for description. I changed the previous behavior to discard "info" level messages too, you can always decide on which levels you want and which you don't by editing the relevant levels in the file.
Now, you can simply update your filter file, then restart syslog-ng service, to get all changes into effect.
[EDIT] Side note: At first, I didn't include the mechanism to discard lower level log messages (in the first version of my example filter) because I have them discarded in another filter file in my own setup, which is much more complex.
Now, the current example log filter file above should be a perfect fit for anyone filtering DomainVPNRouting log messages.
Nov 19 10:48:52 RT-BE88U domain_vpn_routing: Test IP Version - Testing IP Version: 5.11.0
Nov 19 10:48:52 RT-BE88U domain_vpn_routing: Test IP Version - IP Version: 5.11.0 passed
Nov 19 10:49:19 RT-BE88U domain_vpn_routing: Set Process Priority - Set Process Priority to 0
Nov 19 10:49:19 RT-BE88U domain_vpn_routing: Set Process Priority - Set Process Priority to 0
Nov 19 10:49:43 RT-BE88U domain_vpn_routing: Query Policy - Processing Time: 24 seconds
Nov 19 10:49:43 RT-BE88U domain_vpn_routing: Cleanup - Deleting /var/lock/domain_vpn_routing.lock
Nov 19 10:49:43 RT-BE88U domain_vpn_routing: Cleanup - Deleted /var/lock/domain_vpn_routing.lock
Always keep in mind that the basic system log (for both Stock and Merlin firmware) each have their own log level option, which appear in the WebUI before having Scribe script started up after Entware gets mounted.Interestingly, I don't know that I would have even bothered separating the logs from the System Messages log had debug logging not been enabled
In my setup process, Scribe is one of the first items I add through amtm, so I wouldn't have had logging (at least of Domain VPN Routing) without Scribe having been installed. Presumably, debug must be a default since it wasn't something I had adjusted to on my BE88U. I loaded Merlin on this immediately upon receipt.Always keep in mind that the basic system log (for both Stock and Merlin firmware) each have their own log level option, which appear in the WebUI before having Scribe script started up after Entware gets mounted.
These two options control the lowest level messages that get logged. That's probably why you didn't get "debug" messages earlier.
These two log level options can still be changed either by starting your router without Scribe for one reboot (commenting out Scribe's startup command in post-mount script), or by changing these two values through nvram from the router's CLI.

Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!