Code: Select all
# model = 750GL
/interface bridge
add admin-mac=******hidden auto-mac=no comment=defconf name=LAN-Bridge
/interface ethernet
set [ find default-name=ether1 ] name=PTCL
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip firewall layer7-protocol
add name=IDM-Down regexp="get /.*(user-agent: mozilla/4.0|range: bytes=)"
add name=skypenack regexp="[\\\\|\\xd5]"
add comment="Block Bit Torrent" name=layer7-bittorrent-exp regexp="^(\\x13bitt\
orrent protocol|azver\\x01\$|get /scrape\\\?info_hash=get /announce\\\?inf\
o_hash=|get /client/bitcomet/|GET /data\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[\
RP]"
add name=Layer7-youtube regexp="^.+(youtube.com|www.youtube.com|m.youtube.com|\
ytimg.com|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com\
|googlevideo.com|youtu.be).*\$"
/ip pool
add name=default-dhcp ranges=192.168.2.10-192.168.2.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=LAN-Bridge lease-time=1h \
name=dhcp1
/snmp community
set [ find default=yes ] addresses=0.0.0.0/0
/interface bridge port
add bridge=LAN-Bridge comment=defconf interface=ether2
add bridge=LAN-Bridge comment=defconf interface=ether3
add bridge=LAN-Bridge comment=defconf interface=ether4
add bridge=LAN-Bridge comment=defconf interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=LAN-Bridge list=LAN
add comment=defconf interface=PTCL list=WAN
/ip address
add address=192.168.2.1/24 comment=defconf interface=LAN-Bridge network=\
192.168.2.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=PTCL
/ip dhcp-server network
add address=192.168.2.0/24 gateway=192.168.2.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.2.1 name=router.lan
/ip firewall nat
add action=masquerade chain=srcnat out-interface=PTCL
/ip route
add check-gateway=ping distance=1 gateway=192.168.10.1
add check-gateway=ping distance=1 gateway=192.168.10.1
/ip upnp
set allow-disable-external-interface=yes enabled=yes
/ip upnp interfaces
add interface=PTCL type=external
add interface=LAN-Bridge type=internal
/system clock
set time-zone-name=Asia/Karachi
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN