Good evening MT forum leets!
So decided to grab a RB751 to teach myself the ins and outs of RouterOS and the RouterBOARD and broaden my knowledge, *agem! i’m a student thus cannot afford the MTCNA course yet ![]()
I discovered my internet (bridged to modem) being very slow at approx. 8PM GMT+2.. logged onto my router and checked my logs and wow my ISP keeps disconnecting me.. checked the terminal if maybe there is messages there.. nothing, THEN! IP → Firewall connections and WTF!
about 4000 entries sourcing from varies IP addresses and going to an Information Technology website in Thailand??.. I googled the IP address so great! someone is using my router and currently flooding the web server!.. so I did a screen shot of the connections, disconnected the PPPOE connection, removed the trunk links to my switches so only admin local IP, reconnected the connection and straight away there she goes again, I did not look at the MT routing table because I quickly disconnected the router; reset and imported my last exported config file and with a new IP address from ISP everything seems normal now.. now I really dont know if they added my router as a route or default gateway or what I dont know.. the root account is not admin but another name with 32 character password containing letters, numbers etc. All service ports are disabled except winbox which listens on my local subnet range. I did add extra stuff like drop telnet, drop winbox and drop DNS poisoning from public. I did add accept TCP and UDP after reading the one blog as my younger brother could not find Dota 2 servers nor could I download a torrent of a Linux Distro, accepting these 2 allowed it to happen - utorrent has the uPNP enabled and adds the DSTNAT rule automatically
Heres my firewall export
/ip firewall filter
add action=accept chain=input comment=“Accept PING” disabled=no protocol=icmp
add action=accept chain=input comment=“Accept Established Input”
connection-state=established disabled=no in-interface=mweb
add action=accept chain=input comment=“Accept Related Input”
connection-state=related disabled=no in-interface=mweb
add action=log chain=input comment=“Log Web Winbox Attempt” disabled=no
dst-port=8291 in-interface=mweb log-prefix=“Web Winbox Attempt” protocol=
tcp
add action=drop chain=input comment=“Drop Winbox from Internet” disabled=no
dst-port=8291 in-interface=mweb protocol=tcp
add action=log chain=input comment=“Log Web DNS Attempt” disabled=no
dst-port=53 in-interface=mweb log-prefix=“Web DNS Attempt” protocol=tcp
add action=drop chain=input comment=“Drop DNS from Internet” disabled=no
dst-port=53 in-interface=mweb protocol=tcp
add action=log chain=input comment=“Log Web Telnet Attempt” disabled=no
dst-port=23 in-interface=mweb log-prefix=“Web Telnet Attempt” protocol=
tcp
add action=drop chain=input comment=“Drop Telnet from MWEB” disabled=no
dst-port=23 in-interface=mweb protocol=tcp
add action=accept chain=input comment=“Accept TCP input” disabled=no
protocol=tcp
add action=accept chain=input comment=“Accept UDP input” disabled=no
protocol=udp
add action=log chain=input comment=“Log Invalid Input” connection-state=
invalid disabled=no in-interface=mweb log-prefix=INVALID
add action=drop chain=input comment=“Drop All Invalid to Router”
connection-state=invalid disabled=no in-interface=mweb
add action=accept chain=forward comment=“Accept Established Forward”
connection-state=established disabled=no in-interface=mweb
add action=accept chain=forward comment=“Accept Related Forward”
connection-state=related disabled=no in-interface=mweb
add action=accept chain=forward comment=“Accept LAN forward” disabled=no
in-interface=LAN out-interface=LAN
add action=accept chain=forward disabled=yes protocol=udp
add action=log chain=forward disabled=yes log-prefix=INVALID protocol=udp
add action=drop chain=forward connection-state=invalid disabled=no
in-interface=mweb
/ip firewall nat
add action=masquerade chain=srcnat comment=“NAT going out to public”
disabled=no out-interface=mweb
/ip firewall service-port
set ftp disabled=yes ports=21
set tftp disabled=yes ports=69
set irc disabled=yes ports=6667
set h323 disabled=yes
set sip disabled=yes ports=5060,5061 sip-direct-media=yes
set pptp disabled=yes
I have looked at firewall info on the internet like “securing new routerOS” and watched the Greg Sowell videos.. if there is any resources you have please share could you share with me ![]()
I really appreciate all your help
