[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1690066134569920.jpg (30 KB, 484x429)
30 KB JPG
What do I need to keep a web server secure? These are my use cases:

1) I plan to use it to self-host private git repo remote origins.
2) I'm going to use it to run server programs to self-host a private instance of Love Live School Idol Festival All Stars that I and a friend will connect to from our phones.
3) I may or may not have make a public website someday, who knows.

I am a total beginner, so what are some things I need to be aware of with regards to security and keeping myself safe?

For reference, I will be using a Linux server, probably on some cloud provider like Linode.
>>
Things I have found so far in my research:
>PermitRootLogin no, PasswordAuthentication no, PubkeyAuthentication yes
>Don't use root ever, instead make a user account and give it sudo access (How is this account getting compromised different from root being compromised? I don't understand...)
>Use fail2ban to block brute force attempts
>Use a firewall to block most ports and only allow ports that I will be using; close ports when not in use
>Have separate accounts for git and gameserver
>possibly shut down server when not in use?

Thoughts?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.