Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /interface l2tp-server
- add name=l2tp-L2TP-worker-01 user=L2TP-worker-01
- /interface bridge
- add admin-mac=CC:2D:E0:FF:79:09 auto-mac=no comment=defconf name=bridge
- /interface ethernet
- set [ find default-name=ether1 ] speed=100Mbps
- set [ find default-name=ether2 ] speed=100Mbps
- set [ find default-name=ether3 ] speed=100Mbps
- set [ find default-name=ether4 ] speed=100Mbps
- set [ find default-name=ether5 ] speed=100Mbps
- /interface list
- add comment=defconf name=WAN
- add comment=defconf name=LAN
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- /ip hotspot profile
- set [ find default=yes ] html-directory=flash/hotspot
- /ip pool
- add name=default-dhcp ranges=192.168.88.10-192.168.88.254
- add name=L2TP-pool ranges=172.16.10.2-172.16.10.254
- /ip dhcp-server
- add address-pool=default-dhcp disabled=no interface=bridge name=defconf
- /ppp profile
- add address-list=remote-workers change-tcp-mss=no local-address=172.16.10.1 name=profile-remote-workers remote-address=L2TP-pool use-compression=no use-encryption=no use-mpls=no use-upnp=no
- /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 authentication=mschap2 default-profile=profile-remote-workers enabled=yes ipsec-secret=IPSec5wqsf9S7fcVCfpEhnwNh7J436-f keepalive-timeout=120 use-ipsec=yes
- /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 dhcp-options=hostname,clientid 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 name=router.lan
- /ip firewall filter
- add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked disabled=yes
- add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid disabled=yes
- add action=accept chain=input comment="defconf: accept ICMP" disabled=yes protocol=icmp
- add action=drop chain=input comment="defconf: drop all not coming from LAN" disabled=yes in-interface-list=!LAN
- add action=accept chain=forward comment="defconf: accept in ipsec policy" disabled=yes ipsec-policy=in,ipsec
- add action=accept chain=forward comment="defconf: accept out ipsec policy" disabled=yes ipsec-policy=out,ipsec
- add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related disabled=yes
- add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked disabled=yes
- add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid disabled=yes
- add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new disabled=yes in-interface-list=WAN
- add action=accept chain=input comment="accept input L2TP" disabled=yes port=1701,500,4500 protocol=udp
- add action=accept chain=input comment="accept input ipsec" disabled=yes protocol=ipsec-esp
- add action=accept chain=forward comment="accept from VPN-remote-workers" disabled=yes src-address-list=remote-workers
- /ip firewall mangle
- add action=change-mss chain=forward in-interface=l2tp-L2TP-worker-01 new-mss=1400 passthrough=yes protocol=tcp tcp-flags=syn tcp-mss=1400-65535
- add action=change-mss chain=forward new-mss=1400 out-interface=l2tp-L2TP-worker-01 passthrough=yes protocol=tcp tcp-flags=syn tcp-mss=1400-65535
- /ip firewall nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
- /ip firewall service-port
- set ftp disabled=yes
- set tftp disabled=yes
- set irc disabled=yes
- set h323 disabled=yes
- set sip disabled=yes
- set pptp disabled=yes
- set udplite disabled=yes
- set dccp disabled=yes
- set sctp disabled=yes
- /ppp secret
- add name=L2TP-worker-01 password=IQ15-t1BgDSGq30Em64Jqn0OcwFIcIkI profile=profile-remote-workers service=l2tp
- /system clock
- set time-zone-name=Europe/Moscow
- /system routerboard settings
- set silent-boot=no
- /tool mac-server
- set allowed-interface-list=LAN
- /tool mac-server mac-winbox
- set allowed-interface-list=LAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement