Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # may/06/2014 08:34:55 by RouterOS 6.12
- # software id = 4QHQ-7TG9
- #
- /interface bridge
- add l2mtu=1598 name="Bridge LAN"
- /interface ethernet
- set [ find default-name=ether1 ] comment="DHCP Belgacom" name=\
- "ether 1 - Belgacom"
- set [ find default-name=ether2 ] comment="DHCP Voo" name="ether 2 - Voo"
- set [ find default-name=ether3 ] comment="LAN ports" name="ether3 - LAN"
- set [ find default-name=ether4 ] name="ether4 - LAN"
- set [ find default-name=ether5 ] name="ether5 - LAN"
- /ip neighbor discovery
- set "ether 1 - Belgacom" comment="DHCP Belgacom"
- set "ether 2 - Voo" comment="DHCP Voo"
- set "ether3 - LAN" comment="LAN ports"
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- /ip hotspot user profile
- set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
- mac-cookie-timeout=3d
- /ip pool
- add name="DHCP Lan" ranges=10.10.10.100-10.10.10.254
- /ip dhcp-server
- add address-pool="DHCP Lan" disabled=no interface="Bridge LAN" lease-time=3h \
- name=LAN
- /interface bridge port
- add bridge="Bridge LAN" interface="ether3 - LAN"
- add bridge="Bridge LAN" interface="ether4 - LAN"
- add bridge="Bridge LAN" interface="ether5 - LAN"
- /ip address
- add address=10.10.10.1/24 interface="Bridge LAN" network=10.10.10.0
- /ip dhcp-client
- add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
- interface="ether 1 - Belgacom" use-peer-dns=no use-peer-ntp=no
- add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
- interface="ether 2 - Voo" use-peer-dns=no use-peer-ntp=no
- /ip dhcp-server network
- add address=10.10.10.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.10.10.1
- /ip dns
- set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
- /ip firewall mangle
- add action=mark-connection chain=input in-interface="ether 1 - Belgacom" \
- new-connection-mark=mangle_BGC
- add action=mark-connection chain=input in-interface="ether 2 - Voo" \
- new-connection-mark=mangle_VOO
- add action=mark-routing chain=output connection-mark=mangle_BGC \
- new-routing-mark=routing_BGC
- add action=mark-routing chain=output connection-mark=mangle_VOO \
- new-routing-mark=routing_VOO
- add action=mark-connection chain=prerouting connection-mark=no-mark \
- dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
- mangle_BGC per-connection-classifier=src-address:4/0
- add action=mark-connection chain=prerouting connection-mark=no-mark \
- dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
- mangle_VOO per-connection-classifier=src-address:4/3
- add action=mark-connection chain=prerouting connection-mark=no-mark \
- dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
- mangle_VOO per-connection-classifier=src-address:4/2
- add action=mark-connection chain=prerouting connection-mark=no-mark \
- dst-address-type=!local in-interface="Bridge LAN" new-connection-mark=\
- mangle_VOO per-connection-classifier=src-address:4/2
- /ip firewall nat
- add action=masquerade chain=srcnat out-interface="ether 1 - Belgacom"
- add action=masquerade chain=srcnat out-interface="ether 2 - Voo"
- /ip route
- add check-gateway=ping distance=3 gateway="ether 1 - Belgacom" routing-mark=\
- routing_BGC
- add check-gateway=ping distance=4 gateway="ether 2 - Voo" routing-mark=\
- routing_VOO
- add check-gateway=ping distance=1 gateway="ether 1 - Belgacom"
- add check-gateway=ping distance=2 gateway="ether 2 - Voo"
- /ip upnp
- set allow-disable-external-interface=no
- /system identity
- set name=Kirby
- /system lcd
- set contrast=0 enabled=no port=parallel type=24x4
- /system lcd page
- set time disabled=yes display-time=5s
- set resources disabled=yes display-time=5s
- set uptime disabled=yes display-time=5s
- set packets disabled=yes display-time=5s
- set bits disabled=yes display-time=5s
- set version disabled=yes display-time=5s
- set identity disabled=yes display-time=5s
- set "Bridge LAN" disabled=yes display-time=5s
- set "ether 1 - Belgacom" disabled=yes display-time=5s
- set "ether 2 - Voo" disabled=yes display-time=5s
- set "ether3 - LAN" disabled=yes display-time=5s
- set "ether4 - LAN" disabled=yes display-time=5s
- set "ether5 - LAN" disabled=yes display-time=5s
- /system ntp client
- set enabled=yes primary-ntp=195.130.132.18 secondary-ntp=195.13.23.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement