The userspace program OpenVPN can attach itself to a tun or tap device to receive
packets sent by your OS. The program is also able to write packets to the device. Read
more details in
/usr/src/linux/Documentation/networking/tuntap
.txt
.
16.2 Creating the Simplest VPN
Example
The following example creates a point-to-point VPN tunnel. It demonstrates how to
create a VPN tunnel between one client and a server. It is assumed that your VPN
server will use the IP address
10.23.8.1
and your client the IP address
10.23.8.2
.
You can modify these private IP adresses to your needs but make sure you select
adresses which are not used to minimize problems with IP address or subnet conflicts.
WARNING: Use It Only For Testing
This scenario is only useful for testing and is considered as an example to get
used to VPN. Do not use this as a real world scenario to connect as it can
compromise your security and the safety of your IT infrastructure!
16.2.1 Configuring the VPN Server
To configure a VPN server, do the following:
1
Install the package
openvpn
on the machine that will later become your VPN
server.
2
Open a shell, become
root
and create the VPN secret key:
openvpn --genkey --secret /etc/openvpn/secret.key
3
Copy the secret key to your client:
scp /etc/openvpn/secret.key [email protected]:/etc/openvpn/
Configuring VPN Server
185
Summary of Contents for LINUX ENTERPRISE DESKTOP 11
Page 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Page 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Page 10: ......
Page 29: ...Part I Authentication...
Page 30: ......
Page 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Page 126: ......
Page 127: ...Part II Local Security...
Page 128: ......
Page 158: ......
Page 173: ...Part III Network Security...
Page 174: ......
Page 194: ......
Page 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Page 210: ......
Page 228: ......
Page 229: ...Part IV Confining Privileges with Novell AppArmor...
Page 230: ......
Page 274: ......
Page 300: ......
Page 328: ......
Page 340: ......
Page 342: ......
Page 386: ......
Page 387: ...Part V The Linux Audit Framework...
Page 388: ......