You are on page 1of 2

/system logging

set 0 action=disk
set 1 action=disk
set 2 action=disk
set 3 action=disk

/interface ethernet
set 0 name=ether1-wan
set 1 name=ether2-lan
set 2 name=ether3-guest
set 3 disabled=yes
set 4 disabled=yes

/ip pool
add name=lan ranges=192.168.1.100-192.168.1.199
add name=guest ranges=192.168.11.100-192.168.11.199

/ip dhcp-server
add address-pool=lan disabled=no interface=ether2-lan name=lan
add address-pool=guest disabled=no interface=ether3-guest name=guest

/ip address
add address=86.105.37.213/20 comment=internet interface=ether1-wan
add address=192.168.1.1/24 comment=lan interface=ether2-lan
add address=192.168.11.1/24 comment=guest interface=ether3-guest

/ip dhcp-client
add comment=wan disabled=no interface=ether1-wan

/ip dhcp-server network


add address=192.168.1.0/24 comment=lan dns-
server=86.105.32.1,86.105.36.194,8.8.8.8,8.8.4.4 gateway=192.168.1.1
add address=192.168.11.0/24 comment=guest dns-
server=86.105.32.1,86.105.36.194,8.8.8.8,8.8.4.4 gateway=192.168.11.1

/ip dns static


add address=192.168.1.1 name=router_lan
add address=192.168.11.1 name=router_guest

/ip firewall filter


add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=established
add chain=input comment="default configuration" connection-state=related
add action=drop chain=input comment="default configuration" in-interface=ether1-wan
add chain=forward comment="default configuration" connection-state=established
add chain=forward comment="default configuration" connection-state=related
add action=drop chain=forward comment="default configuration" connection-
state=invalid

/ip firewall nat


add action=masquerade chain=srcnat comment="default configuration" out-
interface=ether1-wan

/tool graphing interface


add

/tool graphing resource


add
/system logging action
set 1 disk-file-count=20 disk-lines-per-file=1000

You might also like