Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # apr/05/2021 10:58:14 by RouterOS 6.48.1
- # software id = CTX1-NPFV
- #
- # model = RouterBOARD 3011UiAS
- # serial number = 780E072CFBC2
- /interface bridge add name=bridge-LAN
- /interface ethernet set [ find default-name=ether1 ] comment="to WAN Saima"
- /interface ethernet set [ find default-name=ether2 ] comment="to WAN Aknet"
- /interface list add comment="For Internet" name=WAN
- /interface list add comment="For Local Area" name=LAN
- /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik
- /ip pool add name=dhcp_pool3 ranges=192.168.10.50-192.168.10.200
- /ip pool add name=dhcp_pool4 ranges=192.168.8.2-192.168.11.254
- /ip pool add name=dhcp_pool2 next-pool=dhcp_pool3 ranges=192.168.9.1-192.168.9.250
- /ip pool add name=dhcp_pool1 next-pool=dhcp_pool2 ranges=192.168.8.20-192.168.8.250
- /ip dhcp-server add address-pool=dhcp_pool1 disabled=no interface=bridge-LAN lease-time=1h name=dhcp1
- /system logging action set 0 memory-lines=1200
- /interface bridge port add bridge=bridge-LAN interface=ether3 multicast-router=disabled
- /interface bridge port add bridge=bridge-LAN interface=ether10 multicast-router=disabled
- /interface bridge port add bridge=bridge-LAN interface=ether4 multicast-router=disabled
- /interface bridge port add bridge=bridge-LAN interface=ether5 multicast-router=disabled
- /interface bridge port add bridge=bridge-LAN interface=ether6 multicast-router=disabled
- /interface bridge port add bridge=bridge-LAN interface=ether7 multicast-router=disabled
- /interface bridge port add bridge=bridge-LAN interface=ether8 multicast-router=disabled
- /interface bridge port add bridge=bridge-LAN interface=ether9 multicast-router=disabled
- /ip neighbor discovery-settings set discover-interface-list=LAN
- /interface list member add comment=WAN-Saima interface=ether1 list=WAN
- /interface list member add comment=WAN-Aknet interface=ether2 list=WAN
- /interface list member add comment=LAN1 interface=ether3 list=LAN
- /interface list member add comment=LAN2 interface=ether4 list=LAN
- /interface list member add comment=LAN3 interface=ether5 list=LAN
- /interface list member add comment=LAN4 interface=ether6 list=LAN
- /interface list member add comment=LAN5 interface=ether7 list=LAN
- /interface list member add comment=LAN6 interface=ether8 list=LAN
- /interface list member add comment=LAN7 interface=ether9 list=LAN
- /interface list member add comment=LAN8 interface=ether10 list=LAN
- /ip address add address=217.29.xxx.xxx/30 comment=Saima interface=ether1 network=217.29.xxx.xxx
- /ip address add address=192.168.8.1/22 comment=LAN interface=bridge-LAN network=192.168.8.0
- /ip address add address=212.112.xxx.xxx/27 comment=Aknet disabled=yes interface=ether2 network=212.112.xxx.xxx
- /ip dhcp-server network add address=192.168.8.0/22 gateway=192.168.8.1
- /ip dns set servers=192.168.10.255,192.168.10.254,8.8.8.8
- /ip firewall address-list add address=0.0.0.0/8 comment="\"This\" Network" list=BOGONS
- /ip firewall address-list add address=10.0.0.0/8 comment="Private-Use Networks" list=BOGONS
- /ip firewall address-list add address=100.64.0.0/10 comment="Shared Address Space. RFC 6598" list=BOGONS
- /ip firewall address-list add address=127.0.0.0/8 comment=Loopback list=BOGONS
- /ip firewall address-list add address=169.254.0.0/16 comment="Link Local" list=BOGONS
- /ip firewall address-list add address=172.16.0.0/12 comment="Private-Use Networks" list=BOGONS
- /ip firewall address-list add address=192.0.0.0/24 comment="IETF Protocol Assignments" list=BOGONS
- /ip firewall address-list add address=192.0.2.0/24 comment=TEST-NET-1 list=BOGONS
- /ip firewall address-list add address=192.168.0.0/16 comment="Private-Use Networks" list=BOGONS
- /ip firewall address-list add address=198.18.0.0/15 comment="Network Interconnect Device Benchmark Testing" list=BOGONS
- /ip firewall address-list add address=198.51.100.0/24 comment=TEST-NET-2 list=BOGONS
- /ip firewall address-list add address=203.0.113.0/24 comment=TEST-NET-3 list=BOGONS
- /ip firewall address-list add address=224.0.0.0/4 comment=Multicast list=BOGONS
- /ip firewall address-list add address=192.88.99.0/24 comment="6to4 Relay Anycast" list=BOGONS
- /ip firewall address-list add address=240.0.0.0/4 comment="Reserved for Future Use" list=BOGONS
- /ip firewall address-list add address=255.255.255.255 comment="Limited Broadcast" list=BOGONS
- /ip firewall filter add action=accept chain=input comment="Related Established Untracked Allow" connection-state=established,related,untracked
- /ip firewall filter add action=accept chain=input comment="ICMP from ALL" protocol=icmp
- /ip firewall filter add action=drop chain=input comment="All other WAN Drop" in-interface-list=WAN log=yes
- /ip firewall filter add action=accept chain=forward comment="Established, Related, Untracked allow" connection-state=established,related,untracked
- /ip firewall filter add action=drop chain=forward comment="Invalid drop" connection-state=invalid
- /ip firewall filter add action=drop chain=forward comment="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 out-interface=ether1
- /ip firewall nat add action=masquerade chain=srcnat disabled=yes out-interface=ether2
- /ip route add comment=Saima distance=1 gateway=217.29.xxx.xxx
- /ip route add comment=Aknet disabled=yes distance=2 gateway=212.112.xxx.xxx
- /ip service set telnet disabled=yes
- /ip service set ftp disabled=yes
- /ip service set www address=192.168.8.0/22
- /ip service set ssh disabled=yes
- /ip service set api disabled=yes
- /ip service set winbox address=192.168.8.0/22
- /ip service set api-ssl disabled=yes
- /system clock set time-zone-name=Asia/Bishkek
- /tool mac-server set allowed-interface-list=LAN
- /tool mac-server mac-winbox set allowed-interface-list=LAN
Add Comment
Please, Sign In to add comment