setting up vpnclient on linux (raspberry pi)

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
dksill
Posts: 11
Joined: Sat Sep 21, 2013 3:36 am

setting up vpnclient on linux (raspberry pi)

Post by dksill » Sat Sep 21, 2013 3:50 am

Hi there,

thanks for the great softether project!

here my situation: I run networks at 2 sites, A and B. A is the main site with addresses from a local DHCP router, having addresses, say 10.10.10.*

at A, a linux on local address 10.10.10.8 (on raspberry pi (RPI)) runs vpnserver in bridging mode.

at B, a linux (on RPI) local address 10.10.5.199 runs vpnclient - connection established well.

however, after rebooting the computer at B, I have to perform the following commands:

sudo /usr/local/vpnclient/vpnclient start
sudo ifconfig vpn_zhuhai 10.10.10.56 netmask 255.255.255.0 up
sudo route add -net 10.10.10.0 netmask 255.255.255.0 gw 10.10.10.56

dksill
Posts: 11
Joined: Sat Sep 21, 2013 3:36 am

Re: setting up vpnclient on linux (raspberry pi)

Post by dksill » Sat Sep 21, 2013 3:52 am

Here my QUESTION 1:
can I automate these commands in a startup script at boot time? How?

> sudo /usr/local/vpnclient/vpnclient start
> sudo ifconfig vpn_zhuhai 10.10.10.56 netmask 255.255.255.0 up
> sudo route add -net 10.10.10.0 netmask 255.255.255.0 gw 10.10.10.56

dksill
Posts: 11
Joined: Sat Sep 21, 2013 3:36 am

Re: setting up vpnclient on linux (raspberry pi)

Post by dksill » Sat Sep 21, 2013 3:57 am

Here my QUESTION 2:

say, the network is up an running. Via the client computer, at site B, I can ssh into any other computer on 10.10.10.* BUT 10.10.10.8 - the RPI running the vpnserver.

WHY NOT - and how to configure it to be able to?

Examples:
from 10.10.5.199 i succeed to ssh 10.10.10.111 - which is on the A network
from 10.10.5.199 i succeed to ssh 10.10.10.44 - which is via VPN on a third C network
from 10.10.10.111 i succeed to ssh 10.10.10.8 - both on the A network
BUT
from 10.10.5.199 i CANNOT ssh 10.10.10.8

kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Re: setting up vpnclient on linux (raspberry pi)

Post by kh_tsang » Sun Sep 22, 2013 5:04 am

Is the server on 10.10.10.8? I have the same problem on Synology DS213.

dksill
Posts: 11
Joined: Sat Sep 21, 2013 3:36 am

Re: setting up vpnclient on linux (raspberry pi)

Post by dksill » Tue Sep 24, 2013 11:35 pm

kh_tsang wrote:
> Is the server on 10.10.10.8? I have the same problem on Synology DS213.

yes, correct, 10.10.10.8 would be the server! can connect to all other but the server!

dksill
Posts: 11
Joined: Sat Sep 21, 2013 3:36 am

Re: setting up vpnclient on linux (raspberry pi)

Post by dksill » Sun Oct 20, 2013 4:41 am

in debian linux, how can I automatically start softether client after boot? is there any script and the location where to put it?
THANKS - ありがとう

Post Reply