1 Usługi sieciowe Wykład 9 VPNJarosław Kurek WZIM SGGW
2 VPN PPTP 2
3 VPN PPTP # modprobe ppp-compress-18 && echo successInstalling MPPE Support Most people want their tunnels encrypted. Check the version of your kernel; if it is below rc1 then you do not have MPPE support. To check further, test like this: # modprobe ppp-compress-18 && echo success 3
4 VPN PPTP Installing the Server Program Install the pptpd package from the Debian Project: # apt-get install pptpd 4
5 VPN PPTP Configure IP Address Range Edit the file /etc/pptpd.conf for the IP address range, for example: localip remoteip , Note: see pptpd.conf(5) for more details on the other options. Note: you will need to restart pptpd to make changes to /etc/pptpd.conf effective: # /etc/init.d/pptpd restart 5
6 VPN PPTP Adding Users Configure /etc/ppp/chap-secrets for the accounts, for example: # echo "username pptpd password *" >> /etc/ppp/chap-secrets Note: this method has all the usernames in one file. There are other ways, including authentication using Radius, or using Samba. 6
7 VPN PPTP -testowanie Testowanie z windowsa Testowanie z innego linuxaapt-get install pptp-linux do konfiguracji korzystamy pptpsetup - Point-to-Point Tunneling Protocol setup pptpsetup --create
8 VPN PPTP -testowanie 8
9 OpenVPN 9
10 OpenVPN -konfiguracjaLink to opisu konfiguracji w pdf ~jkurek/US/openvpn.pdf Należy zrobić dwa przykłady: Debian server – debian klient Debian server – windows klient 10
11 OpenVPN a)– wynik server11
12 OpenVPN b) wynik klient12