Code: Select all
#
#
# model = RB5009UG+S+
#
/interface bridge
add name=LAN_BRIDGE
/interface ethernet
set [ find default-name=ether1 ] name=eth1-WAN
set [ find default-name=ether2 ] name=eth2-WAN2
/interface pppoe-client
add add-default-route=yes interface=eth2-WAN2 max-mtu=1500 name=pppoe-out1 \
user=IIS93-082023-86890
/interface bonding
add name=bonding1 slaves=ether5,ether6
/interface list
add name=LAN
add name=WAN
/ip pool
add name=dhcp_pool ranges=11.120.0.1-11.120.10.0,11.120.10.2-10.10.255.254
add name=pppoe_pool ranges=120.84.50.0/24
/interface bridge port
add bridge=LAN_BRIDGE interface=LAN
/interface detect-internet
set detect-interface-list=all
/interface list member
add interface=ether7 list=LAN
add interface=ether8 list=LAN
add interface=bonding1 list=LAN
add interface=eth1-WAN list=WAN
add interface=eth2-WAN2 list=WAN
add address=11.120.10.1/16 interface=LAN_BRIDGE network=11.120.0.0
/ip dhcp-server network
add address=11.120.0.0/16 dns-server=8.8.8.8,1.1.1.1 gateway=11.120.10.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip firewall filter
add action=accept chain=input dst-port=8291 protocol=tcp
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
/ip service
set ftp disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ppp secret
/system clock
set time-zone-name=
/system identity
set name=
/system note
set show-at-login=no
/tool bandwidth-server
set authenticate=no