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