0% found this document useful (0 votes)
68 views4 pages

Openvpn Connection Test: Network Device

The document discusses testing an OpenVPN connection between a server and client. It recommends checking that the server interface is created, the client is identified in server logs, the client interface is created and receives an IP, and ping tests can reach the client from the server and vice versa to confirm the VPN connection is working.

Uploaded by

crepusculo89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views4 pages

Openvpn Connection Test: Network Device

The document discusses testing an OpenVPN connection between a server and client. It recommends checking that the server interface is created, the client is identified in server logs, the client interface is created and receives an IP, and ping tests can reach the client from the server and vice versa to confirm the VPN connection is working.

Uploaded by

crepusculo89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

It`s full of stars!

Where documentation meets reality


OpenVPN connection test
https://www.itsfullofstars.de

Author : Tobias Hofmann

Date : April 16, 2018

After configuring and running both the OpenVPN server and client, it’s a good idea to test if the VPN is
working. This involves some tests on both the server and client.

OpenVPN Server
Network Device
After the server is started, a new interface should be created. Run ifconfig to get a list of all available
interfaces. In case tun is configured in the conf file as device type, a new interface with name tun0 is
created.

ifconfig

Check server log for client connection


In case OpenVPN is started as a service, the log can be found at /var/log/messages. If you start it directly
on the command line, the log will be shown on the shell. When a client connects, the log of the server

1/4
It`s full of stars!
Where documentation meets reality
shows the connection information.
https://www.itsfullofstars.de

tail -f /var/log/messages

The last lines show client1, meaning that the client not only connected, but is also correctly identified as
client1. The connection is working.

OpenVPN client
Start OpenVPN and the client will try to connect to the server specified in the client.conf file. Client
connecting and receiving IP.

openvpn /etc/openvpn/client.conf tail -f /var/log/messages

2/4
It`s full of stars!
Where documentation meets reality
After the connection was established,
https://www.itsfullofstars.de the client is also creating a new interface named tun0. Here a client
named client1 connects and receives the IP 10.8.0.6.

ifconfig

Connection test
Easiest way to test that client and server can talk to each other is to ping both. Just run a ping from the
server to the client IP, and from the client to the server IP. For this, the VPN IP address must be used (e.g.
10.8.0.x).

OpenVPN server
Ping client1 from server.

ping 10.8.0.6

3/4
It`s full of stars!
Where documentation meets reality
https://www.itsfullofstars.de
OpenVPN client
Ping server from client.

ping 10.8.0.1

Powered by TCPDF (www.tcpdf.org)


4/4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy