Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # jan/11/2013 07:52:20 by RouterOS 5.22
- # software id = LACC-MZG3
- #
- # Name interfaces
- # ether1-6 is LAN
- # ether7 is connected to LAN port of KPN box
- # ether8 is SIP, connected to WAN port of KPN box
- # ether9 is IPTV (VLAN 4 untagged)
- # ether10 is WAN port
- /interface ethernet
- set 0 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=yes full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:64 master-port=none mtu=1500 name=sfp1-gateway speed=100Mbps
- set 1 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:65 master-port=none mtu=1500 name=ether1-nas speed=1Gbps
- set 2 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:66 master-port=ether1-nas mtu=1500 name=ether2 speed=100Mbps
- set 3 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:67 master-port=ether1-nas mtu=1500 name=ether3 speed=1Gbps
- set 4 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:68 master-port=ether1-nas mtu=1500 name=ether4 speed=100Mbps
- set 5 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:69 master-port=ether1-nas mtu=1500 name=ether5 speed=1Gbps
- set 6 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:6A master-port=none mtu=1500 name=ether6 speed=100Mbps
- set 7 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:6B master-port=none mtu=1500 name=ether7-kpnint speed=100Mbps
- set 8 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:6C master-port=none mtu=1500 name=ether8-sip speed=100Mbps
- set 9 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:6D master-port=none mtu=1500 name=ether9-iptv speed=100Mbps
- set 10 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited disabled=no full-duplex=yes l2mtu=1598 mac-address=D4:CA:6D:31:B3:6E master-port=none mtu=1500 name=ether10-gw speed=100Mbps
- # bridges for LAN, IPTV, SIP and guest (W)LAN
- # Important: MAC of bridge-vlan7-sip can NOT be the cloned MAC of KPN box! The others can (and should).
- /interface bridge
- add admin-mac=50:7E:5D:XX:XX:XX ageing-time=5m arp=enabled auto-mac=yes disabled=no forward-delay=15s l2mtu=1598 max-message-age=20s mtu=1500 name=bridge-local priority=0x8000 protocol-mode=rstp transmit-hold-count=6
- add admin-mac=50:7E:5D:XX:XX:XX ageing-time=5m arp=enabled auto-mac=no disabled=no forward-delay=15s l2mtu=1594 max-message-age=20s mtu=1500 name=bridge-vlan4-iptv priority=0x8000 protocol-mode=none transmit-hold-count=6
- add admin-mac=50:7E:5D:YY:YY:YY ageing-time=5m arp=enabled auto-mac=no disabled=no forward-delay=15s l2mtu=1594 max-message-age=20s mtu=1500 name=bridge-vlan7-sip priority=0x8000 protocol-mode=none transmit-hold-count=6
- add admin-mac=00:00:00:00:00:00 ageing-time=5m arp=enabled auto-mac=yes disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s mtu=1500 name=bridge-guest priority=0x8000 protocol-mode=none transmit-hold-count=6
- /interface bridge port
- add bridge=bridge-local disabled=no edge=auto external-fdb=auto horizon=none interface=ether1-nas path-cost=10 point-to-point=auto priority=0x80
- add bridge=bridge-local disabled=no edge=auto external-fdb=auto horizon=none interface=ether6 path-cost=10 point-to-point=auto priority=0x80
- add bridge=bridge-local disabled=no edge=auto external-fdb=auto horizon=none interface=wlan path-cost=10 point-to-point=auto priority=0x80
- add bridge=bridge-vlan4-iptv disabled=no edge=auto external-fdb=auto horizon=none interface=ether10.4-iptv path-cost=10 point-to-point=auto priority=0x80
- add bridge=bridge-vlan4-iptv disabled=no edge=auto external-fdb=auto horizon=none interface=ether9-iptv path-cost=10 point-to-point=auto priority=0x80
- add bridge=bridge-vlan7-sip disabled=no edge=auto external-fdb=auto horizon=none interface=ether10.7-sip path-cost=10 point-to-point=auto priority=0x80
- add bridge=bridge-vlan7-sip disabled=no edge=auto external-fdb=auto horizon=none interface=ether8.7-sip path-cost=10 point-to-point=auto priority=0x80
- add bridge=bridge-guest disabled=no edge=auto external-fdb=auto horizon=none interface=wlan-guest path-cost=10 point-to-point=auto priority=0x80
- # VLANs on ether10 (wan) and ether8 for SIP
- /interface vlan
- add arp=enabled disabled=no interface=ether10-gw l2mtu=1594 mtu=1500 name=ether10.4-iptv use-service-tag=no vlan-id=4
- add arp=enabled disabled=no interface=ether8-sip l2mtu=1594 mtu=1500 name=ether8.7-sip use-service-tag=no vlan-id=7
- add arp=enabled disabled=no interface=ether10-gw l2mtu=1594 mtu=1500 name=ether10.6-inet use-service-tag=no vlan-id=6
- add arp=enabled disabled=no interface=ether10-gw l2mtu=1594 mtu=1500 name=ether10.7-sip use-service-tag=no vlan-id=7
- # KPN PPPoE client
- /ppp profile
- set 0 change-tcp-mss=yes name=default only-one=default use-compression=default use-encryption=default use-mpls=default use-vj-compression=default
- set 1 change-tcp-mss=yes name=default-encryption only-one=default use-compression=yes use-encryption=yes use-mpls=default use-vj-compression=default
- /interface pppoe-client
- add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 dial-on-demand=no disabled=no interface=ether10.6-inet max-mru=1480 max-mtu=1480 mrru=disabled name=pppoe-kpn password=kpn profile=default service-name="" \
- use-peer-dns=no user=50-7E-5D-XX:XX:XX@direct-adsl
- # Default WLAN config, WPA2
- /interface wireless security-profiles
- set [ find default=yes ] authentication-types=wpa2-psk eap-methods=passthrough group-ciphers=aes-ccm group-key-update=5m interim-update=0s management-protection=disabled management-protection-key="" mode=dynamic-keys name=\
- default radius-eap-accounting=no radius-mac-accounting=no radius-mac-authentication=no radius-mac-caching=disabled radius-mac-format=XX:XX:XX:XX:XX:XX radius-mac-mode=as-username static-algo-0=none static-algo-1=none \
- static-algo-2=none static-algo-3=none static-key-0="" static-key-1="" static-key-2="" static-key-3="" static-sta-private-algo=none static-sta-private-key="" static-transmit-key=key-0 supplicant-identity=MikroTik \
- tls-certificate=none tls-mode=no-certificates unicast-ciphers=aes-ccm wpa-pre-shared-key=XXXXX wpa2-pre-shared-key=XXXXX
- add authentication-types="" eap-methods=passthrough group-ciphers=aes-ccm group-key-update=5m interim-update=0s management-protection=disabled management-protection-key="" mode=none name=wlan-guest radius-eap-accounting=no \
- radius-mac-accounting=no radius-mac-authentication=no radius-mac-caching=disabled radius-mac-format=XX:XX:XX:XX:XX:XX radius-mac-mode=as-username static-algo-0=none static-algo-1=none static-algo-2=none static-algo-3=\
- none static-key-0="" static-key-1="" static-key-2="" static-key-3="" static-sta-private-algo=none static-sta-private-key="" static-transmit-key=key-0 supplicant-identity=MikroTik tls-certificate=none tls-mode=\
- no-certificates unicast-ciphers=aes-ccm wpa-pre-shared-key="" wpa2-pre-shared-key=""
- # Protected WLAN and unprotected guest network
- /interface wireless
- set 0 adaptive-noise-immunity=none allow-sharedkey=no antenna-gain=0 area="" arp=enabled band=2ghz-b/g/n basic-rates-a/g=6Mbps basic-rates-b=1Mbps bridge-mode=enabled channel-width=20/40mhz-ht-above compression=no country=\
- netherlands default-ap-tx-limit=0 default-authentication=yes default-client-tx-limit=0 default-forwarding=yes dfs-mode=none disable-running-check=no disabled=no disconnect-timeout=3s distance=indoors frame-lifetime=0 \
- frequency=2412 frequency-mode=manual-txpower frequency-offset=0 hide-ssid=no ht-ampdu-priorities=0 ht-amsdu-limit=8192 ht-amsdu-threshold=8192 ht-basic-mcs=mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7 \
- ht-guard-interval=any ht-rxchains=0,1 ht-supported-mcs=mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7,mcs-8,mcs-9,mcs-10,mcs-11,mcs-12,mcs-13,mcs-14,mcs-15,mcs-16,mcs-17,mcs-18,mcs-19,mcs-20,mcs-21,mcs-22,mcs-23 \
- ht-txchains=0,1 hw-fragmentation-threshold=disabled hw-protection-mode=none hw-protection-threshold=0 hw-retries=7 l2mtu=2290 mac-address=D4:CA:6D:31:B3:6F max-station-count=2007 mode=ap-bridge mtu=1500 \
- multicast-helper=default name=wlan noise-floor-threshold=default nv2-cell-radius=30 nv2-noise-floor-offset=default nv2-preshared-key="" nv2-qos=default nv2-queue-count=2 nv2-security=disabled on-fail-retry-time=100ms \
- periodic-calibration=default periodic-calibration-interval=60 preamble-mode=both proprietary-extensions=post-2.9.25 radio-name=D4CA6D31B36F rate-selection=advanced rate-set=default scan-list=default security-profile=\
- default ssid=Geusmans station-bridge-clone-mac=00:00:00:00:00:00 supported-rates-a/g=6Mbps,9Mbps,12Mbps,18Mbps,24Mbps,36Mbps,48Mbps,54Mbps supported-rates-b=1Mbps,2Mbps,5.5Mbps,11Mbps tdma-period-size=2 tx-power=15 \
- tx-power-mode=card-rates update-stats-interval=disabled wds-cost-range=50-150 wds-default-bridge=none wds-default-cost=100 wds-ignore-ssid=no wds-mode=disabled wireless-protocol=802.11 wmm-support=disabled
- add area="" arp=enabled bridge-mode=enabled default-ap-tx-limit=0 default-authentication=yes default-client-tx-limit=0 default-forwarding=yes disable-running-check=no disabled=no hide-ssid=no l2mtu=2290 mac-address=\
- D6:CA:6D:31:B3:6F master-interface=wlan max-station-count=2007 mtu=1500 multicast-helper=default name=wlan-guest proprietary-extensions=post-2.9.25 security-profile=wlan-guest ssid=Geusmans-gast update-stats-interval=\
- disabled wds-cost-range=50-150 wds-default-bridge=none wds-default-cost=100 wds-ignore-ssid=no wds-mode=disabled wmm-support=disabled
- # IP pools and DHCP server for both LANs
- /ip pool
- add name=pool-dhcp-lan ranges=192.168.88.10-192.168.88.254
- add name=pool-dhcp-guest ranges=192.168.99.10-192.168.99.254
- /ip dhcp-server
- add address-pool=pool-dhcp-lan authoritative=yes bootp-support=static disabled=no interface=bridge-local lease-time=3d name=dhcp-lan
- add address-pool=pool-dhcp-guest authoritative=after-2sec-delay bootp-support=static disabled=no interface=bridge-guest lease-time=1d name=dhcp-guest
- # Router IP's for LANs
- /ip address
- add address=192.168.88.1/24 disabled=no interface=wlan network=192.168.88.0
- add address=192.168.99.1/24 disabled=no interface=wlan-guest network=192.168.99.0
- /ip dhcp-server network
- add address=192.168.88.0/24 dhcp-option="" dns-server=192.168.88.1 gateway=192.168.88.1 ntp-server="" wins-server=""
- add address=192.168.99.0/24 dhcp-option="" dns-server=192.168.99.1 gateway=192.168.99.1 ntp-server="" wins-server=""
- # DHCP client on ether7, which is connected to a LAN port of the KPN box - allows access to its config page
- /ip dhcp-client
- add add-default-route=no disabled=no interface=ether7-kpnint use-peer-dns=no use-peer-ntp=no
- # Google DNS
- /ip dns
- set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=4096 servers=8.8.8.8,8.8.4.4
- # Firewall rules
- /ip firewall connection tracking
- set enabled=yes generic-timeout=10m icmp-timeout=10s tcp-close-timeout=10s tcp-close-wait-timeout=10s tcp-established-timeout=1d tcp-fin-wait-timeout=10s tcp-last-ack-timeout=10s tcp-syn-received-timeout=5s \
- tcp-syn-sent-timeout=5s tcp-syncookie=no tcp-time-wait-timeout=10s udp-stream-timeout=3m udp-timeout=10s
- /ip firewall filter
- # No traffic from guest to LAN
- add action=reject chain=input disabled=no dst-address=192.168.88.0/24 reject-with=icmp-net-prohibited src-address=192.168.99.0/24
- add action=reject chain=forward disabled=no dst-address=192.168.88.0/24 reject-with=icmp-net-prohibited src-address=192.168.99.0/24
- add action=reject chain=forward disabled=no dst-address=192.168.2.0/24 reject-with=icmp-net-prohibited src-address=192.168.99.0/24
- # Accept ping, internal DHCP traffic
- add action=accept chain=input disabled=no in-interface=pppoe-kpn protocol=icmp
- add action=accept chain=input disabled=no dst-port=67-68 in-interface=bridge-local protocol=udp
- # Accept traffic from LANs and other internal ports
- add action=accept chain=input disabled=no in-interface=bridge-local src-address=192.168.88.0/24
- add action=accept chain=input disabled=no in-interface=bridge-guest src-address=192.168.99.0/24
- add action=accept chain=input disabled=no in-interface=ether7-kpnint
- add action=accept chain=input disabled=no in-interface=bridge-vlan4-iptv
- # Accept related traffic (NAT etc)
- add action=accept chain=input connection-state=established disabled=no
- add action=accept chain=input connection-state=related disabled=no
- # Open up some ports
- add action=accept chain=input disabled=no dst-port=1194 protocol=tcp
- add action=accept chain=input disabled=yes dst-port=80 in-interface=pppoe-kpn protocol=tcp
- add action=accept chain=input disabled=no dst-port=22 in-interface=pppoe-kpn protocol=tcp
- # Drop & log other stuff
- add action=drop chain=input disabled=no in-interface=pppoe-kpn
- add action=drop chain=input disabled=no in-interface=ether10-gw
- add action=log chain=input disabled=no log-prefix=UNKNOWN
- add action=drop chain=input disabled=no
- /ip firewall nat
- add action=masquerade chain=srcnat disabled=no out-interface=pppoe-kpn src-address=192.168.0.0/16
- add action=masquerade chain=srcnat disabled=no dst-address=192.168.2.0/24 out-interface=ether7-kpnint src-address=192.168.0.0/16
- # No discovery on external interfaces
- /ip neighbor discovery
- set sfp1-gateway disabled=yes
- set ether1-nas disabled=no
- set ether2 disabled=no
- set ether3 disabled=no
- set ether4 disabled=no
- set ether5 disabled=no
- set ether6 disabled=no
- set ether7-kpnint disabled=yes
- set ether8-sip disabled=no
- set ether9-iptv disabled=no
- set ether10-gw disabled=yes
- set wlan disabled=yes
- set bridge-local disabled=no
- set ether10.4-iptv disabled=yes
- set bridge-vlan4-iptv disabled=yes
- set pppoe-kpn disabled=yes
- set ether8.7-sip disabled=no
- set ether10.6-inet disabled=yes
- set bridge-vlan7-sip disabled=yes
- set ether10.7-sip disabled=yes
- set ovpn-server disabled=yes
- set wlan-guest disabled=yes
- set bridge-guest disabled=no
- # Enable UPnP
- /ip upnp
- set allow-disable-external-interface=no enabled=yes show-dummy-rule=yes
- /ip upnp interfaces
- add disabled=no interface=bridge-local type=internal
- add disabled=no type=internal
- add disabled=no interface=pppoe-kpn type=external
- # NTP client (correct time is important for PPPoE)
- /system clock
- set time-zone-name=Europe/Amsterdam
- /system ntp client
- set enabled=yes mode=unicast primary-ntp=193.67.79.202 secondary-ntp=193.79.237.14
- # Default switch settings
- /interface ethernet switch
- set 0 mirror-source=none mirror-target=none name=switch1
- set 1 mirror-source=none mirror-target=none name=switch2
- /interface ethernet switch port
- set 0 vlan-header=leave-as-is vlan-mode=disabled
- set 1 vlan-header=leave-as-is vlan-mode=disabled
- set 2 vlan-header=leave-as-is vlan-mode=disabled
- set 3 vlan-header=leave-as-is vlan-mode=disabled
- set 4 vlan-header=leave-as-is vlan-mode=disabled
- set 5 vlan-header=leave-as-is vlan-mode=disabled
- set 6 vlan-header=leave-as-is vlan-mode=disabled
- set 7 vlan-header=leave-as-is vlan-mode=disabled
- set 8 vlan-header=leave-as-is vlan-mode=disabled
- set 9 vlan-header=leave-as-is vlan-mode=disabled
- set 10 vlan-header=leave-as-is vlan-mode=disabled
- set 11 vlan-header=leave-as-is vlan-mode=disabled
- set 12 vlan-header=leave-as-is vlan-mode=disabled
Advertisement
Add Comment
Please, Sign In to add comment