Allied Telesis AT-WR4500 manual Add a Pptp client to the RemoteOffice router

Models: AT-WR4500

1 264
Download 264 pages 44.79 Kb
Page 184
Image 184

184

AT-WR4500 Series - IEEE 802.11abgh Outdoor Wireless Routers

 

RouterOS v3 Configuration and User Guide

 

 

Then the user should be added in the PPTP server list:

[admin@HomeOffice] interface pptp-server> add user=ex

[admin@HomeOffice] interface pptp-server> print Flags: X - disabled, D - dynamic, R - running

#

NAME

USER

MTU CLIENT-ADDRESS UPTIME ENC...

0

pptp-in1

ex

 

[admin@HomeOffice] interface pptp-server>

And finally, the server must be enabled:

[admin@HomeOffice] interface pptp-server server> set enabled=yes

[admin@HomeOffice] interface pptp-server server> print enabled: yes

max-mtu: 1460

max-mru: 1460 mrru: disabled

authentication: mschap2 keepalive-timeout: 30

default-profile: default [admin@HomeOffice] interface pptp-server server>

Add a PPTP client to the RemoteOffice router:

[admin@RemoteOffice] interface pptp-client> add connect-to=192.168.80.1 user=ex \ \... password=lkjrht disabled=no

[admin@RemoteOffice] interface pptp-client> print Flags: X - disabled, R - running

0R name="pptp-out1" mtu=1460 mru=1460 connect-to=192.168.80.1 user="ex"

password="lkjrht" profile=default add-default-route=no allow=pap,chap,mschap1,mschap2

[admin@RemoteOffice] interface pptp-client>

Thus, a PPTP tunnel is created between the routers. This tunnel is like an Ethernet point-to-point connection between the routers with IP addresses 10.0.103.1 and 10.0.103.2 at each router. It enables 'direct' communication between the routers over third party networks.

 

 

 

Internet

 

 

ISP #1

 

 

 

 

ISP #2

 

 

Encrypted

 

192.168.80.0/24

 

192.168.81.0/24

 

PPTP Tunnel

 

 

 

 

 

[Home Office]

FromRemoteOffice

 

[Remote Office]

192.168.80.1/24

 

192.168.81.1/24

 

 

 

 

 

 

 

10.0.103.1/24

Tunnel_To_HomeOffice

 

 

 

 

 

 

 

 

10.0.103.2/24

 

10.150.2.254/24

 

 

 

 

10.150.1.254/24

 

 

 

 

 

 

 

10.150.2.1/2410.150.1.1/24

Figure 28: Network Setup with encrypted PPTP Tunnel

To route the local Intranets over the PPTP tunnel you need to add these routes:

[admin@HomeOffice] > ip route add dst-address 10.150.1.0/24 gateway 10.0.103.2 [admin@RemoteOffice] > ip route add dst-address 10.150.2.0/24 gateway 10.0.103.1

Page 184
Image 184
Allied Telesis AT-WR4500 Add a Pptp client to the RemoteOffice router, Admin@HomeOffice interface pptp-server add user=ex