User Tools

Site Tools


os:linux:tumbleweed:openvpn

This is an old revision of the document!


OpenVPN

Open a shell, become root and create the VPN secret key:
 
openvpn --genkey secret /etc/openvpn/secret.key
COPY
Copy the secret key to your client:
 
scp /etc/openvpn/secret.key root@IP_OF_CLIENT:/etc/openvpn/
COPY
Create the file /etc/openvpn/server.conf with the following content:
 
dev tun
ifconfig IP_OF_SERVER IP_OF_CLIENT
secret secret.key
COPY
Set up a tun device configuration by creating a file called /etc/sysconfig/network/ifcfg-tun0 with the following content:
 
STARTMODE='manual'
BOOTPROTO='static'
TUNNEL='tun'
TUNNEL_SET_OWNER='nobody'
TUNNEL_SET_GROUP='nobody'
LINK_REQUIRED=no
PRE_UP_SCRIPT='systemd:openvpn@server'
PRE_DOWN_SCRIPT='systemd:openvpn@service'
COPY
The notation openvpn@server points to the OpenVPN server configuration file located at /etc/openvpn/server.conf. For more information, see /usr/share/doc/packages/openvpn/README.SUSE.
 
If you use a firewall, start YaST and open UDP port 1194 (Security and Users › Firewall › Allowed Services).
 
Start the OpenVPN server service by setting the tun device to up:
 
sudo wicked ifup tun0
COPY
You should see the confirmation:
 
tun0            up
os/linux/tumbleweed/openvpn.1720453738.txt.gz · Last modified: 2024/07/08 17:48 by ebaer

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki