# model: RBD52G-5HacD2HnD # serial-number: D7160D321FFF # firmware-type: ipq4000L # current-firmware: 6.49.5 # installed-version: 6.49.5 # Flags: U - undoable, R - redoable, F - floating-undo # ACTION BY POLICY # U device removed admin write # U device removed admin write # U device removed admin write # U user mentes added admin write # policy # U user group backup added admin write # policy # U device changed admin write # U address removed admin write # U address added admin write # U device changed admin write # U item changed admin write # U device changed admin write # U item changed admin write # U item changed admin write # U device changed admin write # U device changed admin write # U bridge port added admin write # U bridge port added admin write # U device added admin write # U device added admin write # U device added admin write # # software id = ZER6-GB5D # # model = RBD52G-5HacD2HnD # serial number = D7160D321FFF /interface bridge add name=bridge-vlan2521 add name=bridge-vlan2550 add name=bridge-vlan2562 add name=bridge-vlan2563 add name=bridge-vlan2572 protocol-mode=none /interface ethernet set [ find default-name=ether1 ] comment="UPLINK Vajda" l2mtu=1640 mtu=1600 set [ find default-name=ether2 ] comment=Egyhazaskeszo l2mtu=1620 set [ find default-name=ether3 ] comment=Somlo set [ find default-name=ether4 ] comment="Reformatus kollegium" l2mtu=1620 set [ find default-name=ether5 ] comment=Switch l2mtu=1640 mtu=1600 /interface wireless set [ find default-name=wlan1 ] ssid=MikroTik station-roaming=enabled set [ find default-name=wlan2 ] ssid=MikroTik station-roaming=enabled /interface eoip add mac-address=02:6D:8B:9D:03:DB mtu=1600 name=eoip-egyhazaskeszo remote-address=10.89.8.10 tunnel-id=2 /interface vlan add interface=ether1 name=vlan-vajdauser vlan-id=166 add interface=ether2 name=vlan500-vaszar-pppoe vlan-id=500 add interface=ether2 name=vlan501-gyarmat-pppoe vlan-id=501 add interface=ether1 mtu=1600 name=vlan2521-Bpfele vlan-id=2521 add interface=ether2 mtu=1600 name=vlan2521-Vaszarfele vlan-id=2521 add interface=ether1 mtu=1600 name=vlan2550-Bpfele vlan-id=2550 add interface=ether2 mtu=1600 name=vlan2550-Ugodfele vlan-id=2550 add interface=ether1 mtu=1600 name=vlan2562-Bpfele vlan-id=2562 add interface=ether5 mtu=1600 name=vlan2562-Nemesszalokfele vlan-id=2562 add interface=ether1 mtu=1600 name=vlan2563-Bpfele vlan-id=2563 add interface=ether5 mtu=1600 name=vlan2563-Nyaradfele vlan-id=2563 add interface=ether1 mtu=1600 name=vlan2572-Bpfele vlan-id=2572 add interface=ether5 mtu=1600 name=vlan2572-MVMIPapa vlan-id=2572 /interface list add name=discover /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik /ip pool add name=GW-PAPA.MAGICNET.HU/PPPOE/1 ranges=86.109.77.129-86.109.77.254 add name=TARTOZOK ranges=192.168.235.0/24 /ppp profile set *0 dns-server=86.109.64.5,86.109.64.66 local-address=86.109.64.235 only-one=yes rate-limit=32k remote-address=GW-PAPA.MAGICNET.HU/PPPOE/1 use-compression=no /queue simple add comment="Simple queue nem hasznalhato, mert be van kapcsolva a fasttrack. Ha megis szukseg van ra, akkor a ip/forwardba fel kell venni egy szabalyt" disabled=yes name=FIGYELJ target="" /routing ospf area add area-id=0.0.0.235 name=pppoe235 /routing ospf instance set [ find default=yes ] redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=10.89.0.5 /snmp community set [ find default=yes ] addresses=10.0.0.2/32,86.109.64.0/27 add addresses=10.0.0.2/32,86.109.64.0/27 name=partnerlogin /system logging action set 3 remote=86.109.64.16 /user group set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,password,web,sniff,sensitive,api,romon,dude,tikapp" add name=backup policy="ssh,read,sensitive,!local,!telnet,!ftp,!reboot,!write,!policy,!test,!winbox,!password,!web,!sniff,!api,!romon,!dude,!tikapp" #error exporting /interface bridge calea /interface bridge port add bridge=bridge-vlan2562 interface=vlan2562-Bpfele add bridge=bridge-vlan2563 interface=vlan2563-Bpfele add bridge=bridge-vlan2562 interface=vlan2562-Nemesszalokfele add bridge=bridge-vlan2563 interface=vlan2563-Nyaradfele add bridge=bridge-vlan2521 interface=vlan2521-Bpfele add bridge=bridge-vlan2521 interface=vlan2521-Vaszarfele add bridge=bridge-vlan2550 interface=vlan2550-Bpfele add bridge=bridge-vlan2550 interface=vlan2550-Ugodfele add interface=*1B add interface=*1A add bridge=bridge-vlan2572 interface=vlan2572-Bpfele add bridge=bridge-vlan2572 interface=vlan2572-MVMIPapa /ip neighbor discovery-settings set discover-interface-list=discover /interface list member add interface=ether1 list=discover add interface=ether2 list=discover add interface=ether3 list=discover add interface=ether4 list=discover add interface=ether5 list=discover add interface=vlan-vajdauser list=discover add interface=wlan1 list=discover add interface=wlan2 list=discover add interface=eoip-egyhazaskeszo list=discover add disabled=yes interface=vlan2563-Nyaradfele list=discover /interface pppoe-server server add disabled=no interface=eoip-egyhazaskeszo one-session-per-host=yes service-name=rlan add disabled=no interface=vlan-vajdauser one-session-per-host=yes service-name=rlan add disabled=no interface=vlan500-vaszar-pppoe one-session-per-host=yes service-name=rlan add disabled=no interface=ether3 one-session-per-host=yes service-name=rlan add disabled=no interface=ether5 one-session-per-host=yes service-name=rlan add disabled=no interface=vlan501-gyarmat-pppoe one-session-per-host=yes service-name=rlan /ip address add address=10.89.8.1/24 interface=ether2 network=10.89.8.0 add address=10.89.0.5/24 interface=ether1 network=10.89.0.0 add address=10.89.2.1/24 interface=ether5 network=10.89.2.0 add address=10.89.3.1/24 interface=ether5 network=10.89.3.0 add address=10.89.4.1/24 interface=vlan-vajdauser network=10.89.4.0 add address=10.89.70.1/24 interface=ether5 network=10.89.70.0 add address=86.109.64.235 interface=ether1 network=86.109.64.235 add address=10.89.30.1/24 interface=ether3 network=10.89.30.0 add address=10.89.6.1/24 interface=ether5 network=10.89.6.0 add address=10.89.5.1/24 interface=ether5 network=10.89.5.0 add address=10.89.7.1/24 interface=ether5 network=10.89.7.0 add address=10.89.10.1/24 interface=ether4 network=10.89.10.0 add address=10.89.100.1/24 interface=ether1 network=10.89.100.0 /ip dns set servers=86.109.64.5,86.109.64.66 /ip firewall address-list add address=86.109.64.0/27 list=support add address=10.0.0.0/8 list=support add address=86.109.64.0/19 comment="Ez torolheto" list=support add address=192.168.88.0/24 list=support #error exporting /ip firewall calea /ip firewall filter add action=accept chain=input dst-port=2000 protocol=tcp add action=accept chain=input protocol=tcp src-port=2000 add action=accept chain=input comment=telnet,ssh,ftp dst-port=21-23 protocol=tcp src-address-list=support add action=drop chain=input comment=telnet,ssh,ftp dst-port=21-23 protocol=tcp add action=add-src-to-address-list address-list=Syn_Flooder address-list-timeout=30m chain=input comment="Add Syn Flood IP to the list" connection-limit=30,32 protocol=tcp tcp-flags=syn add action=drop chain=input comment="Drop to syn flood list" src-address-list=Syn_Flooder add action=add-src-to-address-list address-list=Port_Scanner address-list-timeout=1h chain=input comment="Port Scanner Detect" protocol=tcp psd=21,3s,3,1 add action=drop chain=input comment="Drop to port scan list" src-address-list=Port_Scanner add action=jump chain=input comment="Jump for icmp input flow" jump-target=ICMP protocol=icmp add action=add-src-to-address-list address-list=Port_Scanner address-list-timeout=1h 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_Scanner address-list-timeout=1h chain=input comment="SYN/FIN scan" protocol=tcp tcp-flags=fin,syn add action=add-src-to-address-list address-list=Port_Scanner address-list-timeout=1h chain=input comment="SYN/RST scan" protocol=tcp tcp-flags=syn,rst add action=add-src-to-address-list address-list=Port_Scanner address-list-timeout=1h 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_Scanner address-list-timeout=1h 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_Scanner address-list-timeout=1h chain=input comment="NMAP NULL scan" protocol=tcp tcp-flags=!fin,!syn,!rst,!psh,!ack,!urg add action=drop chain=input comment="Block all access to the winbox - except to support list # DO NOT ENABLE THIS RULE BEFORE ADD YOUR SUBNET IN THE SUPPORT ADDRESS LIST" dst-port=8291 protocol=tcp src-address-list=!support add action=accept chain=input comment="Accept to established connections" connection-state=established add action=accept chain=input comment="Accept to related connections" connection-state=related add action=accept chain=input comment="Full access to SUPPORT address list" src-address-list=support add action=accept chain=input dst-address=255.255.255.255 add action=log chain=input comment="Drop anything else! # DO NOT ENABLE THIS RULE BEFORE YOU MAKE SURE ABOUT ALL ACCEPT RULES YOU NEED" disabled=yes add action=drop chain=input comment="Drop anything else! # DO NOT ENABLE THIS RULE BEFORE YOU MAKE SURE ABOUT ALL ACCEPT RULES YOU NEED" add action=accept chain=ICMP comment="Echo request - Avoiding Ping Flood" icmp-options=8:0 limit=10,15 protocol=icmp add action=accept chain=ICMP comment="Echo reply" icmp-options=0:0 protocol=icmp add action=accept chain=ICMP comment="Time Exceeded" icmp-options=11:0 protocol=icmp add action=accept chain=ICMP comment="Destination unreachable" icmp-options=3:0-1 protocol=icmp add action=accept 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 add action=fasttrack-connection chain=forward connection-state=established,related add action=accept chain=forward connection-state=established,related /ip route add check-gateway=ping distance=200 gateway=10.89.8.14 add check-gateway=ping distance=210 gateway=10.89.8.9 add distance=1 dst-address=10.89.11.0/24 gateway=10.89.2.16 add comment="Dolomit Ugod" distance=1 dst-address=86.109.67.4/30 gateway=10.89.6.4 add comment="Boller kft" distance=1 dst-address=86.109.67.40/30 gateway=10.89.2.10 add comment="Boller Kft Gyori ut" distance=1 dst-address=86.109.68.12/30 gateway=10.89.3.12 add comment="Nemesgorzsony Varga Gyula Iskola" distance=1 dst-address=86.109.69.32/30 gateway=10.89.7.6 add comment="Kissomlyo Wifi" distance=1 dst-address=86.109.69.132/30 gateway=10.89.30.7 add comment="Kifu Homokbodoge iskola" distance=1 dst-address=86.109.69.152/30 gateway=10.89.10.7 /ip service set www address=86.109.64.0/27 set api address=86.109.64.0/27 set api-ssl address=86.109.64.0/27 /ppp aaa set interim-update=5m use-radius=yes /radius add address=86.109.64.22 secret=TiToK345 service=ppp add address=86.109.64.14 disabled=yes secret=TiToK345 service=ppp add address=10.0.0.2 secret=TiToK345 service=ppp /radius incoming set accept=yes port=1700 /routing ospf area range add area=pppoe235 range=86.109.77.128/25 add area=backbone range=192.168.235.0/24 /routing ospf network add area=pppoe235 network=86.109.64.235/32 add area=pppoe235 network=86.109.77.128/25 add area=pppoe235 network=192.168.235.0/24 add area=backbone network=10.89.8.0/24 add area=backbone network=10.89.0.0/24 /snmp set contact=admin@rlan.hu enabled=yes location=Papa /system clock set time-zone-name=Europe/Budapest /system identity set name=GW-PAPA.MAGICNET.HU /system logging set 0 action=remote topics=critical add action=remote topics=info add action=remote topics=error add action=remote topics=warning add topics=info /system ntp client set enabled=yes primary-ntp=86.109.64.5 /system routerboard settings set cpu-frequency=auto /system scheduler add interval=6d name=mentes on-event=mentes policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=feb/03/2021 start-time=12:36:13 /system script add dont-require-permissions=no name=mentes owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/export file=export\r\n/tool e-mail send from=\"backup@rlan.hu\" to=\"backup@rlan.hu\" subject=([/system identity get name] . \" export\") file=export.rsc\r\n/system backup save name=backup\r\n/tool e-mail send from=\"backup@rlan.hu\" to=\"backup@rlan.hu\" subject=([/system identity get name] . \" Backup\") file=backup.backup" /tool e-mail set address=86.109.64.10 from=gw-papa@magicnet.hu /tool graphing interface add /tool graphing queue add /tool graphing resource add /tool sniffer set file-name=x filter-interface=vlan2572-Bpfele