Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # may/22/2021 07:11:13 by RouterOS 6.48.2
- # software id = *******
- #
- # model = RB760iGS
- # serial number = *********
- /interface bridge
- add admin-mac=********* auto-mac=no comment=defconf name=bridge
- /interface pppoe-client
- add add-default-route=yes dial-on-demand=yes disabled=no interface=ether1 name=pppoe-out1 password=********* use-peer-dns=yes user=*********
- /interface list
- add comment=defconf name=WAN
- add comment=defconf name=LAN
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- /ip pool
- add name=dhcp ranges=192.168.0.X-192.168.0.X
- /ip dhcp-server
- add address-pool=dhcp disabled=no interface=bridge name=defconf
- /interface bridge port
- add bridge=bridge comment=defconf interface=ether2
- add bridge=bridge comment=defconf interface=ether3
- add bridge=bridge comment=defconf interface=ether4
- add bridge=bridge comment=defconf interface=ether5
- add bridge=bridge comment=defconf interface=sfp1
- /ip neighbor discovery-settings
- set discover-interface-list=LAN
- /interface list member
- add comment=defconf interface=bridge list=LAN
- add comment=defconf interface=ether1 list=WAN
- add interface=pppoe-out1 list=WAN
- /ip address
- add address=192.168.0.1/24 comment=defconf interface=bridge network=192.168.0.0
- /ip cloud
- set ddns-enabled=yes ddns-update-interval=5m
- /ip dhcp-client
- add comment=defconf interface=ether1
- /ip dhcp-server network
- add address=192.168.0.0/24 comment=defconf dns-server=192.168.0.X,192.168.0.X,192.168.0.1 gateway=192.168.0.1 netmask=24 ntp-server=192.168.0.X
- /ip dns
- set allow-remote-requests=yes cache-size=4096KiB servers=208.67.222.222,208.67.220.220
- /ip firewall address-list
- add address=192.168.0.X list=nonet
- add address=192.168.0.X list=nonet
- add address=192.168.0.X list=nonet
- /ip firewall filter
- add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=tcp
- add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=udp
- add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
- add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
- add action=accept chain=input comment="defconf: accept ICMP" in-interface-list=LAN protocol=icmp
- add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
- add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
- add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
- add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
- add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
- add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
- add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
- add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
- add action=drop chain=output comment=nonet out-interface-list=WAN src-address-list=nonet
- 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"
- /ip firewall nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
- /system clock
- set time-zone-name=Europe/Budapest
- /system leds
- set 0 interface=pppoe-out1
- /system ntp client
- set enabled=yes primary-ntp=192.168.0.X secondary-ntp=192.168.0.X
- /system routerboard settings
- set silent-boot=yes
- /system routerboard mode-button
- set enabled=yes
- /system routerboard reset-button
- set enabled=yes
- /tool e-mail
- set address=192.168.0.X from=********* password=******** start-tls=yes user=***********
- /tool graphing interface
- add allow-address=192.168.0.0/24
- /tool graphing queue
- add allow-address=192.168.0.0/24
- /tool graphing resource
- add allow-address=192.168.0.0/24
- /tool mac-server
- set allowed-interface-list=LAN
- /tool mac-server mac-winbox
- set allowed-interface-list=LAN
Advertisement
Add Comment
Please, Sign In to add comment