# model: RB3011UiAS # serial-number: HCS08241FPJ # firmware-type: ipq8060 # current-firmware: 6.49.6 # installed-version: 6.49.6 # Flags: U - undoable, R - redoable, F - floating-undo # ACTION BY POLICY # U user mentes added admin write # policy # U user group backup added admin write # policy # U device changed admin write # U OSPFv2 area area-0.0.1.1 changed admin write # U OSPFv2 network changed admin write # U OSPFv2 network changed admin write # U OSPFv2 network changed admin write # U OSPFv2 instance changed admin write # U OSPFv2 instance changed admin write # U OSPFv2 instance changed admin write # U SNTP client configuration changed admin write # U OSPFv2 network changed admin write # U OSPFv2 network changed admin write # U OSPFv2 network changed admin write # U OSPFv2 area area-0.0.1.1 changed admin write # U OSPFv2 area area-0.0.1.100 changed admin write # U OSPFv2 network changed admin write # U OSPFv2 network changed admin write # U OSPFv2 area area-0.0.1.1 added admin write # U address changed admin write # U address changed admin write # # software id = LJ09-0PW7 # # model = RB3011UiAS # serial number = HCS08241FPJ /interface bridge add name=bridge-vlan2800-GyorBisinger add name=bridge-vlan2801-MezoorsIskola add name=bridge-vlan2811-GyorSzentImre33 add name=bridge-vlan2815-GyorKodalyZoltanMoraIskola add fast-forward=no name=bridge1 add fast-forward=no name=loopback /interface ethernet set [ find default-name=ether1 ] comment="Uplink Digi Vlan710 - 780-as a tuloldalon" l2mtu=1996 speed=100Mbps set [ find default-name=ether2 ] comment="KIFU Bisinger setany" l2mtu=1620 mtu=1600 speed=100Mbps set [ find default-name=ether3 ] comment="Etalon 60Ghz" speed=100Mbps set [ find default-name=ether4 ] comment="Kazinczy 60g" speed=100Mbps set [ find default-name=ether5 ] comment="Switch fele" l2mtu=1620 mtu=1600 speed=100Mbps set [ find default-name=ether6 ] comment="Tihanyi Arpad71 fele" l2mtu=1620 mtu=1600 set [ find default-name=ether7 ] comment="Mora iskola fele" l2mtu=1620 mtu=1600 set [ find default-name=ether8 ] comment=Szolohegy l2mtu=1620 mtu=1600 set [ find default-name=ether10 ] comment=Management /interface vlan add interface=ether5 name=vlan450-WHBKocka vlan-id=450 add interface=ether5 name=vlan500-ecs vlan-id=500 add interface=ether8 name=vlan501-szolohegy vlan-id=501 add interface=ether1 mtu=1620 name=vlan710 vlan-id=710 add interface=ether2 mtu=1600 name=vlan2800 vlan-id=2800 add interface=vlan710 mtu=1600 name=vlan2800-BPfele vlan-id=2800 add interface=vlan710 mtu=1600 name=vlan2801-Bpfele vlan-id=2801 add interface=ether8 mtu=1600 name=vlan2801-mezoorsfele vlan-id=2801 add interface=ether6 mtu=1600 name=vlan2811 vlan-id=2811 add interface=vlan710 mtu=1600 name=vlan2811-BPfele vlan-id=2811 add interface=vlan710 mtu=1600 name=vlan2815-BPfele vlan-id=2815 add interface=ether7 mtu=1600 name=vlan2815-MoraIskola vlan-id=2815 /interface list add name=neighbour /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik /ip pool add name=GW-GYOR.MAGICNET.HU/PPPOE/1 ranges=86.109.70.1-86.109.70.31 add name=TARTOZOK ranges=192.168.244.0/24 add name=dhcp_pool2 ranges=86.109.67.34 add name=dhcp_pool4 ranges=192.168.88.2-192.168.88.254 add name=dhcp_pool6 ranges=86.109.70.194 /ip dhcp-server add address-pool=dhcp_pool2 disabled=no interface=ether4 name=dhcp1 add address-pool=dhcp_pool6 disabled=no interface=vlan450-WHBKocka name=dhcp3 /ppp profile set *0 dns-server=86.109.64.5,86.109.64.66 local-address=86.109.64.244 only-one=yes rate-limit=64k remote-address=GW-GYOR.MAGICNET.HU/PPPOE/1 /queue simple add comment="A fasttrack miatt fel kell venni az ip-t a firewallba kulonben nem korlatoz!" disabled=yes name=FIGYELJ! target="" add burst-limit=70M/70M burst-threshold=45M/45M burst-time=1m/1m max-limit=50M/50M name="WHB Kocka" target=86.109.70.194/32 /routing ospf area add area-id=0.0.0.244 name=pppoe244 add area-id=0.0.1.1 disabled=yes name=area-0.0.1.1 /routing ospf instance set [ find default=yes ] redistribute-connected=as-type-2 redistribute-static=as-type-2 router-id=10.96.1.1 /snmp community set [ find default=yes ] addresses=86.109.64.0/27,10.0.0.2/32 add addresses=86.109.64.0/27,10.0.0.2/32 name=partnerlogin /system logging action set 3 remote=86.109.64.16 /tool traffic-generator port add interface=ether8 name=port1 /user group 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-vlan2800-GyorBisinger interface=vlan2800-BPfele add bridge=bridge-vlan2800-GyorBisinger interface=vlan2800 add bridge=bridge-vlan2811-GyorSzentImre33 interface=vlan2811-BPfele add bridge=bridge-vlan2811-GyorSzentImre33 interface=vlan2811 add bridge=bridge-vlan2815-GyorKodalyZoltanMoraIskola interface=vlan2815-BPfele add bridge=bridge-vlan2815-GyorKodalyZoltanMoraIskola interface=vlan2815-MoraIskola add bridge=bridge-vlan2801-MezoorsIskola interface=vlan2801-mezoorsfele add bridge=bridge-vlan2801-MezoorsIskola interface=vlan2801-Bpfele /interface bridge settings set use-ip-firewall=yes /ip neighbor discovery-settings set discover-interface-list=neighbour /interface l2tp-server server set enabled=yes /interface list member add interface=ether1 list=neighbour add interface=ether2 list=neighbour add interface=ether3 list=neighbour add interface=ether4 list=neighbour add interface=ether5 list=neighbour add interface=vlan500-ecs list=neighbour add interface=vlan501-szolohegy list=neighbour add interface=ether6 list=neighbour add interface=ether7 list=neighbour add interface=ether8 list=neighbour add interface=ether9 list=neighbour add interface=ether10 list=neighbour /ip address add address=86.109.64.244 comment="pppoe server miatt" interface=loopback network=86.109.64.244 add address=10.96.38.1/24 interface=ether5 network=10.96.38.0 add address=10.96.35.1/24 interface=ether5 network=10.96.35.0 add address=10.96.36.1/24 interface=ether3 network=10.96.36.0 add address=10.96.29.1/24 interface=vlan500-ecs network=10.96.29.0 add address=10.96.1.1/24 interface=ether8 network=10.96.1.0 add address=10.96.2.1/24 interface=ether8 network=10.96.2.0 add address=10.96.34.1/24 interface=ether4 network=10.96.34.0 add address=10.96.0.2/24 interface=vlan710 network=10.96.0.0 add address=86.109.70.193/30 interface=vlan450-WHBKocka network=86.109.70.192 add address=10.96.7.1/24 interface=ether2 network=10.96.7.0 add address=10.96.40.1/24 interface=vlan501-szolohegy network=10.96.40.0 add address=192.168.88.1/24 interface=ether10 network=192.168.88.0 add address=10.96.8.1/24 interface=ether6 network=10.96.8.0 add address=10.96.43.1/24 interface=ether7 network=10.96.43.0 /ip dhcp-client add default-route-distance=10 disabled=no interface=ether1 use-peer-dns=no use-peer-ntp=no /ip dhcp-server network add address=86.109.67.32/30 dns-server=86.109.64.5,8.8.8.8 gateway=86.109.67.33 add address=86.109.70.192/30 dns-server=86.109.64.5,86.109.64.66 gateway=86.109.70.193 add address=192.168.88.0/24 dns-server=86.109.64.5,86.109.64.66 gateway=192.168.88.1 /ip dns set servers=86.109.64.5,86.109.64.66 /ip dns static add address=192.168.88.1 name=router.lan /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 src-address=86.109.65.252 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=20,30:packet 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=accept chain=forward in-interface=all-ppp add action=accept chain=forward out-interface=all-ppp add action=accept chain=forward comment="WHB Kocka" src-address=86.109.70.194 add action=accept chain=forward comment="WHB Kocka" dst-address=86.109.70.194 add action=fasttrack-connection chain=forward connection-state=established,related add action=accept chain=forward connection-state=established,related /ip firewall nat add action=masquerade chain=srcnat disabled=yes src-address=10.96.37.0/24 add action=masquerade chain=srcnat src-address=192.168.88.0/24 /ip proxy set enabled=yes /ip route add check-gateway=ping distance=200 gateway=10.96.0.1 add check-gateway=ping comment=ETALON distance=1 dst-address=86.109.66.68/30 gateway=10.96.36.4 add check-gateway=ping comment=ETALON distance=10 dst-address=86.109.66.68/30 gateway=10.96.35.4 add comment="Kazinczy Gimnazium" distance=1 dst-address=86.109.67.32/30 gateway=10.96.34.6 add comment="Lanchid Radio Gyor" distance=1 dst-address=86.109.67.88/30 gateway=10.96.38.4 add comment="MagnetBank Gyor" distance=1 dst-address=86.109.70.232/30 gateway=10.96.38.17 add comment="WHb Bences" distance=1 dst-address=86.109.71.68/30 gateway=10.96.38.21 /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 /ip ssh set allow-none-crypto=yes forwarding-enabled=remote /ppp aaa set interim-update=5m use-radius=yes /ppp secret add name=teszt password=teszt service=l2tp /radius add address=86.109.64.22 secret=TiToK345 service=ppp timeout=3s add address=86.109.64.14 secret=TiToK345 service=ppp timeout=3s /radius incoming set accept=yes port=1700 /routing filter add action=discard chain=ospf-out prefix=192.168.88.0/24 prefix-length=24 /routing ospf area range add area=pppoe244 range=86.109.70.0/27 add area=pppoe244 range=192.168.244.0/24 /routing ospf network add area=pppoe244 network=192.168.244.0/24 add area=pppoe244 network=86.109.70.0/27 add area=pppoe244 network=86.109.64.244/32 add area=backbone network=10.96.29.0/24 add area=backbone network=10.96.35.0/24 add area=backbone network=10.96.1.0/24 add area=backbone network=10.96.0.0/24 add area=backbone network=10.96.40.0/24 /snmp set contact=admin@rlan.hu enabled=yes location=Gyor /system clock set time-zone-name=Europe/Budapest /system identity set name=GW-GYOR.MAGICNET.HU /system logging add action=remote topics=info add action=remote topics=critical add action=remote topics=error add action=remote topics=warning /system ntp client set enabled=yes primary-ntp=86.109.64.5 /system resource irq rps set ether1 disabled=no set ether2 disabled=no set ether3 disabled=no set ether4 disabled=no set ether5 disabled=no /system scheduler add interval=6d name=mentes on-event=mentes policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jul/18/2018 start-time=06:34:27 add interval=1m name="ip route ellenorzo" on-event="ip route ellenorzo" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jun/20/2022 start-time=14:09:36 /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" add dont-require-permissions=no name="ip route ellenorzo" owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":global currentIP;\r\n\r\n:if (\$currentIP =\"\") do={\r\n:set currentIP \"1.1.1.1\";\r\n}\r\n\r\n:local newIP [/ip dhcp-client get [find interface=\"ether1\"] gateway];\r\n\r\n:if (\$newIP != \$currentIP) do={\r\n :log info \"gateway \$currentIP changed to \$newIP\";\r\n :set currentIP \$newIP;\r\n /ip route set [/ip route find comment=\"UPC\"] gateway=\$newIP\r\n};\r\n" /tool e-mail set address=86.109.64.10 from=gw-vodafone-patakutca@magicnet.hu /tool graphing interface add /tool graphing queue add /tool graphing resource add /tool sniffer set filter-interface=ether1 /tool traffic-generator packet-template add header-stack=mac,ip,tcp ip-dst=10.96.1.17 ip-protocol=tcp ip-src=10.96.1.1 name=packet-template1 /tool traffic-generator stream add name=str1 packet-size=1500 port=port1 tx-template=packet-template1