Code: Select all
# dec/28/2020 21:52:53 by RouterOS 6.48
# software id = 205I-3FYC
#
# model = RB760iGS
# serial number = A8150A077589
/interface bridge
add admin-mac=74:4D:28:3C:C2:55 auto-mac=no comment=defconf name=bridge
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip ipsec proposal
set [ find default=yes ] auth-algorithms=sha512
/ip pool
add name=dhcp ranges=192.168.88.10-192.168.88.254
add name=vpn-pool ranges=192.168.66.10-192.168.66.20
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/ppp profile
set *FFFFFFFE local-address=192.168.66.1 remote-address=vpn-pool
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface l2tp-server server
set enabled=yes use-ipsec=required
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
192.168.88.0
/ip dhcp-client
add comment=defconf disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input protocol=ipsec-esp
add action=accept chain=input port=1701,500,4500 protocol=udp
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
/ppp secret
add name=wolskik
/system clock
set time-zone-name=Europe/Warsaw
/system logging
add topics=l2tp,!debug
add topics=ipsec,!debug
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
Code: Select all
22:20:54 ipsec,info respond new phase 1 (Identity Protection): 78.90.73.124[500]<=>6.134.249.213[14030]
22:20:54 ipsec,info respond new phase 1 (Identity Protection): 78.90.73.124[500]<=>6.134.249.213[14030]
22:20:54 ipsec received Vendor ID: RFC 3947
22:20:54 ipsec received Vendor ID: draft-ietf-ipsec-nat-t-ike-02
22:20:54 ipsec received Vendor ID: draft-ietf-ipsec-nat-t-ike-02\n
22:20:54 ipsec received Vendor ID: draft-ietf-ipsec-nat-t-ike-00
22:20:54 ipsec received Vendor ID: FRAGMENTATION
22:20:54 ipsec Fragmentation enabled
22:20:54 ipsec received Vendor ID: DPD
22:20:54 ipsec 6.134.249.213 Selected NAT-T version: RFC 3947
22:20:54 ipsec sent phase1 packet 78.90.73.124[500]<=>6.134.249.213[14030] e582264f07577374:095fcb83b0297f02
22:20:55 ipsec NAT detected: PEER
22:20:55 ipsec Adding remote and local NAT-D payloads.
22:20:55 ipsec sent phase1 packet 78.90.73.124[500]<=>6.134.249.213[14030] e582264f07577374:095fcb83b0297f02
22:20:55 ipsec NAT-T: ports changed to: 6.134.249.213[4917]<=>78.90.73.124[4500]
22:20:55 ipsec KA list add: 78.90.73.124[4500]->6.134.249.213[4917]
22:20:55 ipsec,info ISAKMP-SA established 78.90.73.124[4500]-6.134.249.213[4917] spi:e582264f07577374:095fcb83b0297f02
22:20:55 ipsec,info ISAKMP-SA established 78.90.73.124[4500]-6.134.249.213[4917] spi:e582264f07577374:095fcb83b0297f02
22:20:56 ipsec respond new phase 2 negotiation: 78.90.73.124[4500]<=>6.134.249.213[4917]
22:20:56 ipsec invalid auth algorithm=6.
22:20:56 ipsec invalid auth algorithm=6.
22:20:56 ipsec invalid auth algorithm=6.
22:20:56 ipsec invalid auth algorithm=6.
22:20:56 ipsec searching for policy for selector: 78.90.73.124:1701 ip-proto:17 <=> 6.134.249.213 ip-proto:17
22:20:56 ipsec generating policy
22:20:56 ipsec Adjusting my encmode UDP-Transport->Transport
22:20:56 ipsec Adjusting peer's encmode UDP-Transport(4)->Transport(2)
22:20:56 ipsec sent phase2 packet 78.90.73.124[4500]<=>6.134.249.213[4917] e582264f07577374:095fcb83b0297f02:0000d5c5
22:20:56 ipsec IPsec-SA established: ESP/Transport 6.134.249.213[4917]->78.90.73.124[4500] spi=0x6540238
22:20:56 ipsec IPsec-SA established: ESP/Transport 78.90.73.124[4500]->6.134.249.213[4917] spi=0x880946a
22:21:54 ipsec purged IPsec-SA proto_id=ESP spi=0x880946a
22:21:54 ipsec purged IPsec-SA proto_id=ESP spi=0x6540238
22:21:54 ipsec removing generated policy
22:21:54 ipsec,info purging ISAKMP-SA 78.90.73.124[4500]<=>6.134.249.213[4917] spi=e582264f07577374:095fcb83b0297f02.
22:21:54 ipsec,info purging ISAKMP-SA 78.90.73.124[4500]<=>6.134.249.213[4917] spi=e582264f07577374:095fcb83b0297f02.
22:21:54 ipsec purged ISAKMP-SA 78.90.73.124[4500]<=>6.134.249.213[4917] spi=e582264f07577374:095fcb83b0297f02.
22:21:54 ipsec,info ISAKMP-SA deleted 78.90.73.124[4500]-6.134.249.213[4917] spi:e582264f07577374:095fcb83b0297f02 rekey:1
22:21:54 ipsec,info ISAKMP-SA deleted 78.90.73.124[4500]-6.134.249.213[4917] spi:e582264f07577374:095fcb83b0297f02 rekey:1
22:21:54 ipsec KA remove: 78.90.73.124[4500]->6.134.249.213[4917]