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
Содержание LINUX ENTERPRISE DESKTOP 11
Страница 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Страница 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Страница 10: ......
Страница 29: ...Part I Authentication...
Страница 30: ......
Страница 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Страница 126: ......
Страница 127: ...Part II Local Security...
Страница 128: ......
Страница 158: ......
Страница 173: ...Part III Network Security...
Страница 174: ......
Страница 194: ......
Страница 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Страница 210: ......
Страница 228: ......
Страница 229: ...Part IV Confining Privileges with Novell AppArmor...
Страница 230: ......
Страница 274: ......
Страница 300: ......
Страница 328: ......
Страница 340: ......
Страница 342: ......
Страница 386: ......
Страница 387: ...Part V The Linux Audit Framework...
Страница 388: ......