Mainos / Advertisement:


From Taisto
Revision as of 06:38, 27 August 2015 by Frans (talk | contribs) (Ak: Uusi sivu: ==== NAT for router: ====)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Other languages:
English • ‎suomi

We make a cisco 2821 router into a pptp server.

Basic info

We are using a cisco 2821 router and a client PC running Windows 8.1. The router's IOS is (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T 8. Not that it really matters.

hostname Router

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

Then we setup the pptp

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

We define that we accept incoming pptp protocol vpn connections and we direct them to Virtual-Template 1

We define settings for the Virtual-Template 1 interface, such as ip-pool and encryption.

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

NAT for router:

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