Mainos / Advertisement:

Ero sivun ”PPTP-serveri” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
Rivi 1: Rivi 1:
Konffataan!!!!! jej
+
Tehdään cisco 2821 routterista pptp serveri.
pptp mppe ja ms-chap
 
  
vpdn enable
+
==== Perustietoa ====
vpdn-group 1
 
  accept-dialin
 
  protocol pptp
 
  virtual-template 1
 
  exit
 
  
Määritellään että hyväksytään sisääntulevat pptp protokollaa käyttävät vpn yhteydenotot ja ohjataan ne Virtual-Template 1.
+
Meillä on käytössä cisco 2821 ja clienttinä windows 8.1.
 +
 +
hostname Reititin
  
Määritellään Virtual-template 1 interfacen esimerkiksi salausja ip pooli
+
  username johannes password Qwerty1
  interface Virtual-template 1
 
  encapsulation ppp
 
  ip unnumbered FastEthernet 0/0
 
  peer default ip address pool PPTP
 
  no keepalive
 
  ppp encryp mppe auto required
 
  ppp authentication ms-chap
 
  
  ip local pool PPTP 192.168.100.10 192.168.100.20
+
  enable secret Qwerty1
  
  username johannes password Qwerty1
+
  interface FastEthernet0/0
 +
  description WAN
 +
  ip address 10.5.26.205 255.255.255.0
 +
  ip nat outside
 +
  ip virtual-reassembly
 +
  no shutdown
  
 +
interface FastEthernet0/1
 +
  description LAN
 +
  ip address 10.0.0.1 255.255.255.0
 +
  ip nat inside
 +
  ip virtual-reassembly
 +
  no shutdown
  
==== Toimiva konffiesimerkki ====
+
==== Sitten pptp kuntoon ====
  
<small>
 
version 12.4
 
service config
 
service timestamps debug datetime msec
 
service timestamps log datetime msec
 
no service password-encryption
 
!
 
hostname Reititin
 
!
 
boot-start-marker
 
boot-end-marker
 
!
 
no logging on
 
enable secret 5 $1$AV8X$t7MoG7yn7ZFOI.Ivfc9yX.
 
!
 
 
  aaa new-model
 
  aaa new-model
!
+
 
!
 
 
  aaa authentication login default local
 
  aaa authentication login default local
 
  aaa authentication ppp default local
 
  aaa authentication ppp default local
 
  aaa authorization network default local
 
  aaa authorization network default local
!
+
 
!
 
aaa session-id common
 
dot11 syslog
 
!
 
!
 
ip cef
 
!
 
!
 
!
 
multilink bundle-name authenticated
 
!
 
 
  vpdn enable
 
  vpdn enable
!
 
 
  vpdn-group PPTP
 
  vpdn-group PPTP
! Default PPTP VPDN group
+
  accept-dialin
description Default PPTP VPDN group
+
  protocol pptp
accept-dialin
+
  virtual-template 1
  protocol pptp
+
  exit
  virtual-template 1
+
 
l2tp tunnel receive-window 1024
+
Määritellään että hyväksytään sisääntulevat pptp protokollaa käyttävät vpn yhteydenotot ja ohjataan ne Virtual-Template 1.
!
+
 
voice-card 0
+
Määritellään Virtual-template 1 interfacen esimerkiksi salaus ja ip pooli
no dspfarm
+
 
!
+
  interface Virtual-template 1
username johannes password 0 Qwerty1
+
  ip unnumbered FastEthernet0/1
archive
+
  ip nat inside
log config
+
  ip virtual-reassembly
  hidekeys
+
  peer default ip address pool PPTPPOOL
!
+
  compress mppc
!
+
  ppp encrypt mppe auto
interface FastEthernet0/0
+
  ppp authentication ms-chap-v2
description WAN
+
 
ip address 10.5.26.22 255.255.255.0
+
 
ip nat outside
 
ip virtual-reassembly
 
duplex auto
 
speed auto
 
!
 
interface FastEthernet0/1
 
description LAN
 
ip address 10.0.0.1 255.255.255.0
 
ip nat inside
 
ip virtual-reassembly
 
duplex auto
 
speed auto
 
!
 
interface FastEthernet0/1.10
 
description LabraLAN 10
 
encapsulation dot1Q 10
 
ip address 10.0.1.1 255.255.255.0
 
ip nat inside
 
ip virtual-reassembly
 
!
 
interface FastEthernet0/1.20
 
description LabraLAN 20
 
encapsulation dot1Q 20
 
ip address 10.0.2.1 255.255.255.0
 
ip nat inside
 
ip virtual-reassembly
 
!
 
  interface Virtual-Template1
 
ip unnumbered FastEthernet0/1
 
ip nat inside
 
ip virtual-reassembly
 
peer default ip address pool PPTPPOOL
 
compress mppc
 
ppp encrypt mppe auto
 
ppp authentication ms-chap-v2
 
!
 
 
  ip local pool PPTPPOOL 10.255.255.200 10.255.255.254
 
  ip local pool PPTPPOOL 10.255.255.200 10.255.255.254
ip forward-protocol nd
+
 
ip route 0.0.0.0 0.0.0.0 10.5.26.1
+
==== Natti reitittimelle: ====
!
+
 
!
 
ip http server
 
no ip http secure-server
 
 
  ip nat inside source list NAT interface FastEthernet0/0 overload
 
  ip nat inside source list NAT interface FastEthernet0/0 overload
