# model: RouterBOARD 3011UiAS # serial-number: 783D07AD2DE6 # firmware-type: ipq8060 # current-firmware: 6.49.4 # installed-version: 6.49.10 # 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 filter rule removed admin write # U filter rule removed admin write # U address list entry removed admin write # U device changed admin write # U device changed admin write # U simple queue removed admin write # U simple queue removed admin write # U address removed admin write # U simple queue removed admin write # U device removed admin write # U device changed admin write # U address changed root write # U address changed root write # U address changed root write # U address changed root write # U address changed root write # U address changed root write # U simple queue changed root write # U address changed root write # U address changed root write # U address changed root write # U device changed admin write # U device changed admin write # U device changed admin write # U device changed admin write # U device changed admin write # # software id = FRTA-GA97 # # model = RouterBOARD 3011UiAS # serial number = 783D07AD2DE6 /interface l2tp-server add name=l2tp-mobil65-Foteastgatebackup user=mobil65 /interface bridge add name=bridge-mobil65-foteastgatebackup add name=loopback /interface ethernet set [ find default-name=ether1 ] comment="UPLINK DIGI" l2mtu=2000 mtu=1600 speed=100Mbps set [ find default-name=ether2 ] comment=Ures speed=100Mbps set [ find default-name=ether3 ] comment="Szentendrei 60GHz" name=ether3-szentendrei36-60G speed=100Mbps set [ find default-name=ether4 ] comment=Ures speed=100Mbps set [ find default-name=ether5 ] comment=Budakalasz name=ether5-budakalasz set [ find default-name=ether6 ] comment=Ures speed=100Mbps set [ find default-name=ether7 ] comment=TVE name=ether7-tve speed=100Mbps set [ find default-name=ether8 ] comment=Ures speed=100Mbps set [ find default-name=ether9 ] comment=ARAMSZUNET name=ether9-aramszunet speed=100Mbps set [ find default-name=ether10 ] comment=Jaszutca name=ether10-jaszutca set [ find default-name=sfp1 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full /interface vlan add interface=ether7-tve name=vlan400-tve vlan-id=400 add comment=FW-BUDAPEST interface=ether1 mtu=1600 name=vlan738 vlan-id=738 /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik /ppp profile add bridge=bridge-mobil65-foteastgatebackup name=foteastgatebackup /queue simple add comment="A fasttrak miatt fel kell venni az ip-t a /ip/FIREWALL/ADDRESS LIST-BE!!!" disabled=yes name=FIGYELJ!!! target="" add burst-limit=70M/70M burst-threshold=45M/45M burst-time=1m/1m limit-at=50M/50M max-limit=50M/50M name=TVE target=86.109.67.182/32 add limit-at=100M/100M max-limit=100M/100M name="DRAVANET FOT EASTGATE" target=86.109.67.46/32 /routing ospf instance set [ find default=yes ] redistribute-connected=as-type-1 redistribute-static=as-type-1 /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 settings set use-ip-firewall=yes use-ip-firewall-for-vlan=yes /ip neighbor discovery-settings set discover-interface-list=all /interface l2tp-server server set allow-fast-path=yes default-profile=default enabled=yes mrru=1600 one-session-per-host=yes /ip address add address=10.1.10.1/24 interface=ether3-szentendrei36-60G network=10.1.10.0 add address=86.109.64.82/30 interface=vlan738 network=86.109.64.80 add address=86.109.67.181/30 comment=TVE interface=vlan400-tve network=86.109.67.180 add address=10.1.15.1/24 interface=ether7-tve network=10.1.15.0 add address=10.1.17.1/24 interface=ether9-aramszunet network=10.1.17.0 add address=10.1.19.1/24 interface=ether5-budakalasz network=10.1.19.0 add address=10.1.24.1/24 interface=bridge-mobil65-foteastgatebackup network=10.1.24.0 add address=86.109.67.49/30 disabled=yes interface=ether10-jaszutca network=86.109.67.48 add address=86.109.64.65/30 comment="DNS, Speedtest server (\E1thelyezve: R640)" disabled=yes interface=ether4 network=86.109.64.64 add address=86.109.64.73/30 comment="NS2.RLAN.HU (\E1thelyezve: R640)" disabled=yes interface=ether4 network=86.109.64.72 add address=10.255.0.6 interface=loopback network=10.255.0.6 add address=10.1.18.1/24 interface=ether10-jaszutca network=10.1.18.0 add address=10.1.4.1/24 interface=ether6 network=10.1.4.0 /ip dns set servers=86.109.64.5,86.109.64.66 /ip firewall address-list add address=86.109.67.182 list=fasttrack_kihagyas add address=86.109.67.46 list=fasttrack_kihagyas add address=86.109.67.50 list=fasttrack_kihagyas add address=86.109.64.74 list=fasttrack_kihagyas add address=86.109.64.0/27 list=support add address=192.168.88.0/24 list=support add address=10.0.0.0/8 list=support add address=86.109.64.0/19 comment="Ezt ki lehet torolni, csak a beallitashoz kell" list=support #error exporting /ip firewall calea /ip firewall filter add action=accept chain=forward comment="Fasttrak kihagyas queue miatt" connection-state=established,related src-address-list=fasttrack_kihagyas add action=accept chain=forward comment="Fasttrak kihagyas queue miatt" connection-state=established,related dst-address-list=fasttrack_kihagyas add action=fasttrack-connection chain=forward connection-state=established,related add action=accept chain=forward connection-state=established,related 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=accept chain=input comment="Bandwidth test" dst-port=2000 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=accept chain=input comment=L2tp dst-port=1701 protocol=udp 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,40: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 /ip firewall nat add action=masquerade chain=srcnat disabled=yes src-address=10.1.14.0/24 add action=dst-nat chain=dstnat disabled=yes dst-address=86.109.64.82 dst-port=80,443 protocol=tcp to-addresses=192.168.1.20 to-ports=443 /ip route add check-gateway=ping distance=1 gateway=86.109.64.81 add check-gateway=ping distance=1 dst-address=10.1.23.0/24 gateway=10.1.19.10 add disabled=yes distance=1 dst-address=10.1.25.0/24 gateway=10.1.12.82 add comment="Dravanet Fot Eastgat" distance=1 dst-address=86.109.67.44/30 gateway=10.1.19.10 add check-gateway=ping comment="Dravanet Fot Eastgat Backup" distance=2 dst-address=86.109.67.44/30 gateway=10.1.24.2 /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 /lcd set time-interval=daily /mpls ldp set enabled=yes lsr-id=10.255.0.6 transport-address=10.255.0.6 /mpls ldp interface add disabled=yes interface=vlan738 /ppp secret add local-address=10.251.0.1 name=mobil65 password=UveGjan1 profile=foteastgatebackup remote-address=10.251.0.2 service=l2tp add local-address=10.220.1.1 name=proba password=Karin2022 remote-address=10.220.1.2 service=l2tp /routing bfd interface set [ find default=yes ] disabled=yes /routing ospf interface add cost=50 interface=ether10-jaszutca network-type=broadcast add interface=ether3-szentendrei36-60G add interface=vlan738 add passive=yes /routing ospf network add area=backbone network=86.109.64.80/30 add area=backbone disabled=yes network=10.1.12.0/24 add area=backbone network=10.1.18.0/24 add area=backbone network=10.1.10.0/24 add area=backbone network=86.109.64.76/30 /snmp set contact=admin@rlan.hu enabled=yes location=Budapest /system clock set time-zone-name=Europe/Budapest /system identity set name=gw-huszti /system logging add action=remote topics=info add action=remote topics=error add action=remote topics=critical add action=remote topics=warning add disabled=yes topics=ospf /system ntp client set enabled=yes primary-ntp=86.109.64.5 /system scheduler add interval=6d name=mentes on-event=mentes policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jun/09/2017 start-time=10:07:54 /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\r\n" /tool e-mail set address=86.109.64.10 from=gw-huszti@magicnet.hu /tool graphing interface add /tool graphing queue add /tool graphing resource add /tool netwatch add comment="Market szerviz" disabled=yes down-script=szerviz-down host=10.1.19.10 interval=10s up-script=szerviz-up /tool sniffer set filter-interface=*11 /tool traffic-generator packet-template add data=random header-stack=mac,ip,tcp ip-dst=86.109.64.69 ip-protocol=tcp name=packet-template1 /tool traffic-generator stream add mbps=900 name=str1 packet-size=1500 tx-template=packet-template1