Showing posts with label ftp. Show all posts
Showing posts with label ftp. Show all posts

Sunday, November 23, 2014

Prevent SSH & FTP attacks to Mikrotik


Prevent attacks to your Mikrotik router
If you have  a valid static IP address on your router interface then you have to be cautious and prevent any unwanted login.

This configuration allows only 10 FTP login incorrect answers per minute
in  /ip firewall filter

add chain=input protocol=tcp dst-port=21 src-address-list=ftp_blacklist action=drop \
comment="drop ftp attack"

add chain=output action=accept protocol=tcp content="530 Login incorrect" dst-limit=1/1m,9,dst-address/1m

add chain=output action=add-dst-to-address-list protocol=tcp content="530 Login incorrect" \
address-list=ftp_blacklist address-list-timeout=1h

This will prevent  an unwanted ssh attempt
in /ip firewall filter

add chain=input protocol=tcp dst-port=22 src-address-list=ssh_blacklist action=drop \
comment="drop ssh brute forcers" disabled=no

add chain=input protocol=tcp dst-port=22 connection-state=new \
src-address-list=ssh_stage3 action=add-src-to-address-list address-list=ssh_blacklist \
address-list-timeout=2h comment="" disabled=no

add chain=input protocol=tcp dst-port=22 connection-state=new \
src-address-list=ssh_stage2 action=add-src-to-address-list address-list=ssh_stage3 \
address-list-timeout=1m comment="" disabled=no

add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage1 \
action=add-src-to-address-list address-list=ssh_stage2 address-list-timeout=1m comment="" disabled=no

add chain=input protocol=tcp dst-port=22 connection-state=new action=add-src-to-address-list \
address-list=ssh_stage1 address-list-timeout=1m comment="" disabled=no

If you want to block downstream access as well, you need to block the with the forward chain:

add chain=forward protocol=tcp dst-port=22 src-address-list=ssh_blacklist action=drop \
comment="drop ssh brute downstream" disabled=no

To view the Blacklist, go to "/ip firewall address-list" and type "print"

Wednesday, July 23, 2014

How to change prestashop admin panel url address



Firstly installed prestashop change the admin directory name to something random, like admin1389, then you have to login to your website using http://yoursite.com/admin1389

 if you want to change this url:
1- go to your hosting panel or login through ftp 
2- change the admin folder name to whatever you want
3- use your new url address to login to back-office