!
+
 
ip access-list extended FW_IN
 
permit tcp any host 10.5.26.22 eq 22
 
permit tcp any host 10.5.26.22 eq 1723
 
permit udp any host 10.5.26.22 eq isakmp
 
permit esp any host 10.5.26.22
 
permit gre any host 10.5.26.22
 
evaluate FW_TRAFFIC
 
permit icmp any host 10.5.26.22
 
ip access-list extended FW_OUT
 
 
  ip access-list extended NAT
 
  ip access-list extended NAT
deny  ip 10.0.0.0 0.0.0.255 10.255.255.0 0.0.0.255
+
   deny  ip 10.0.0.0 0.0.0.255 10.255.255.0 0.0.0.255
deny   ip 10.0.1.0 0.0.0.255 10.255.255.0 0.0.0.255
+
   permit ip 10.255.255.0 0.0.0.255 any
deny  ip 10.0.2.0 0.0.0.255 10.255.255.0 0.0.0.255
+
  permit ip 10.0.0.0 0.0.0.255 any
deny  ip 10.0.3.0 0.0.0.255 10.255.255.0 0.0.0.255
+
  permit tcp any host 10.5.26.205 eq 22
deny  ip 10.0.4.0 0.0.0.255 10.255.255.0 0.0.0.255
+
  permit tcp any host 10.5.26.205 eq 1723
deny  ip 10.0.5.0 0.0.0.255 10.255.255.0 0.0.0.255
+
  permit udp any host 10.5.26.205 eq isakmp
deny  ip 10.0.6.0 0.0.0.255 10.255.255.0 0.0.0.255
+
  permit esp any host 10.5.26.205
deny  ip 10.0.7.0 0.0.0.255 10.255.255.0 0.0.0.255
+
  permit gre any host 10.5.26.205
deny  ip 10.0.8.0 0.0.0.255 10.255.255.0 0.0.0.255
+
  permit icmp any host 10.5.26.205
deny  ip 10.0.9.0 0.0.0.255 10.255.255.0 0.0.0.255
 
deny  ip 10.0.100.0 0.0.0.255 10.255.255.0 0.0.0.255
 
deny   ip 172.16.1.0 0.0.0.255 10.255.255.0 0.0.0.255
 
permit ip 10.255.255.0 0.0.0.255 any
 
permit ip 10.0.1.0 0.0.0.255 any
 
permit ip 10.0.0.0 0.0.0.255 any
 
permit ip 10.0.2.0 0.0.0.255 any
 
permit ip 10.0.3.0 0.0.0.255 any
 
permit ip 10.0.4.0 0.0.0.255 any
 
permit ip 10.0.5.0 0.0.0.255 any
 
permit ip 10.0.6.0 0.0.0.255 any
 
permit ip 10.0.7.0 0.0.0.255 any
 
permit ip 10.0.8.0 0.0.0.255 any
 
permit ip 10.0.9.0 0.0.0.255 any
 
permit ip 10.0.100.0 0.0.0.255 any
 
permit ip 172.16.1.0 0.0.0.255 any
 
permit ip 172.16.10.0 0.0.0.255 any
 
!
 
no logging trap
 
access-list 1 permit any
 
control-plane
 
!
 
!
 
line con 0
 
line aux 0
 
line vty 5 15
 
!
 
scheduler allocate 20000 1000
 
end
 
 
 
</small>
 

Versio 17. marraskuuta 2014 kello 11.47

Tehdään cisco 2821 routterista pptp serveri.

Perustietoa

Meillä on käytössä cisco 2821 ja clienttinä windows 8.1.

hostname Reititin
username johannes password Qwerty1
enable secret Qwerty1
interface FastEthernet0/0
 description WAN
 ip address 10.5.26.205 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 no shutdown
interface FastEthernet0/1
 description LAN
 ip address 10.0.0.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 no shutdown

Sitten pptp kuntoon

aaa new-model
aaa authentication login default local
aaa authentication ppp default local
aaa authorization network default local
vpdn enable
vpdn-group PPTP
 accept-dialin
  protocol pptp
  virtual-template 1
  exit

Määritellään että hyväksytään sisääntulevat pptp protokollaa käyttävät vpn yhteydenotot ja ohjataan ne Virtual-Template 1.

Määritellään Virtual-template 1 interfacen esimerkiksi salaus ja ip pooli

interface Virtual-template 1
 ip unnumbered FastEthernet0/1
 ip nat inside
 ip virtual-reassembly
 peer default ip address pool PPTPPOOL
 compress mppc
 ppp encrypt mppe auto
 ppp authentication ms-chap-v2


ip local pool PPTPPOOL 10.255.255.200 10.255.255.254

Natti reitittimelle:

ip nat inside source list NAT interface FastEthernet0/0 overload
ip access-list extended NAT
 deny   ip 10.0.0.0 0.0.0.255 10.255.255.0 0.0.0.255
 permit ip 10.255.255.0 0.0.0.255 any
 permit ip 10.0.0.0 0.0.0.255 any
 permit tcp any host 10.5.26.205 eq 22
 permit tcp any host 10.5.26.205 eq 1723
 permit udp any host 10.5.26.205 eq isakmp
 permit esp any host 10.5.26.205
 permit gre any host 10.5.26.205
 permit icmp any host 10.5.26.205
Mainos / Advertisement: