 Dan Lanciani     	
View profile  
	 More options Nov 21 2006, 8:22 am
Newsgroups: comp.dcom.sys.cisco
From: ddl@danlan.*com (Dan Lanciani)
Date: 21 Nov 2006 07:22:51 GMT
Local: Tues, Nov 21 2006 8:22 am
Subject: Re: Cisco 1721 as PPTP Client
Reply to author | Forward | Print | View thread | Show original | Report this message | Find messages by this author
In article <P5GdnXsZgMpfIPzYnZ2dnUVZ8tedn...@kpnqwest.it>, ad...@NOSPAMspadhausen.com (E. S.) writes:

| Hello
| I want to ask you this:
|
| I got a Cisco1721 (32F/128D) IOS 12.4(8) ADVIPSERVICES on a business class
| ADSL line
|
| the INT as the following:
|
| fast0: 192.168.2.254 to lan
| atm0.35 - wan 9.9.9.9 public static wan ip addr
| atm0 - dsl link
| tunnel0 - 6to4 tunnel -
|
|
| I need to configure the C1721 in this way:
| after the dsl (atm0.35) is up and connected to the internet, it
| automatically (i hope a dialer interface...) connect to the remote host via
| PPTP and establish a VPN link.
|
| example: username vpnuser/vpnpassword - protocol PPTP
|
| I need so that the C1721 stays always up via VPN so every client on the lan
| 192.168.2.xxx browse internet via the VPN link.
|
| Is it possible?
| I havent found any documents useful yet.

This question comes up from time to time and the usual answer is "no";
however, most versions of IOS >= 12.2 do support it if "service internal"
is enabled.  You will notice that with "service internal" request-dialin
vpdn groups allow rotary-group and pool-member commands.  Here is a
sample configuration for a PPTP client:

service internal
!
no ip gratuitous-arps ! recommended
!
ip multicast-routing
!
vpdn enable
!
vpdn-group 1
 request-dialin
  protocol pptp
  rotary-group 0
 initiate-to ip 1.1.1.1 ! target PPTP server address

interface Dialer0
 mtu 1450 ! allows for mppe and one PPPoE layer just in case
 ip address 2.2.2.2 255.255.255.252
 ip pim dense-mode
 encapsulation ppp
 dialer in-band
 dialer idle-timeout 0
 dialer string 123 ! required, but value seems to be ignored
 dialer vpdn
 dialer-group 1
 no cdp enable
 ppp pfc local request
 ppp pfc remote apply
 ppp encrypt mppe auto
 ppp chap hostname vpnuser
 ppp chap password 0 vpnpassword
!
dialer-list 1 protocol ip permit

Several notes:

-Pim is there merely to provide a source of activity to force the dialer
to connect without requiring you to point any routes at the interface.
This is useful since dialer interfaces are always "up" in some sense and
you can achieve better control of fallbacks by routing to the specific
/32 that will be installed when ipcp is up.

-Mppe requires (well, at least if you don't want to involve authentication
servers) that a version of MSCHAP be used to authenticate the ppp connection.
Cisco has supported MSCHAPv1 for a while, but v2 support is somewhat newer.
Either is fine as far as mppe is concerned, but you can get into situations
where no MSCHAP is used even though both ends support a common version.  For
example, the if the server proposes the use of MSCHAPv2 and the Cisco does
not support v2 it will NAK to normal CHAP.  If the server agrees then the
connection will come up but there will be no encryption.  I think you will
be fine with IOS 12.4, but for others this can be a problem that requires
some tweaking.

-Many PPTP servers expect to assign the client's IP address.  Modify the
dialer's "ip address" statement for negotiated operation if necessary.

-Many PPTP servers use their primary address (i.e., the address that
you might use in the vpdn-group's "initiate-to ip" command) for their end
of the ppp connection.  This is a problem because IOS will install a /32
route to that address through the dialer interface thus creating a loop
that chokes the connection (and possibly even crashes the router).  If
you can't find an alternate address for the server you will need to use
policy routing to work around the problem as it appears that nothing can
compete with a /32 "directly" connected interface route.

                                Dan Lanciani
                                ddl@danlan.*com 
