Strongswan VPN basic network configuration

Posted January 31, 2018 2.6k views
VPNUbuntu 16.04

I’ve set up a Ubuntu 16.04 vps and fired up a Strongswan VPN. I managed to connect to the VPN with Windows client as well with my DVR with GSM modem.

When I hit ipconfig on windows client amont others I get:

PPP adapter DO VPN:

Connection-specific DNS Suffix . :
IPv4 Address… … … . . :
Subnet Mask … … … . . :
Default Gateway … … … :

Also, when visitng whatismyip I get my VPSs IP address so routing is working fine.

What I actually want to do is to have access to other clients on the VPN network. Is that at all possible cause I got confused?

When I try to ping my windows client vpn address from the server I get nothing:

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ping
PING ( 56(84) bytes of data.
— ping statistics —
7 packets transmitted, 0 received, 100% packet loss, time 5999ms

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ifconfig
eth0 Link encap:Ethernet HWaddr 1a:79:97:7b:98:f8
inet addr: Bcast: Mask:
inet6 addr: fe80::1879:97ff:fe7b:98f8/64 Scope:Link
RX packets:7289 errors:0 dropped:0 overruns:0 frame:0
TX packets:7028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2597792 (2.5 MB) TX bytes:2402868 (2.4 MB)

lo Link encap:Local Loopback
inet addr: Mask:
inet6 addr: ::1/128 Scope:Host
RX packets:516 errors:0 dropped:0 overruns:0 frame:0
TX packets:516 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:44023 (44.0 KB) TX bytes:44023 (44.0 KB)

Is is something with configuration or maybe you have to connect server as a client as well? As you can see I am begginner here.

Thanks a lot,


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


I will recommend starting with this tutorial on how to setup IKEv2 VPN Server with StrongSwan:

by Justin Ellingwood
by Namo
A virtual private network, or VPN, allows you to securely encrypt traffic as it travels through untrusted networks, such as those at the coffee shop, a conference, or an airport. IKEv2, or Internet Key Exchange v2, is a...