How do I configure PPTP?

CDRouter can act as a PPTP server on the WAN in setups where the device under test (DUT) is configured as a PPTP client. PPTP can be enabled on CDRouter’s WAN interface by setting the following testvar:

testvar wanMode               PPTP

PPTP uses two sets of IP addresses. The first address is usually statically configured or learned via DHCP. This address is used to establish the initial PPTP control session. The following testvars should be used to configure the first set of IP addresses:

testvar wanIspIp              192.168.200.1
testvar wanIspAssignIp        192.168.200.2

In the configuration above, the router under test should be configured with IP address 192.168.200.2 to match the testvar wanIspAssignIp . If DHCP is being used on the WAN to learn the initial IP address, the following testvar should be set:

testvar pptpUseDHCP           yes

The second IP address is learned dynamically through the PPP over GRE session. The IP addresses assigned by PPP are configured using the following testvars:

testvar pptpServerIp          192.168.3.1
testvar pptpClientIp          192.168.3.2

The pptpClientIp testvar will be assigned to the router using the inner PPP over GRE session.

When working with PPTP the wanNatIp testvar should match the IP address of the inner PPP over GRE session. In the example above, the NAT IP address from the inner PPP session is 192.168.3.2.

testvar wanNatIp              192.168.3.2

You may also set the wanIspNextIp testvar to an IP address on the same network as the pptpServerIp and pptpClientIp IP addresses.

testvar wanIspNextIp          192.168.3.3

Example PPTP Configuration

testvar wanMode               PPTP
testvar wanIspIp              192.168.200.1
testvar wanIspAssignIp        192.168.200.2
testvar pptpUseDHCP           no
testvar pptpServerIp          192.168.3.1
testvar pptpClientIp          192.168.3.2
testvar wanNatIp              192.168.3.2
testvar wanIspNextIp          192.168.3.3