Re: L2TP и микротик RB951G-2HnD
Добавлено: 21 янв 2014, 13:03
Сделал всё согласно инструкции, результат тот же PPTP есть L2TP нет. Посмотрите пожалуйста, где чего не хватает. (http://wiki.mikrotik.com/wiki/L2TP_%2B_ ... r_and_a_PC)
[admin@MikroTik] > /export compact
# jan/21/2014 10:05:26 by RouterOS 6.7
# software id = A8W7-7LZ0
#
/interface bridge
add l2mtu=1598 name=bridge2 protocol-mode=rstp
add arp=proxy-arp l2mtu=1598 name=lan
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n country=ukraine disabled=no \
l2mtu=2290 mode=ap-bridge wireless-protocol=802.11
/interface l2tp-server
add name=l2tp-ka user=ka
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk group-ciphers=\
tkip,aes-ccm mode=dynamic-keys unicast-ciphers=tkip,aes-ccm \
wpa-pre-shared-key=okmzaq12 wpa2-pre-shared-key=okmzaq12
/ip dhcp-server
add interface=ether1 name=dhcp1
add interface=bridge2 name=dhcp2
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
mac-cookie-timeout=3d
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=3des
/ip pool
add name=pptp ranges=192.168.0.200-192.168.0.229
/ppp profile
add change-tcp-mss=yes dns-server=192.168.0.1 local-address=192.168.0.1 name=\
pptp-in only-one=yes remote-address=pptp use-encryption=required
/interface bridge port
add bridge=bridge2 interface=wlan1
add bridge=bridge2 interface=ether2
add bridge=bridge2 interface=ether3
add bridge=bridge2 interface=ether4
add bridge=bridge2 interface=ether5
add bridge=lan interface=ether1
/interface l2tp-server server
set enabled=yes max-mru=1460 max-mtu=1460
/interface pptp-server server
set authentication=chap,mschap1,mschap2 default-profile=pptp-in enabled=yes \
max-mru=1460 max-mtu=1460
/ip address
add address=192.168.0.1/32 interface=wlan1 network=192.168.0.1
add address=192.168.0.1/24 interface=lan network=192.168.0.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dns
set allow-remote-requests=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip ipsec peer
add dpd-interval=disable-dpd dpd-maximum-failures=1 enc-algorithm=3des secret=\
test
/ip ipsec policy
add dst-address=10.1.16.0/28 ipsec-protocols=ah-esp sa-dst-address=10.0.16.10 \
sa-src-address=10.0.16.9 src-address=10.0.0.0/24 tunnel=yes
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridge2 type=internal
add interface=ether1 type=external
/ppp secret
add name=user-1 password=123456 profile=pptp-in service=pptp
add name=user-2 password=123456 profile=pptp-in service=pptp
add comment="Some description" local-address=10.0.16.9 name=ka password=ka \
remote-address=10.0.16.10 service=l2tp
/system leds
set 0 interface=wlan1
/system logging
add topics=debug,ipsec
add topics=debug,pptp
add topics=debug,l2tp
/system ntp client
set enabled=yes mode=unicast primary-ntp=62.149.0.30 secondary-ntp=31.28.161.71
[admin@MikroTik] >
[admin@MikroTik] > /export compact
# jan/21/2014 10:05:26 by RouterOS 6.7
# software id = A8W7-7LZ0
#
/interface bridge
add l2mtu=1598 name=bridge2 protocol-mode=rstp
add arp=proxy-arp l2mtu=1598 name=lan
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n country=ukraine disabled=no \
l2mtu=2290 mode=ap-bridge wireless-protocol=802.11
/interface l2tp-server
add name=l2tp-ka user=ka
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk group-ciphers=\
tkip,aes-ccm mode=dynamic-keys unicast-ciphers=tkip,aes-ccm \
wpa-pre-shared-key=okmzaq12 wpa2-pre-shared-key=okmzaq12
/ip dhcp-server
add interface=ether1 name=dhcp1
add interface=bridge2 name=dhcp2
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
mac-cookie-timeout=3d
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=3des
/ip pool
add name=pptp ranges=192.168.0.200-192.168.0.229
/ppp profile
add change-tcp-mss=yes dns-server=192.168.0.1 local-address=192.168.0.1 name=\
pptp-in only-one=yes remote-address=pptp use-encryption=required
/interface bridge port
add bridge=bridge2 interface=wlan1
add bridge=bridge2 interface=ether2
add bridge=bridge2 interface=ether3
add bridge=bridge2 interface=ether4
add bridge=bridge2 interface=ether5
add bridge=lan interface=ether1
/interface l2tp-server server
set enabled=yes max-mru=1460 max-mtu=1460
/interface pptp-server server
set authentication=chap,mschap1,mschap2 default-profile=pptp-in enabled=yes \
max-mru=1460 max-mtu=1460
/ip address
add address=192.168.0.1/32 interface=wlan1 network=192.168.0.1
add address=192.168.0.1/24 interface=lan network=192.168.0.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dns
set allow-remote-requests=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip ipsec peer
add dpd-interval=disable-dpd dpd-maximum-failures=1 enc-algorithm=3des secret=\
test
/ip ipsec policy
add dst-address=10.1.16.0/28 ipsec-protocols=ah-esp sa-dst-address=10.0.16.10 \
sa-src-address=10.0.16.9 src-address=10.0.0.0/24 tunnel=yes
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridge2 type=internal
add interface=ether1 type=external
/ppp secret
add name=user-1 password=123456 profile=pptp-in service=pptp
add name=user-2 password=123456 profile=pptp-in service=pptp
add comment="Some description" local-address=10.0.16.9 name=ka password=ka \
remote-address=10.0.16.10 service=l2tp
/system leds
set 0 interface=wlan1
/system logging
add topics=debug,ipsec
add topics=debug,pptp
add topics=debug,l2tp
/system ntp client
set enabled=yes mode=unicast primary-ntp=62.149.0.30 secondary-ntp=31.28.161.71
[admin@MikroTik] >