4 Create the file /etc/openvpn/server.conf with the following content:
5 Start the YaST firewall module and UDP port 1194.
6 Start the OpenVPN service as root:
16.2.2 Configuring the VPN Client
To configure the VPN client, do the following:
1 Install the package openvpn on the machine that will later become your VPN
2 Create the file /etc/openvpn/server.conf with the following content:
3 Start the OpenVPN service as root:
16.2.3 Testing the VPN Example
After the OpenVPN is successfully started, test if the tun device is available. You can
do so with the following command:
ifconfig tun0
148
Security Guide
dev tun
ifconfig 10.23.8.1 10.23.8.2
secret secret.key
rcopenvpn start
client.
remote IP_OF_SERVER
dev tun
ifconfig 10.23.8.2 10.23.8.1
secret secret.key
Replace the placeholder IP_OF_SERVER in the first line (remote) with either
the domain name or the public IP adress of your server.
rcopenvpn start