Hi all,
can someone help me with console commands to start/stop/restart/status OpenVPN server and PPTP VPN server service? I am not familiar with it and service pptpd_start is not working :/ No luck with google also :/
Thank you
PPTPD:
Code:service stop_pptpd service start_pptpd
Could you pls check one more time that code for start/stop pptp vpn server below is ok? When i check status at web gui after service start_pptpd, pptp vpn server is still stopped and i can not connect to it. When i start it from web gui, i havo no problem with connection. Code for start/stop OpenVpn server is working fine.
nvram set pptpd_enable=1
nvram commit
nvram set pptpd_enable=1
nvram commit
service pptpd_start
Well, i`ve tried to enable the service first:
Code:nvram set pptpd_enable=1 nvram commit
and then start the service
Code:service pptpd_start
the result is that, i still cannot connect to pptp server while the VPN SERVER TAB is indication that PPTP server IS running. VPN STATUS TAB is showing that PPTP server IS NOT running. When i reenable PPTP server on VPN SERVER TAB, i can connect normally. Maybe some other settings must be enabled???
thank`s for help.
service start_vpnclient5
Apr 12 11:13:12 rc_service: service 1786:notify_rc start
Apr 12 11:13:17 rc_service: service 1787:notify_rc start
Apr 12 11:13:26 rc_service: service 1790:notify_rc start_vpnclient5
Apr 12 11:13:27 openvpn[1804]: OpenVPN 2.3.2 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Mar 15 2017
Apr 12 11:13:27 openvpn[1804]: ERROR: username from Auth authfile 'up' is empty
Apr 12 11:13:27 openvpn[1804]: Exiting due to fatal error
I would recheck the configuration, especially the username/password for that client. Running start_vpnclient5 will take care of populating the appropriate directories within /etc/openvpn/ .
Apr 12 14:17:21 openvpn[4636]: AUTH: Received control message: AUTH_FAILED
When I create the client profile in the router, I specify my username and password along with uploading my .ovpn file. Once uploaded, I notice that the vpn_client5_username and vpn_client5_password variables are empty in nvram. Should that be the case? They are populated when I activate the profile from the GUI, but not when I start from the command line. When I edit the client profile in the router, the username and password are persisted in the gui.
I tried to set these variables manually before starting via command line and that gets me a bit further in the logs, but I ultimately get the following. I'm guessing that there is also some other information pertinent to authentication that may be missing.
Regarding my OpenVPN configuration, I have the auth-user-pass directive set in my .ovpn.
Code:Apr 12 14:17:21 openvpn[4636]: AUTH: Received control message: AUTH_FAILED
Maybe Asus's implementation works differently from mine them. While Asus originally reused my code, they did a few changes to it as they added it to the original firmware, so our implementations are slightly different now.
Code:service stop_vpnserver1 service start_vpnserver1
"Initialinzing the settings of OpenVPN server now, please wait a few minutes to let the server to setup completed before VPN clients establish the connection"
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!