Scrip para Mikrotik 750gl
Scrip para Mikrotik 750gl
#Creacion Brigge
/interface bridge
add name=bridge-LAN
/interface bridge port
add bridge=bridge-LAN interface=ether2
add bridge=bridge-LAN interface=ether3
#NOMBRE INTERFACE 1
/interface ethernet
set [ find default-name=ether1 ] comment=WAN
#CONFIGURACION IP LAN
#CAMBIAR IP DEL ROUTER MKT
/ip address
add address=10.131.235.57/30 interface=bridge-LAN
#CONFIGURACION RUTAS
#CAMBIAR IP GATEWAY POR LA QUE CORRESPONDE
/ip route
add distance=1 dst-address=10.0.0.0/8 gateway=172.16.1.21
add distance=1 dst-address=10.100.1.0/24 gateway=172.16.1.21
add distance=1 dst-address=10.131.0.0/16 gateway=172.16.1.21
add distance=1 dst-address=10.133.0.0/16 gateway=172.16.1.21
add distance=1 dst-address=192.168.151.0/24 gateway=172.16.1.21
#CAMBIO DE PUERTOS DE SERVICIO
#NO CAMBIAR NADA
/ip service
set telnet port=6013
set ftp disabled=yes
set www port=6015
set ssh port=6012
set api disabled=yes
set winbox port=6014
set api-ssl disabled=yes
#CONFIGURACION HORA
#NO CAMBIAR NADA
/system ntp client
set enabled=yes primary-ntp=10.131.50.5 secondary-ntp=10.133.128.201
/system clock
set time-zone-autodetect=no time-zone-name=America/Guayaquil
#IDENTIFICACION MKT
#NO CAMBIAR NADA
/system identity
set name=RO_COB_TELEFONISTA
#CONFIGURACIPON OVPN-CLIENT
#CAMBIAR EL NOMBRE DE USUARIO Y LA PRIMERA CONTRASEÑA
/interface ovpn-client
add certificate=cert_export_victor_lopez.crt_0 cipher=aes256 connect-to=\
190.12.26.3 name=ovpn-victor_lopez \
password=QeuM5oVx port=7094 user=victor_lopez
###############
#CREAR USUARIO IT SISTEMAS
#NO CAMBIAR NADA
/user
add name=ITsistemas password=ITun1c3c group=full