Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # may/28/2020 08:23:34 by RouterOS 6.46.6
- #
- # model = RouterBOARD 3011UiAS
- /interface bridge
- add admin-mac=******************* arp=proxy-arp auto-mac=no comment=defconf name=\
- bridge
- add name=bridge2-mts
- /interface ethernet
- set [ find default-name=ether1 ] speed=100Mbps
- set [ find default-name=ether2 ] name=ether2-master speed=100Mbps
- set [ find default-name=ether3 ] speed=100Mbps
- set [ find default-name=ether4 ] speed=100Mbps
- set [ find default-name=ether5 ] speed=100Mbps
- set [ find default-name=ether6 ] name=ether6-master speed=100Mbps
- set [ find default-name=ether7 ] speed=100Mbps
- set [ find default-name=ether8 ] speed=100Mbps
- set [ find default-name=ether9 ] speed=100Mbps
- set [ find default-name=ether10 ] speed=100Mbps
- set [ find default-name=sfp1 ] advertise=\
- 10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
- /interface list
- add comment=defconf name=WAN
- add comment=defconf name=LAN
- add exclude=dynamic name=discover
- add name=mactel
- add name=mac-winbox
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- /ip pool
- add name=dhcp ranges=10.225.1.10-10.225.1.254
- add name=l2tp ranges=10.225.3.2-10.225.3.254
- /ip dhcp-server
- add address-pool=dhcp disabled=no interface=bridge name=defconf
- /ppp profile
- add bridge=bridge interface-list=LAN local-address=dhcp name=l2tp \
- remote-address=l2tp use-encryption=yes
- add bridge=bridge local-address=dhcp name=ovpn remote-address=l2tp \
- use-encryption=yes
- /interface l2tp-client
- add allow=mschap1,mschap2 connect-to=айпи 2-го прова disabled=no ipsec-secret=\
- *********** keepalive-timeout=disabled name=l2tp-***** password=******** \
- profile=l2tp use-ipsec=yes user=tmn-l2tp
- /user group
- set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,passw\
- ord,web,sniff,sensitive,api,romon,dude,tikapp"
- /interface bridge port
- add bridge=bridge comment=defconf interface=ether2-master
- add bridge=bridge comment=defconf interface=ether6-master
- add bridge=bridge comment=defconf hw=no interface=sfp1
- add bridge=bridge hw=no interface=ether1
- add bridge=bridge2-mts hw=no interface=ether5
- add bridge=bridge interface=ether3
- add bridge=bridge interface=ether4
- add bridge=bridge interface=ether7
- add bridge=bridge interface=ether8
- add bridge=bridge interface=ether9
- add bridge=bridge interface=ether10
- /ip neighbor discovery-settings
- set discover-interface-list=discover
- /interface l2tp-server server
- set authentication=mschap1,mschap2 default-profile=l2tp enabled=yes \
- ipsec-secret=****************** use-ipsec=required
- /interface list member
- add comment=defconf interface=bridge list=LAN
- add interface=bridge2-mts list=WAN
- add interface=ether2-master list=discover
- add interface=ether3 list=discover
- add interface=ether4 list=discover
- add interface=ether5 list=discover
- add interface=sfp1 list=discover
- add interface=ether6-master list=discover
- add interface=ether7 list=discover
- add interface=ether8 list=discover
- add interface=ether9 list=discover
- add interface=ether10 list=discover
- add interface=bridge list=discover
- add list=discover
- add interface=bridge2-mts list=discover
- add list=discover
- add interface=l2tp-***** list=discover
- add interface=ether1 list=mactel
- add interface=ether2-master list=mactel
- add interface=ether6-master list=mactel
- add interface=ether1 list=mac-winbox
- add interface=sfp1 list=mactel
- add interface=ether2-master list=mac-winbox
- add interface=ether6-master list=mac-winbox
- add interface=sfp1 list=mac-winbox
- /interface ovpn-server server
- set auth=sha1 certificate=tmn-ovpn cipher=blowfish128,aes128,aes192,aes256 \
- default-profile=l2tp enabled=yes port=*******
- /ip accounting
- set account-local-traffic=yes enabled=yes
- /ip address
- add address=10.225.1.1/24 comment=defconf interface=ether1 network=10.225.1.0
- add address=белый айпи прова ТМН/24 interface=bridge2-mts network=сеть прова ТМН
- /ip dhcp-server lease
- /ip dhcp-server network
- add address=10.225.1.0/24 comment=defconf dns-server=10.225.1.17,10.225.1.1 \
- gateway=10.225.1.1 netmask=24
- /ip dns
- set allow-remote-requests=yes servers=******************
- /ip dns static
- add address=10.225.1.1 name=router.lan
- /ip firewall filter
- add action=accept chain=forward comment="accept ykt to tmn" dst-address=\
- 10.225.0.0/16 src-address=10.221.0.0/16
- add action=accept chain=forward dst-address=10.225.0.0/16 src-address=\
- 10.10.5.0/24
- 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
- add action=accept chain=input protocol=icmp
- add action=accept chain=input connection-state=established
- add action=accept chain=input connection-state=related
- # lte1 not ready
- add action=drop chain=input in-interface=*D
- /ip firewall nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=\
- out,none out-interface-list=WAN
- add action=masquerade chain=srcnat comment="srcnat L2TP" disabled=yes \
- ipsec-policy=out,none out-interface=l2tp-*****
- # lte1 not ready
- add action=masquerade chain=srcnat out-interface=*D
- /ip route
- add check-gateway=ping distance=1 gateway=bridge2-mts pref-src=Айпи прова ТМН
- add check-gateway=ping distance=1 dst-address=10.221.0.0/16 gateway=l2tp-*****
- add disabled=yes distance=1 dst-address=10.225.1.0/24 gateway=*F
- /ip service
- set telnet disabled=yes
- set ftp disabled=yes
- set www address=*****************
- set ssh address=******************
- set api address=***************
- set winbox address=*********************
- set api-ssl address=************
- /ppp secret
- /system clock
- set time-zone-name=Asia/Yekaterinburg
- /tool mac-server
- set allowed-interface-list=mactel
- /tool mac-server mac-winbox
- set allowed-interface-list=mac-winbox
Add Comment
Please, Sign In to add comment