Report this

What is the reason for this report?

Strongswan VPN basic network configuration

Posted on January 31, 2018

Hey, 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. . . . . . . . . . . : 10.10.10.1 Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . : 0.0.0.0

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 10.10.10.1 from the server I get nothing:

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ping 10.10.10.1 PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data. ^C — 10.10.10.1 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:159.89.10.55 Bcast:159.89.15.255 Mask:255.255.240.0 inet6 addr: fe80::1879:97ff:fe7b:98f8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 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,

V



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello,

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

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-18-04-2

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.