mikrotik-rb-cliente.rsc
Última modificação por JOSE RONALDO DOS ARAUJO em 21/06/2024
# jan/01/1970 21:20:25 by RouterOS 6.49.8
# software id = 35BK-S8XB
#
# model = RB750Gr3
# serial number = HF8092RF4HZ
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether1 ] comment=LINK_INTERNET
set [ find default-name=ether2 ] comment=LAN
set [ find default-name=ether3 ] comment=LAN
set [ find default-name=ether4 ] comment=LAN
set [ find default-name=ether5 ] comment=LAN
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1 \
password=123 user=router_reset
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-server option
add code=43 name=UNIFIs value=0x01048F89DC72
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=dhcp_pool0 ranges=192.168.88.51-192.168.88.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=bridge1 name=dhcp1
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/ip address
add address=192.168.88.1/24 interface=ether2 network=192.168.88.0
/ip dhcp-server network
add address=192.168.88.0/24 dhcp-option=UNIFIs dns-server=\
143.137.220.220,8.8.8.8 gateway=192.168.88.1
/ip dns
set servers=8.8.8.8
/ip firewall filter
add action=accept chain=input comment=\
"ACEITA CONEXOES ESTABELECIDAS E RELACIONADAS" connection-state=\
established,related
add action=reject chain=input dst-port=21,22,23,53 protocol=tcp reject-with=\
icmp-network-unreachable src-address=!143.137.220.0/22
add action=reject chain=input dst-port=53 protocol=udp reject-with=\
icmp-network-unreachable
/ip firewall nat
# pppoe-out1 not ready
add action=masquerade chain=srcnat out-interface=pppoe-out1 src-address=\
192.168.88.0/24
/system clock
set time-zone-name=America/Fortaleza
/system identity
set name=RB-FOX-CLIENTE
# software id = 35BK-S8XB
#
# model = RB750Gr3
# serial number = HF8092RF4HZ
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether1 ] comment=LINK_INTERNET
set [ find default-name=ether2 ] comment=LAN
set [ find default-name=ether3 ] comment=LAN
set [ find default-name=ether4 ] comment=LAN
set [ find default-name=ether5 ] comment=LAN
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1 \
password=123 user=router_reset
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-server option
add code=43 name=UNIFIs value=0x01048F89DC72
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=dhcp_pool0 ranges=192.168.88.51-192.168.88.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=bridge1 name=dhcp1
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/ip address
add address=192.168.88.1/24 interface=ether2 network=192.168.88.0
/ip dhcp-server network
add address=192.168.88.0/24 dhcp-option=UNIFIs dns-server=\
143.137.220.220,8.8.8.8 gateway=192.168.88.1
/ip dns
set servers=8.8.8.8
/ip firewall filter
add action=accept chain=input comment=\
"ACEITA CONEXOES ESTABELECIDAS E RELACIONADAS" connection-state=\
established,related
add action=reject chain=input dst-port=21,22,23,53 protocol=tcp reject-with=\
icmp-network-unreachable src-address=!143.137.220.0/22
add action=reject chain=input dst-port=53 protocol=udp reject-with=\
icmp-network-unreachable
/ip firewall nat
# pppoe-out1 not ready
add action=masquerade chain=srcnat out-interface=pppoe-out1 src-address=\
192.168.88.0/24
/system clock
set time-zone-name=America/Fortaleza
/system identity
set name=RB-FOX-CLIENTE