Server:
Code: Select all
/interface bridge
add admin-mac=02:B0:ED:BC:0B:83 auto-mac=no name=pptp-Bridge
/ip pool
add name=vpn-pool ranges=172.20.1.0/24
add name=PPPoE ranges=172.19.1.0/24
/ppp profile
add bridge=pptp-Bridge dhcpv6-pd-pool=vpn_pool dns-server=8.8.8.8,8.8.4.4 \
local-address=1.2.3.4 name=vpn remote-address=vpn-pool
add local-address=1.1.1.1 name=PPPoE remote-address=PPPoE
/interface pppoe-server server
add default-profile=PPPoE disabled=no interface=pptp-Bridge service-name=\
"PPPoE Over PPTP"
/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 default-profile=vpn enabled=yes
/ppp secret
add name=amir password=123 profile=vpn
add name=test password=test profile=PPPoE service=pppoe
Code: Select all
/interface bridge
add admin-mac=02:B0:ED:BC:0B:84 auto-mac=no name=pptp-Bridge
/ppp profile
add bridge=pptp-Bridge name=pptp
/interface pptp-client
add connect-to=192.168.1.1 disabled=no mrru=1600 name=PPTP password=123 profile=pptp user=amir
/interface pppoe-client
add disabled=no interface=pptp-Bridge name="PPPoE Over PPTP" password=test user=test