Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [admin@MikroTik] > export compact
- # jan/02/1970 01:27:08 by RouterOS 6.37.1
- #
- # Default setup with some modifications. Doesn't work anymore :(
- /interface bridge
- add admin-mac=XX:XX:XX:XX:XX:XX auto-mac=no comment=LAN name=bridge_lan
- /interface wireless
- set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-eC distance=indoors frequency=auto mode=ap-bridge ssid=\
- "WIFI" wireless-protocol=802.11 wps-mode=disabled
- /interface ethernet
- set [ find default-name=ether1 ] name=e1_wan
- set [ find default-name=ether2 ] name=e2_silver
- set [ find default-name=ether3 ] name=e3_libre
- set [ find default-name=ether4 ] name=e4_berry
- set [ find default-name=ether5 ] name=e5_reserve
- /ip neighbor discovery
- set e1_wan discover=no
- set bridge_lan comment=LAN
- /interface wireless security-profiles
- set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys wpa2-pre-shared-key=keyhere
- /ip pool
- add name=pool_lan ranges=10.0.1.2-10.0.1.5
- add name=pool_wlan ranges=10.0.2.1-10.0.2.7
- /ip dhcp-server
- add address-pool=pool_lan disabled=no interface=bridge_lan name=dhcp_lan
- /interface bridge port
- add bridge=bridge_lan interface=e2_silver
- add bridge=bridge_lan interface=e3_libre
- add bridge=bridge_lan interface=e5_reserve
- add bridge=bridge_lan interface=e4_berry
- /ip address
- add address=10.0.1.0/29 comment=LAN interface=bridge_lan network=10.0.1.0
- /ip dhcp-client
- add comment=defconf dhcp-options=hostname,clientid disabled=no interface=e1_wan
- /ip dhcp-server network
- add address=10.0.1.0/29 comment=LAN gateway=10.0.1.0
- /ip dns
- set allow-remote-requests=yes
- /ip dns static
- add address=192.168.88.1 name=router # Not sure how it ended up here...
- #
- # Rules from the default setup
- /ip firewall filter
- add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
- add action=accept chain=input comment="defconf: accept established,related" connection-state=established,related
- add action=drop chain=input comment="defconf: drop all from WAN" in-interface=e1_wan
- add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
- add action=accept chain=forward comment="defconf: accept established,related" connection-state=established,related
- add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
- add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=\
- new in-interface=e1_wan
- /ip firewall nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=e1_wan
- /system routerboard settings
- set init-delay=0s protected-routerboot=disabled
- /tool mac-server
- set [ find default=yes ] disabled=yes
- add interface=bridge_lan
- /tool mac-server mac-winbox
- set [ find default=yes ] disabled=yes
- add interface=bridge_lan
Add Comment
Please, Sign In to add comment