# model: 433 # serial-number: 1A75019D881A # firmware-type: ar7100 # current-firmware: 6.49.6 # 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 ppp profile changed admin write # U dns changed admin write # # software id = INAH-LLAB # # model = 433 # serial number = 1A75019D881A /interface ethernet set [ find default-name=ether1 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full comment=UPLINK set [ find default-name=ether2 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full set [ find default-name=ether3 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full /interface vlan add interface=ether1 name=vlan501 vlan-id=501 /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik add authentication-types=wpa2-psk eap-methods="" group-ciphers=tkip management-protection=allowed mode=dynamic-keys name=wlan1 supplicant-identity="" unicast-ciphers=tkip wpa2-pre-shared-key=RLAN_SZHGY add authentication-types=wpa2-psk eap-methods="" group-ciphers=tkip management-protection=allowed mode=dynamic-keys name=wlan2 supplicant-identity="" unicast-ciphers=tkip wpa2-pre-shared-key=RLAN_SZHGYE /interface wireless set [ find default-name=wlan1 ] adaptive-noise-immunity=ap-and-client-mode band=2ghz-b/g comment="User ag R52 korsugarzo" country=hungary disabled=no frequency=2457 mode=ap-bridge security-profile=wlan1 ssid=RLAN_SZHGY station-roaming=enabled add mac-address=02:19:E0:83:00:28 master-interface=wlan1 name=wlan1-noWPA ssid=RLAN_SZHGY station-roaming=enabled wds-cost-range=0 wds-default-cost=0 set [ find default-name=wlan2 ] adaptive-noise-immunity=ap-and-client-mode comment="User ag2 180 fokos Eszak fele" country=hungary disabled=no frequency=2447 mode=ap-bridge security-profile=wlan2 ssid=RLAN_SZHGYE station-roaming=enabled add mac-address=96:0C:6D:8D:BC:87 master-interface=wlan2 name=wlan2-noWPA ssid=RLAN_SZHGYE station-roaming=enabled wds-cost-range=0 wds-default-cost=0 /interface wireless nstreme set wlan1 comment="User ag R52 korsugarzo" set wlan2 comment="User ag2 180 fokos Eszak fele" /interface wireless manual-tx-power-table set wlan1 comment="User ag R52 korsugarzo" set wlan2 comment="User ag2 180 fokos Eszak fele" /ip pool add name=GW-SZOLOHEGY.MAGICNET.HU/PPPOE/1 ranges=86.109.78.193-86.109.78.253 add name=TARTOZOK ranges=192.168.243.0/24 /ppp profile set *0 dns-server=86.109.64.5,86.109.64.66 local-address=10.96.40.5 only-one=yes rate-limit=64k remote-address=GW-SZOLOHEGY.MAGICNET.HU/PPPOE/1 use-upnp=no /routing ospf area add area-id=0.0.0.243 name=pppoe243 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 router-id=10.96.40.5 /snmp community set [ find default=yes ] addresses=86.109.64.0/27 /system logging action set 3 remote=86.109.64.16 /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 /ip neighbor discovery-settings set discover-interface-list=!dynamic /interface pppoe-server server add disabled=no interface=ether1 one-session-per-host=yes service-name=rlan add disabled=no interface=ether2 one-session-per-host=yes service-name=rlan add disabled=no interface=wlan1 service-name=rlan add disabled=no interface=wlan2 one-session-per-host=yes service-name=rlan add interface=wlan1-noWPA service-name=rlan add interface=wlan2-noWPA service-name=rlan add disabled=no interface=ether3 one-session-per-host=yes service-name=rlan /interface wireless access-list add authentication=no comment=ujvari interface=wlan1-noWPA mac-address=00:22:27:F8:65:93 vlan-mode=no-tag /ip address add address=10.96.9.1/24 interface=ether1 network=10.96.9.0 add address=10.96.40.5/24 interface=vlan501 network=10.96.40.0 /ip dns set servers=96.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 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 /ip route add distance=200 gateway=10.96.40.1 /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 /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 add address=10.0.0.2 secret=TiToK345 service=ppp timeout=3s /radius incoming set accept=yes port=1700 /routing ospf area range add area=pppoe243 range=86.109.78.192/26 add area=pppoe243 range=192.168.243.0/24 /routing ospf interface add interface=vlan501 add passive=yes /routing ospf network add area=pppoe243 network=86.109.78.192/26 add area=pppoe243 network=192.168.243.0/24 add area=backbone network=10.96.40.0/24 /snmp set contact=admin@rlan.hu enabled=yes location=Bony /system clock set time-zone-name=Europe/Budapest /system identity set name=GW-SZOLOHEGY.MAGICNET.HU /system logging add action=remote topics=info add action=remote topics=critical add action=remote topics=error add action=remote topics=warning add disabled=yes topics=pppoe /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 start-date=nov/17/2015 start-time=11:10:29 /system script add dont-require-permissions=no name=mentes owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive 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\r\n" /system watchdog set auto-send-supout=yes ping-start-after-boot=55m send-email-from=gw-szolohegy@magicnet.hu send-email-to=magic@magicnet.hu send-smtp-server=86.109.64.10 watch-address=10.96.40.1 /tool e-mail set address=86.109.64.10 from=GW-SZOLOHEGY@MAGICNET.HU /tool graphing interface add /tool graphing queue add /tool graphing resource add /tool sniffer set filter-interface=*6