Professional Documents
Culture Documents
Script El Chido
Script El Chido
# Cleaning environment
/ip address remove [find];
/system leds remove [find];
/interface wireless enable wlan1
# Setting DNS
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=4096KiB \
max-udp-packet-size=512 servers=4.2.2.2,4.2.2.4,8.8.8.8;
# Setting UPnP
/ip upnp interfaces
add disabled=no interface=wlan1 type=external
add disabled=no interface=ether1 type=internal
# Setting PROXY
/ip proxy
set always-from-cache=no cache-administrator=webmaster cache-hit-dscp=4 \
cache-on-disk=yes enabled=yes max-cache-size=10000KiB \
max-client-connections=600 max-fresh-time=2d max-server-connections=600 \
parent-proxy=0.0.0.0 parent-proxy-port=0 port=8080 serialize-connections=\
no src-address=0.0.0.0;
# QUEUE
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=2M \
name=Up packet-mark="" parent=wlan1 priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=7M \
name=Down packet-mark="" parent=ether1 priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=5M \
name=IPTV-VoIP packet-mark="" parent=Down priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=2M max-
limit=\
2M name=WEB packet-mark="" parent=Down priority=3
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=512k \
max-limit=2M name=Up-IPTV-VoIP packet-mark="" parent=Up priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
max-limit=2M name=Up-WEB packet-mark="" parent=Up priority=3
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=3M max-
limit=\
5M name=IPTV packet-mark=PAQUETES-IPTV parent=IPTV-VoIP priority=2
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=512k \
max-limit=1M name=VoIP packet-mark=PAQUETES_VOIP parent=IPTV-VoIP priority=1 \
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=\
32k name=ICMP packet-mark=icmp parent=WEB priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=DNS packet-mark=dns parent=WEB priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=HTTP packet-mark=http parent=WEB priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=HTTPS packet-mark=https parent=WEB priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=WINBOX packet-mark=winbox parent=Down priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=OTHER packet-mark=other parent=WEB priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=512k \
max-limit=1M name=Up-VoIP packet-mark=PAQUETES_VOIP parent=Up-IPTV-VoIP
priority=\
1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=Up-IPTV packet-mark=PAQUETES-IPTV parent=Up-IPTV-VoIP priority=2 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
max-limit=2M name=Up-HTTP packet-mark=http parent=Up-WEB priority=3
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=Up-DNS packet-mark=dns parent=Up-WEB priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=256k \
max-limit=2M name=Up-HTTPS packet-mark=https parent=Up-WEB priority=3 queue=\
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=\
32k name=Up-ICMP packet-mark=icmp parent=Up-WEB priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=Up-OTHER packet-mark=other parent=Up-WEB priority=6 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=0 \
name=Up.WINBOX packet-mark=winbox parent=Up priority=6 queue=default
# Setting USUARIOS
/user group
add name=soporte policy="read,winbox,!local,!telnet,!ssh,!ftp,!reboot,!write,!\
policy,!test,!password,!web,!sniff,!sensitive,!api" skin=default;
/user
add
address=10.56.0.20/32,10.56.0.10/32,192.168.200.150/32,172.20.2.0/24,172.17.1.0/24
comment="Usuario Administrativo de Star network" \
disabled=no group=full name=star-manager;
add address=192.168.200.200/32 disabled=no group=soporte name=star-soporte;
/user aaa
set accounting=yes default-group=read interim-update=0s use-radius=no;
/user set star-manager password="1A2S3D4F5G";
/user set star-soporte password="50p0rt35TAR";
# Setting WIRELESS
/interface wireless security-profiles
set default authentication-types="" eap-methods=passthrough group-ciphers="" \
group-key-update=5m interim-update=0s management-protection=disabled \
management-protection-key="" mode=none name=default \
radius-eap-accounting=no radius-mac-accounting=no \
radius-mac-authentication=no radius-mac-caching=disabled \
radius-mac-format=XX:XX:XX:XX:XX:XX radius-mac-mode=as-username \
static-algo-0=none static-algo-1=none static-algo-2=none static-algo-3=\
none static-key-0="" static-key-1="" static-key-2="" static-key-3="" \
static-sta-private-algo=none static-sta-private-key="" \
static-transmit-key=key-0 supplicant-identity=MikroTik tls-certificate=\
none tls-mode=no-certificates unicast-ciphers="" wpa-pre-shared-key="" \
wpa2-pre-shared-key=""
/interface wireless
set [ find default-name=wlan1 ] band=5ghz-onlyn channel-width=20/40mhz-Ce
country=argentina ht-basic-mcs="mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mc\
s-6,mcs-7,mcs-8,mcs-9,mcs-10,mcs-11,mcs-12,mcs-13,mcs-14,mcs-15,mcs-16,mcs-
17,mcs-18,mcs-19,mcs-20,mcs-21,mcs-22,mcs-23" nv2-preshared-key=\
1a2s3d4f5g nv2-security=enabled rate-set=configured wireless-protocol=nv2
# Setting LEDS
/system leds
add disabled=no interface=ether1 leds=user-led type=interface-activity;
add disabled=no interface=wlan1 leds=led1,led2,led3,led4,led5 type=wireless-signal-
strength;
# Setting LOG
/system logging
add action=memory disabled=no prefix="" topics=wireless
add action=memory disabled=no prefix="" topics=interface
############################################################
# #
# Procesos finales #
# #
############################################################
#
:log info "Auto configuration ended.";
:put "";
:put "Auto configuration ended. Please check the system log.";
:put "";