Jump to content

Welcome to Netduma Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Router log file access?


  • Please log in to reply
7 replies to this topic

#1
mikehd

mikehd

    Junior Member

  • Members
  • PipPip
  • 6 posts
  • Local time: 01:31 PM

Hi all,

 

I'm troubleshooting a nightly VPN disconnect issue and am trying to locate any log files that might be archived on the router. Are these accessible to the user? I'm not suspecting an issue with the Netduma, but will need the log files to see if I'm getting a reboot etc that could cause the disconnect.

 

I realize I can view the VPN log at the time I notice the disconnect, but I'd like to view the router log file as well.

 

I'm on 1.03.6h firmware.

 

thanks,

 

Mike



#2
Netduma Jack

Netduma Jack

    Graphic Artist

  • Administrators
  • 1,308 posts
  • Local time: 09:31 PM

Hi all,

 

I'm troubleshooting a nightly VPN disconnect issue and am trying to locate any log files that might be archived on the router. Are these accessible to the user? I'm not suspecting an issue with the Netduma, but will need the log files to see if I'm getting a reboot etc that could cause the disconnect.

 

I realize I can view the VPN log at the time I notice the disconnect, but I'd like to view the router log file as well.

 

I'm on 1.03.6h firmware.

 

thanks,

 

Mike

 

Hi Mike, welcome to the forum :)

 

Unfortunately there's no way to access the log files currently, though that will be a feature in DumaOS which we hope to release later this year. Do you receive an error message when you disconnect, and if so what does it state? Does it happen at the same time every night? It could potentially be the VPN provider switching the servers which isn't communicating well with the Netduma VPN.


Technical support:

 

Fine tuning guide - How to set up your Netduma R1 quickly with optimum settings. Includes: How to get your full speeds, opening your NAT & Geo-filter settings etc.
FAQ - Includes: How to play with friends using the Geo-filter, I can't access the router control panel, Wifi keeps dropping out etc.
Wiki - Main link to the Wiki, for everything else please search here or on the forum.
Current firmware version (1.03.6) - If you are on anything below this, follow the instructions carefully to upgrade.

 

Any other issues please make a new thread on the forum, thank you  :)

 

Twitter - Facebook - YouTube - Twitch - Instagram - Steam Group - Discord


#3
mikehd

mikehd

    Junior Member

  • Members
  • PipPip
  • 6 posts
  • Local time: 01:31 PM

Here's a snip of the VPN log after this occurs:

Tue Sep 12 21:51:33 2017 [2136bcaeca1eddd771c929559cfff859] Inactivity timeout (--ping-restart), restarting
Tue Sep 12 21:51:33 2017 SIGUSR1[soft,ping-restart] received, process restarting
Tue Sep 12 21:51:35 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Sep 12 21:51:35 2017 UDPv4 link local: [undef]
Tue Sep 12 21:51:35 2017 UDPv4 link remote: [AF_INET]104.200.154.65:1198
Tue Sep 12 21:51:35 2017 ERROR: could not read Auth username from stdin
Tue Sep 12 21:51:35 2017 Exiting due to fatal error
Tue Sep 12 21:51:35 2017 /sbin/ifconfig tun0 0.0.0.0
Tue Sep 12 21:51:35 2017 /www/scripts/vpndown.sh 10666 tun0 1500 1558 10.25.10.6 10.25.10.5 init

I had VPN disabled on the router last night so can't speak to the time interval yet.

 

Thanks for the reply and the update on the OS work.

 

Mike



#4
Netduma Jack

Netduma Jack

    Graphic Artist

  • Administrators
  • 1,308 posts
  • Local time: 09:31 PM

Here's a snip of the VPN log after this occurs:

Tue Sep 12 21:51:33 2017 [2136bcaeca1eddd771c929559cfff859] Inactivity timeout (--ping-restart), restarting
Tue Sep 12 21:51:33 2017 SIGUSR1[soft,ping-restart] received, process restarting
Tue Sep 12 21:51:35 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Sep 12 21:51:35 2017 UDPv4 link local: [undef]
Tue Sep 12 21:51:35 2017 UDPv4 link remote: [AF_INET]104.200.154.65:1198
Tue Sep 12 21:51:35 2017 ERROR: could not read Auth username from stdin
Tue Sep 12 21:51:35 2017 Exiting due to fatal error
Tue Sep 12 21:51:35 2017 /sbin/ifconfig tun0 0.0.0.0
Tue Sep 12 21:51:35 2017 /www/scripts/vpndown.sh 10666 tun0 1500 1558 10.25.10.6 10.25.10.5 init

