Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # oct/22/2014 16:09:58 by RouterOS 6.15
- # software id = D878-190M
- #
- /interface bridge
- add l2mtu=1594 name=bridge-iptv
- add arp=proxy-arp l2mtu=1598 name=bridge-local
- add l2mtu=1594 name=bridge-tel
- /interface ethernet
- set [ find default-name=ether1 ] arp=proxy-arp name=ether1-gateway speed=\
- 1Gbps
- set [ find default-name=ether2 ] speed=1Gbps
- /interface pptp-server
- add name=pptp-in1 user=""
- /ip neighbor discovery
- set ether1-gateway discover=no
- set sfp1 discover=no
- /interface vlan
- add interface=ether1-gateway l2mtu=1594 name=vlan1.4 vlan-id=4
- add interface=ether1-gateway l2mtu=1594 name=vlan1.6 vlan-id=6
- add interface=ether1-gateway l2mtu=1594 name=vlan1.7 vlan-id=7
- add disabled=yes interface=ether10 name=vlan10.4 vlan-id=4
- add interface=ether10 l2mtu=1594 name=vlan10.7 vlan-id=7
- /ip neighbor discovery
- set vlan1.6 discover=no
- /interface wireless security-profiles
- add authentication-types=wpa-psk,wpa2-psk eap-methods="" \
- management-protection=allowed mode=dynamic-keys name=wireless \
- supplicant-identity="" wpa-pre-shared-key=WIFIPASS wpa2-pre-shared-key=\
- WIFIPASS
- /interface wireless
- set [ find default-name=wlan1 ] band=2ghz-b/g/n country=netherlands disabled=\
- no l2mtu=2290 mode=ap-bridge security-profile=wireless ssid=wbd65_web
- /ip neighbor discovery
- set wlan1 discover=no
- /ip hotspot user profile
- set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
- mac-cookie-timeout=3d
- /ip pool
- add name=thuisnetwerk ranges=192.168.100.51-192.168.100.200
- /ip dhcp-server
- add address-pool=thuisnetwerk authoritative=yes disabled=no interface=\
- bridge-local lease-time=1h30m name=dhcp-thuis
- /port
- set 0 name=serial0
- /interface pppoe-client
- add ac-name="" add-default-route=yes allow=pap,mschap2 \
- default-route-distance=1 dial-on-demand=no disabled=no interface=vlan1.6 \
- keepalive-timeout=20 max-mru=1480 max-mtu=1480 mrru=disabled name=pppoe \
- password=kpn profile=default service-name="" use-peer-dns=no user=\
- MACADDRESS@direct-adsl
- /ip neighbor discovery
- set pppoe discover=no
- /routing bgp instance
- set default disabled=yes
- /interface bridge port
- add bridge=bridge-local interface=ether2
- add bridge=bridge-local interface=ether3
- add bridge=bridge-local interface=ether4
- add bridge=bridge-local interface=ether5
- add bridge=bridge-local interface=wlan1
- add bridge=bridge-iptv interface=vlan1.4
- add bridge=bridge-iptv interface=ether6
- add bridge=bridge-tel interface=vlan1.7
- add bridge=bridge-iptv interface=ether7
- add bridge=bridge-tel interface=vlan10.7
- add bridge=bridge-iptv disabled=yes interface=vlan10.4
- /interface pptp-server server
- set enabled=yes max-mru=1460 max-mtu=1460
- /ip address
- add address=192.168.100.250/24 interface=bridge-local network=192.168.100.0
- /ip dhcp-server config
- set store-leases-disk=15m
- /ip dhcp-server lease
- add address=192.168.100.144 comment="TP Link beneden" mac-address=\
- F8:1A:67:95:BC:BE server=dhcp-thuis
- add address=192.168.100.132 client-id=1:0:1d:d8:2d:21:c9 comment=Xbox \
- mac-address=00:1D:D8:2D:21:C9 server=dhcp-thuis
- add address=192.168.100.145 comment="TP Link praktijk" mac-address=\
- F8:1A:67:95:B4:08 server=dhcp-thuis
- add address=192.168.100.147 comment="MB Live Duo" mac-address=\
- 00:90:A9:B6:98:47 server=dhcp-thuis
- add address=192.168.100.149 comment="Brother printer" mac-address=\
- 78:E4:00:A6:07:3E server=dhcp-thuis
- add address=192.168.100.143 client-id=1:9c:b6:54:58:c8:75 comment="HP 8600" \
- mac-address=9C:B6:54:58:C8:75 server=dhcp-thuis
- add address=192.168.100.142 comment=OpenELEC mac-address=00:21:6B:0A:09:80 \
- server=dhcp-thuis
- add address=192.168.100.141 comment=X360XBMC mac-address=00:13:77:B2:91:53 \
- server=dhcp-thuis
- add address=192.168.100.133 client-id=1:0:4:20:2d:e9:68 comment=Internetradio \
- mac-address=00:04:20:2D:E9:68 server=dhcp-thuis
- /ip dhcp-server network
- add address=192.168.100.0/24 dns-server=192.168.100.250 domain=thuis.local \
- gateway=192.168.100.250
- /ip dns
- set allow-remote-requests=yes cache-max-ttl=1d servers=8.8.8.8,8.8.4.4
- /ip firewall address-list
- add address=192.168.100.0/24 comment="LAN Access" list=support
- /ip firewall filter
- add chain=input in-interface=pppoe protocol=icmp
- add chain=input connection-state=related
- add chain=input connection-state=established
- add action=reject chain=input in-interface=pppoe protocol=tcp reject-with=\
- icmp-port-unreachable
- add action=reject chain=input in-interface=pppoe protocol=udp reject-with=\
- icmp-port-unreachable
- add action=drop chain=input comment="Drop invalid connections" \
- connection-state=invalid
- add action=drop chain=input comment="Drop DNS WAN requests" dst-port=53 \
- protocol=udp src-address=!192.168.100.0/24
- add chain=input comment=VPN dst-port=1723 protocol=tcp
- add chain=input protocol=gre
- add action=add-src-to-address-list address-list="port scanners" \
- address-list-timeout=2w chain=input comment="Port scanners to list " \
- protocol=tcp psd=21,3s,3,1
- add action=add-src-to-address-list address-list="port scanners" \
- address-list-timeout=2w chain=input comment="NMAP FIN Stealth scan" \
- protocol=tcp tcp-flags=fin,!syn,!rst,!psh,!ack,!urg
- add action=add-src-to-address-list address-list="port scanners" \
- address-list-timeout=2w chain=input comment="SYN/FIN scan" protocol=tcp \
- tcp-flags=fin,syn
- add action=add-src-to-address-list address-list="port scanners" \
- address-list-timeout=2w chain=input comment="SYN/RST scan" protocol=tcp \
- tcp-flags=syn,rst
- add action=add-src-to-address-list address-list="port scanners" \
- address-list-timeout=2w chain=input comment="FIN/PSH/URG scan" protocol=\
- tcp tcp-flags=fin,psh,urg,!syn,!rst,!ack
- add action=add-src-to-address-list address-list="port scanners" \
- address-list-timeout=2w chain=input comment="ALL/ALL scan" protocol=tcp \
- tcp-flags=fin,syn,rst,psh,ack,urg
- add action=add-src-to-address-list address-list="port scanners" \
- address-list-timeout=2w chain=input comment="NMAP NULL scan" protocol=tcp \
- tcp-flags=!fin,!syn,!rst,!psh,!ack,!urg
- add action=drop chain=input comment="Dropping port scanners" \
- src-address-list="port scanners"
- add action=jump chain=input comment="Jump for icmp input flow" jump-target=\
- ICMP protocol=icmp
- add action=drop chain=input comment=\
- "Block all access to the winbox - except to support list" dst-port=8291 \
- protocol=tcp src-address-list=!support
- add action=drop chain=input comment=\
- "Block all access to the webfig - except to support list" dst-port=80 \
- protocol=tcp src-address-list=!support
- add action=jump chain=forward comment="Jump for icmp forward flow" \
- jump-target=ICMP protocol=icmp
- add chain=input comment="Accept established connections" connection-state=\
- established
- add chain=input comment="Accept related connections" connection-state=related
- add chain=input comment="Full access to SUPPORT address list" \
- src-address-list=support
- add action=drop chain=input comment="Drop everything else"
- add chain=ICMP comment="Echo request - Avoiding Ping Flood" icmp-options=8:0 \
- limit=1,5 protocol=icmp
- add chain=ICMP comment="Echo reply" icmp-options=0:0 protocol=icmp
- add chain=ICMP comment="Time Exceeded" icmp-options=11:0 protocol=icmp
- add chain=ICMP comment="Destination unreachable" icmp-options=3:0-1 protocol=\
- icmp
- add chain=ICMP comment=PMTUD icmp-options=3:4 protocol=icmp
- add action=drop chain=ICMP comment="Drop to the other ICMPs" protocol=icmp
- add action=jump chain=output comment="Jump for icmp output" jump-target=ICMP \
- protocol=icmp
- /ip firewall nat
- add action=masquerade chain=srcnat out-interface=pppoe src-address=\
- 192.168.0.0/16 to-addresses=0.0.0.0
- /ip traffic-flow
- set cache-entries=4k
- /ip upnp
- set allow-disable-external-interface=no enabled=yes show-dummy-rule=no
- /ip upnp interfaces
- add interface=bridge-local type=internal
- add interface=pppoe type=external
- /lcd
- set backlight-timeout=5m
- /lcd interface
- set sfp1 interface=sfp1
- set ether1-gateway interface=ether1-gateway
- set ether2 interface=ether2
- set ether3 interface=ether3
- set ether4 interface=ether4
- set ether5 interface=ether5
- set ether6 interface=ether6
- set ether7 interface=ether7
- set ether8 interface=ether8
- set ether9 interface=ether9
- set ether10 interface=ether10
- set wlan1 interface=wlan1
- /lcd interface pages
- set 0 interfaces="sfp1,ether1-gateway,ether2,ether3,ether4,ether5,ether6,ether\
- 7,ether8,ether9,ether10,wlan1"
- /ppp secret
- add local-address=192.168.100.250 name=wbd65 password=VPNPASS profile=\
- default-encryption remote-address=192.168.10.130 service=pptp
- /system clock
- set time-zone-name=Europe/Amsterdam
- /system ntp client
- set enabled=yes primary-ntp=50.7.160.12 secondary-ntp=213.136.0.252
Advertisement
Add Comment
Please, Sign In to add comment