VPN Client reconnect

Any questions about the Command Line Interface can be placed here!
Forum rules
Please note the disclaimer before modifying your Synology Product.

VPN Client reconnect

Postby melongex » Sat Mar 31, 2012 9:38 am

Hi!

How can I start a vpn tunnel from the shell?
Calling 'pon' with a host from /etc/ppp/peers doesn't work unfortunately

(I get errors like: insmod: can't insert '/lib/modules/slhc.ko': File exists
and
/usr/sbin/pppd: In file /etc/ppp/peers/pptpc_p**********.conf: unrecognized option '[connect]')

Basically, what I want to a achieve is writing a script which starts the vpn client from DSM 4.0 automatically. Any ideas?
melongex
I'm New!
I'm New!
 
Posts: 2
Joined: Sat Mar 31, 2012 9:26 am

Re: VPN Client reconnect

Postby s12000 » Sat Apr 28, 2012 7:03 am

Hi,

I am stuck with exactly the same problem. Do you have an answer yet / found an solution? thx.
s12000
I'm New!
I'm New!
 
Posts: 1
Joined: Sat Apr 28, 2012 7:01 am

Re: VPN Client reconnect

Postby Maggeoak » Thu May 10, 2012 10:49 pm

s12000 wrote:Hi,

I am stuck with exactly the same problem. Do you have an answer yet / found an solution? thx.


Please help if you find a solution thanks
Maggeoak
I'm New!
I'm New!
 
Posts: 1
Joined: Fri May 04, 2012 11:08 pm

Re: VPN Client reconnect

Postby Jaden » Thu Feb 28, 2013 11:24 pm

I'm gonna necro this threat before I get yelled at for opening a new one.

Anyway having the same problem. connecting a pptp from the web-interface is no problem but when trying it in the cli nothing seems to work.

trying all kinds of variations of
Code: Select all
pon connect_p1361731989
pppd file connect_p1361731989


doesn't do it and looking through the internet the only thing I came across was this german site:http://www.synology-wiki.de/index.php/Grundlegende_Befehle_auf_der_Kommandozeile#VPN_Client that says:
Code: Select all
poff -a
pppd file /etc/ppp/peers/connect_*


it's really hard to debug what is going on, since most of the time I get no feedback comment and plog -l doesn't work.

Please somebody help
Synology DS212j
Jaden
I'm New!
I'm New!
 
Posts: 3
Joined: Tue Dec 04, 2012 10:02 pm


Return to Command Line Interface

Who is online

Users browsing this forum: No registered users and 3 guests