• We did not send an email asking for donations - please read this post.

Blocking all IP's except for my public ip for ssh (UFW)

Matt1010

New Member
Joined
Jan 13, 2019
Messages
1
Reaction score
0
Credits
0
Hello,
I'm running a website on Apache2 ubuntu 18.04 and I was wondering how to block all ip addresses except for my public ip address for ssh. Trying to lock the server down as much as I can.
 


9daemon

New Member
Joined
Jan 21, 2019
Messages
20
Reaction score
9
Credits
0
Block it with your firewall. I'm sure you have IP tables or can get something similar. Also make sure 1) SSH is up to date and 2) use public key instead of a password if possible. There are other options like IDS/IPS but simply blocking everything but your IP is your best bet.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Top