I'm new to Ubuntu.
I have a dev test server at home, and we are working on it with a friend.
We use SSH, FTP, and also some port for mail, web, ect...
I want to allow only our ip from where we are working on this server :
- Local network
- IP from my office
- IP from my friend
- IP from my friend office (We work on the server from office for test too)
I've check the logs and I see a lot of try, some people try to login as root, this is why I want to allow only my friend and I to login. But as it's a Web server, we must keep Web and Mail ports open for incoming.
Not sure if I explain fine. How I can do that ? I already try iptable with no luck, still a lot of incoming connection and attempt to login as root.
Can you please let me know how I can proceed easy ?
Thanks and best regards, GP
sudo iptables -L
(it will list all of your currentiptables
rules) – captainGeech Aug 20 '17 at 14:34DROP all -- 58.218.198.145 anywhere
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination As you can see I already try to block an IP... Because I see more than 65000 try to connect as root.
– gprime Aug 21 '17 at 11:30