I had VPN disabled on the router last night so can't speak to the time interval yet.

 

Thanks for the reply and the update on the OS work.

 

Mike

 

Do you have the config file which you could post here? I found someone else with that error message who removed the following lines and solved the issue:

 

auth-user-pass
dev-tun
ca ca.crt
cert client.crt
key client.key
 
Please let us know if that works.

Technical support:

 

Fine tuning guide - How to set up your Netduma R1 quickly with optimum settings. Includes: How to get your full speeds, opening your NAT & Geo-filter settings etc.
FAQ - Includes: How to play with friends using the Geo-filter, I can't access the router control panel, Wifi keeps dropping out etc.
Wiki - Main link to the Wiki, for everything else please search here or on the forum.
Current firmware version (1.03.6) - If you are on anything below this, follow the instructions carefully to upgrade.

 

Any other issues please make a new thread on the forum, thank you  :)

 

Twitter - Facebook - YouTube - Twitch - Instagram - Steam Group - Discord


#5
mikehd

mikehd

    Junior Member

  • Members
  • PipPip
  • 6 posts
  • Local time: 01:31 PM

 

Do you have the config file which you could post here? I found someone else with that error message who removed the following lines and solved the issue:

 

auth-user-pass
dev-tun
ca ca.crt
cert client.crt
key client.key
 
Please let us know if that works.

 

 

Here's my config as input into the VPN menu for Netduma (certificate info not included):

client
dev tun
proto udp
remote us-seattle.privateinternetaccess.com 1198
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-128-cbc
auth sha1
tls-client
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0
auth-nocache

"auth-user-pass" looks to be the only exact match, I have "dev tun" not "dev-tun"

 

I'll delete "auth-user-pass" and investigate "dev tun" vs "dev-tun".

 

thanks again for the support

 

***

Update

 

I tried removing the "dev tun" first, then "dev tun" and "persist-tun" in separate connect attempts. Neither configs would connect.

I then removed "auth-user-pass" and it connects. Will leave up over night to see if it stays up.


Edited by mikehd, 5 days ago.


#6
mikehd

mikehd

    Junior Member

  • Members
  • PipPip
  • 6 posts
  • Local time: 01:31 PM

Another disconnect last night after removing the "auth-user-pass" command from my VPN script. I've got a ticket opened with PIA (my VPN provideder) to see what's up from their end. Here's the full log file from start to end.

Thu Sep 14 18:33:00 2017 WARNING: file '/tmp/vpncred' is group or others accessible
Thu Sep 14 18:33:00 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Sep 14 18:33:02 2017 UDPv4 link local: [undef]
Thu Sep 14 18:33:02 2017 UDPv4 link remote: [AF_INET]104.200.154.21:1198
Thu Sep 14 18:33:32 2017 [a9a49a0e701746f1ea597b31f744db39] Peer Connection Initiated with [AF_INET]104.200.154.21:1198
Thu Sep 14 18:33:34 2017 TUN/TAP device tun0 opened
Thu Sep 14 18:33:34 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Sep 14 18:33:34 2017 /sbin/ifconfig tun0 10.14.10.10 pointopoint 10.14.10.9 mtu 1500
Thu Sep 14 18:33:34 2017 /www/scripts/vpnup.sh 1853 tun0 1500 1558 10.14.10.10 10.14.10.9 init
Thu Sep 14 18:33:35 2017 Initialization Sequence Completed
Fri Sep 15 02:34:59 2017 [a9a49a0e701746f1ea597b31f744db39] Inactivity timeout (--ping-restart), restarting
Fri Sep 15 02:34:59 2017 SIGUSR1[soft,ping-restart] received, process restarting
Fri Sep 15 02:35:01 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Sep 15 02:35:01 2017 UDPv4 link local: [undef]
Fri Sep 15 02:35:01 2017 UDPv4 link remote: [AF_INET]104.200.154.83:1198
Fri Sep 15 02:35:01 2017 ERROR: could not read Auth username from stdin
Fri Sep 15 02:35:01 2017 Exiting due to fatal error
Fri Sep 15 02:35:01 2017 /sbin/ifconfig tun0 0.0.0.0
Fri Sep 15 02:35:01 2017 /www/scripts/vpndown.sh 1853 tun0 1500 1558 10.14.10.10 10.14.10.9 init

