h0bbl3s

joined 7 months ago
[–] h0bbl3s 2 points 6 months ago* (last edited 6 months ago) (2 children)

Nice. I might have to clone that setup for fun. What do you use for CI? I've got jenkins running but I've been wanting to play with gitlab CI/CD too.

I do a lot of my dev work in docker containers, simply so I'm in a clean environment. Doesn't hurt in ease of backup either. No particular reason not to use docker, I also wanted to keep it kind of brief and simple. The guide I originally read that inspired me had a lot of things that were very outdated, and as I worked through getting it working on debian 12 I generally stuck with the source providers instructions when things weren't already packaged for dpkg, or alternatives were more complex.

I am currently mulling around doing extensions on this guide and adding links at the bottom, or just extending this one a bit. Also just thinking about writing a guide for other stuff too. I've been helping people on discord and irc a bit recently and some of what I know might be useful to someone.

I don't know everything by any means far from it, but I've been around since my first beOS and slackware installs a long time ago and I've picked up a lot. I worked developing and deploying pfsense images for a company years ago and have just had a lot of random experience in linux and bsds over the years.

[–] h0bbl3s 3 points 6 months ago* (last edited 6 months ago) (5 children)

Awesome it is good to see the bearblog getting some love. Just to keep it short mostly. I was debating adding another article continuing this one using nginx for that part. I could add a section to this one though. Or would you use something other than nginx, I'm open to suggestions. I checked yours out, it's a bit snappier than mine :) . What are you running?

[–] h0bbl3s 4 points 6 months ago (6 children)

I know you said preferably no docker, but greenbone community edition is nice. It's a fork from nessus back in the day. They don't really put any restrictions on the community version. If you want to see it in action I have a test server up and running.

[–] h0bbl3s 1 points 6 months ago

Excellent thank you! I'll check this out.

[–] h0bbl3s 1 points 6 months ago

Awesome I'll look into it for sure!

[–] h0bbl3s 1 points 6 months ago

Oh gotcha. It was late when I replied :p. You absolutely get security with a layer of separation from hosting remotely. I monitor my home network and have a similar setup but I don't host anything from here. I never get attacked or probed at all compared to my remote server. Just having those open ports makes you a target. Once a few scanners pick up on you hosting content you will absolutely start getting attacked. Another benefit is you don't have to have any passwords on your remote host, just an ssh key. They can bruteforce all they want, good luck without a zero day. You also keep your personal IP address out of peoples scope by not hosting from the local network.

I used to run much heavier protection on my home network, but after keeping an eye on all the logs and alerts for a while I realized I was just wasting ram and storage space mostly. Sane firewall settings is enough for a typical home, and something like crowdsec is probably overkill.

Now if you are hosting stuff it's a different story. I would actually harden my local network MORE than I did the remote one due to much more of my personal stuff being on my local network. My remote host being compromised would be a mild hassle at most, It does self backups once a week, and I have my entire site in a private git repo I sync to. It would take a few minutes to throw up another server, if my home stuff got compromised a lot more damage could be done.

[–] h0bbl3s 1 points 6 months ago (2 children)

Hah did not know about that thanks!

[–] h0bbl3s 2 points 6 months ago

I've got plenty of experience with docker and I've heard of traefik but never used it. Thanks, I'm gonna look into it.

[–] h0bbl3s 4 points 6 months ago* (last edited 6 months ago) (13 children)

I know I know. If you wanna install certbot another way feel free. Share it with me I'm sure it'll take up less space. I only did it that way because it's the certbot official©®™ instructions. That and I had issues with the other method I tried.

[–] h0bbl3s 4 points 6 months ago (2 children)

My site is on a rented server at digital ocean. Some providers do more or less to protect you themselves though. I don't think digital ocean does much monitoring or protecting, I've had servers on there compromised in the past that would have been caught by my current setup. It can't hurt in any case.

I also run crowdsec on my home setup but I don't have any open ports at home and never get alerts. I had suricata running and plugged into crowdsec as well so it would handle blocking for both, but suricata never got to get any action with crowdsec blocking malicious activity, so I disabled it to save resources.

[–] h0bbl3s 3 points 6 months ago* (last edited 6 months ago)

They aren't exactly CLI but I really like obsidian for taking notes. It's not open source though. Logseq is good too and is OSS. Both use markdown for formatting so if you are familiar with writing pages on GitHub you'll have no trouble. Even if not markdown is super easy to learn. That and all of your data stays local and in open formats. I edit my stuff in a terminal anyway.

Just look up obsidian OSINT on YouTube you'll find some good stuff on how to use it.

Another thought is just use markdown files and a directory structure in a private git repo. You'd be able to interact with it locally entirely in the terminal with vim etc and have the option of going online and searching or organizing etc. You could probably even use a cli browser for that part if you wanted.

[–] h0bbl3s 1 points 6 months ago* (last edited 6 months ago)

I was actually working on this earlier. Look at this

https://www.digitalocean.com/community/tutorials/debugging-go-code-with-visual-studio-code

Edit: I went through the tutorial later, showed me exactly what I was looking for. Worked perfectly.

view more: ‹ prev next ›