usługi sieciowe wykład 9 vpn

12
Usługi sieciowe Usługi sieciowe Wykład 9 Wykład 9 VPN VPN Jarosław Kurek WZIM SGGW 1

Upload: kacy

Post on 13-Jan-2016

51 views

Category:

Documents


0 download

DESCRIPTION

Usługi sieciowe Wykład 9 VPN. Jarosław Kurek WZIM SGGW. VPN PPTP. VPN PPTP. Installing MPPE Support Most people want their tunnels encrypted. Check the version of your kernel; if it is below 2.6.15-rc1 then you do not have MPPE support. To check further, test like this: - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Usługi sieciowe Wykład 9 VPN

Usługi siecioweUsługi sieciowe

Wykład 9Wykład 9VPNVPN

Jarosław KurekWZIM SGGW

1

Page 2: Usługi sieciowe Wykład 9 VPN

VPN PPTPVPN PPTP

Page 3: Usługi sieciowe Wykład 9 VPN

VPN PPTPVPN PPTPInstalling MPPE Support Most people want their tunnels encrypted. Check the version of your kernel; if it is below 2.6.15-rc1 then you do not have MPPE support. To check further, test like this:

# modprobe ppp-compress-18 && echo success

Page 4: Usługi sieciowe Wykład 9 VPN

VPN PPTPVPN PPTPInstalling the Server Program Install

the pptpd package from the Debian Project:

# apt-get install pptpd

Page 5: Usługi sieciowe Wykład 9 VPN

VPN PPTPVPN PPTPConfigure IP Address RangeEdit the file /etc/pptpd.conf for the IP address range, for

example:

localip 192.168.0.1remoteip 192.168.0.234-238,192.168.0.245

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

Page 6: Usługi sieciowe Wykład 9 VPN

VPN PPTPVPN PPTPAdding UsersConfigure /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.

Page 7: Usługi sieciowe Wykład 9 VPN

VPN PPTP -testowanieVPN PPTP -testowaniea) Testowanie z windowsa

b) Testowanie z innego linuxa

apt-get install pptp-linux

do konfiguracji korzystamy pptpsetup - Point-to-Point Tunneling Protocol setup

pptpsetup --create <TUNNEL> --server <SERVER> [--domain <DOMAIN>]

--username <USERNAME> [--password <PASSWORD>]

[--encrypt] [--start]

pptpsetup --delete <TUNNEL>

Uruchamiamy pon [nazwa pliku]

Wyłączamy poff [nazwa pliku]

Page 8: Usługi sieciowe Wykład 9 VPN

VPN PPTP -testowanieVPN PPTP -testowanie

Page 9: Usługi sieciowe Wykład 9 VPN

OpenVPNOpenVPN

Page 10: Usługi sieciowe Wykład 9 VPN

OpenVPN -konfiguracjaOpenVPN -konfiguracja Link to opisu konfiguracji w pdf~jkurek/US/openvpn.pdf

Należy zrobić dwa przykłady:

a)Debian server – debian klientb)Debian server – windows klient

Page 11: Usługi sieciowe Wykład 9 VPN

OpenVPN a)– wynik serverOpenVPN a)– wynik server

Page 12: Usługi sieciowe Wykład 9 VPN

OpenVPN b) wynik klientOpenVPN b) wynik klient