To me it looks like a maximum of 8 hour inactivity is allowed before they kill the tunnel. But why is the script not able to reconnect? Why the "could not read Auth username from stdin" error?



#7
Netduma Jack

Netduma Jack

    Graphic Artist

  • Administrators
  • 1,308 posts
  • Local time: 09:31 PM

Another disconnect last night after removing the "auth-user-pass" command from my VPN script. I've got a ticket opened with PIA (my VPN provideder) to see what's up from their end. Here's the full log file from start to end.

Thu Sep 14 18:33:00 2017 WARNING: file '/tmp/vpncred' is group or others accessible
Thu Sep 14 18:33:00 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Sep 14 18:33:02 2017 UDPv4 link local: [undef]
Thu Sep 14 18:33:02 2017 UDPv4 link remote: [AF_INET]104.200.154.21:1198
Thu Sep 14 18:33:32 2017 [a9a49a0e701746f1ea597b31f744db39] Peer Connection Initiated with [AF_INET]104.200.154.21:1198
Thu Sep 14 18:33:34 2017 TUN/TAP device tun0 opened
Thu Sep 14 18:33:34 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Sep 14 18:33:34 2017 /sbin/ifconfig tun0 10.14.10.10 pointopoint 10.14.10.9 mtu 1500
Thu Sep 14 18:33:34 2017 /www/scripts/vpnup.sh 1853 tun0 1500 1558 10.14.10.10 10.14.10.9 init
Thu Sep 14 18:33:35 2017 Initialization Sequence Completed
Fri Sep 15 02:34:59 2017 [a9a49a0e701746f1ea597b31f744db39] Inactivity timeout (--ping-restart), restarting
Fri Sep 15 02:34:59 2017 SIGUSR1[soft,ping-restart] received, process restarting
Fri Sep 15 02:35:01 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Sep 15 02:35:01 2017 UDPv4 link local: [undef]
Fri Sep 15 02:35:01 2017 UDPv4 link remote: [AF_INET]104.200.154.83:1198
Fri Sep 15 02:35:01 2017 ERROR: could not read Auth username from stdin
Fri Sep 15 02:35:01 2017 Exiting due to fatal error
Fri Sep 15 02:35:01 2017 /sbin/ifconfig tun0 0.0.0.0
Fri Sep 15 02:35:01 2017 /www/scripts/vpndown.sh 1853 tun0 1500 1558 10.14.10.10 10.14.10.9 init

To me it looks like a maximum of 8 hour inactivity is allowed before they kill the tunnel. But why is the script not able to reconnect? Why the "could not read Auth username from stdin" error?

 

I'm honestly unsure about why this would be the case - though Fraser is back from vacation on Monday and should have a bit more insight since he's dealt with VPN's more than me. Did you have any luck with the ticket you opened with your VPN provider?


Technical support:

 

Fine tuning guide - How to set up your Netduma R1 quickly with optimum settings. Includes: How to get your full speeds, opening your NAT & Geo-filter settings etc.
FAQ - Includes: How to play with friends using the Geo-filter, I can't access the router control panel, Wifi keeps dropping out etc.
Wiki - Main link to the Wiki, for everything else please search here or on the forum.
Current firmware version (1.03.6) - If you are on anything below this, follow the instructions carefully to upgrade.

 

Any other issues please make a new thread on the forum, thank you  :)

 

Twitter - Facebook - YouTube - Twitch - Instagram - Steam Group - Discord


#8
mikehd

mikehd

    Junior Member

  • Members
  • PipPip
  • 6 posts
  • Local time: 01:31 PM

I'm honestly unsure about why this would be the case - though Fraser is back from vacation on Monday and should have a bit more insight since he's dealt with VPN's more than me. Did you have any luck with the ticket you opened with your VPN provider?

 

The only response so far was to ask me questions regarding OS, was I using their client, what country am I in... all stuff already provided. So no help yet.

 

My work around right now is to use the VPN client on the PCs that need the service rather than do the router implementation.

 

Thanks for the support!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users