ToDO
# An example of a Microsoft Windows OpenVPN configuration
# Set remote host or comment out to enter a listening server mode
remote myremote
# Default port number is 1194
; port 1194
# Default protocol is udp
; proto [tcp-server | tcp-client | udp]
# tap: VPN, ethernet bridging or route broadcast
# tun: IP , efficient and requires configuration, Solaris/OpenBSD/Mac OS X
dev [tap | tun]
# dev tap configuration
# Create a virtual ethernet subnet
# 10.3.0.1 is the local VPN IP address
# 255.255.255.0 is the VPN subnet
ifconfig 10.3.0.1 255.255.255.0
# dev tun configuration
# Create a point-to-point IP link
# 10.3.0.1 is the local VPN IP address
# 10.3.0.2 is the remote VPN IP address
# A remote machine must have tun-mtu first while a client machine must have ifconfig first... or the other way around
; tun-mtu 1500
; ifconfig 10.3.0.1 10.3.0.2
# For Path MTU discovery lower the TCP MSS and internally fragment non-TCP protocols
; fragment 1300
; mssfix
# If you have more than one TAP-Win32 adapter refer to it by name
; dev-node my-tap
# You can generate a secret key with openvpn --genkey secret key.txt
# Place key.txt in the same directory as this config file on both the remote computer and the client
secret key.txt
# For a more reliable detection when a system loses its connection
; ping-restart 60
; ping-timer-rem
; persist-tun
; persist-key
; resolv-retry 86400
# keep-alive ping
ping 10
# enable LZO compression
comp-lzo
# moderate verbosity
verb 4
mute 10
Tunnel to the remote computer by executing:
$: sudo openvpn --config File-Name.ovpn --auth-user-pass Username-Password-File.txt #-> Enter Auth ...
You can check if the connection has been established by executing:
$: ifconfig -> show network interfaces; discover tunnel IP
$: route -n -> show IP routing table
Connect to a remote computer: