segfault/README.md

82 lines
2.6 KiB
Markdown
Raw Normal View History

2022-07-28 16:18:23 +00:00
# segfault.net - A Server Centre Depoyment
2022-09-18 18:53:10 +00:00
This page is for server administrators and those folks who like to run their own Segfault.net Server Centre (SSC). Running your own SSC allows you to offer root-servers to other users.
2022-07-28 16:18:23 +00:00
2022-07-28 17:09:56 +00:00
If this is not what you want and you just like to get a root-shell on your own server then please go to [https://www.thc.org/segfault](http://www.thc.org/segfault) or try our demo deployment:
2022-07-28 16:18:23 +00:00
```shell
ssh root@segfault.net # the password is 'segfault'
```
---
## Deploy a Server Centre:
```shell
2022-08-10 14:28:22 +00:00
git clone --depth 1 https://github.com/hackerschoice/segfault.git && \
2022-07-28 17:38:42 +00:00
cd segfault && \
docker build -t sf-guest guest && \
2022-09-18 18:53:10 +00:00
SF_SEED="$(head -c 1024 /dev/urandom | tr -dc '[:alpha:]' | head -c 32)" && \
echo "SF_SEED=${SF_SEED}" && \
SF_BASEDIR=$(pwd) SF_SEED=${SF_SEED} SF_SSH_PORT=2222 docker-compose up
2022-07-28 16:18:23 +00:00
```
2022-07-28 17:09:56 +00:00
Then log in to a new root server
```shell
ssh -p 2222 root@127.1 # password is 'segfault'
```
2022-07-28 17:38:42 +00:00
Every new SSH connection creates a ***new dedicated root server.***
2022-07-28 17:09:56 +00:00
2022-09-18 18:53:10 +00:00
To stop press Ctrl-C and execute:
2022-07-28 19:10:26 +00:00
```
2022-09-18 18:53:10 +00:00
docker-compose down
2022-07-28 19:10:26 +00:00
```
2022-05-11 11:44:09 +00:00
2022-09-18 18:53:10 +00:00
To start execute:
2022-07-28 19:24:50 +00:00
```
2022-09-18 18:53:10 +00:00
SF_BASEDIR=$(pwd) SF_SEED=SecretFromAbove SF_SSH_PORT=2222 docker-compose up
2022-07-28 19:24:50 +00:00
```
2022-09-18 18:53:10 +00:00
Take a look at `provision/env.example` for a sample `.env` file. Configure the test of the variables in `config/etc/sf/sf.conf`.
2022-07-28 19:46:59 +00:00
2022-09-18 18:53:10 +00:00
# Provisioning
2022-07-28 19:46:59 +00:00
2022-09-18 18:53:10 +00:00
Provisioning turns a freshly created Linux (a bare minimum Installation) into a SSC. It's how we 'ready' a newly launched AWS Instance for SSC deployment. You likely dont ever need this but [we wrote it down anyway](wiki/AWS-Deployment).
2022-07-28 19:24:50 +00:00
2022-05-11 11:44:09 +00:00
---
# BETA TESTING BETA TESTING
Please report back
1. Tools missing
1. Features needed
Some suggestions by others:
1. Allow user to share data via webserver accessible by normal Internet and TOR (.onion) [thanks 0xD1G, L]
1. Allow email access [thanks L]
2022-05-11 11:45:33 +00:00
1. Proxychain [thanks DrWho]
2022-05-11 11:44:09 +00:00
1. **PM me if you have more suggestions**
---
2022-02-28 10:44:25 +00:00
2022-09-18 18:53:10 +00:00
SSC can be deployed in various regions using Route53 to reduce latency.
2022-02-28 10:38:57 +00:00
2022-03-07 07:13:49 +00:00
Helpful links
1. https://github.com/nicolaka/netshoot
2022-03-07 07:59:36 +00:00
1. https://www.linuxserver.io/ and https://github.com/just-containers/s6-overlay
2022-03-07 07:13:49 +00:00
1. https://jordanelver.co.uk/blog/2019/06/03/routing-docker-traffic-through-a-vpn-connection/
2022-03-07 07:59:36 +00:00
1. https://hub.docker.com/r/alexaso/dnsmasq-dnscrypt and https://github.com/crazy-max/docker-cloudflared
2022-09-18 18:53:10 +00:00
1. https://wiki.archlinux.org/title/EncFS
1. https://www.supertechcrew.com/wetty-browser-ssh-terminal/
2022-03-07 07:13:49 +00:00
VPN Providers:
1. ProtonVPN
1. NordVPN
1. https://www.cryptostorm.is/
2022-06-30 12:02:22 +00:00
1. https://mullvad.net/en/
2022-03-07 07:13:49 +00:00
Hosting providers:
1. https://www.linode.com/
1. https://1984hosting.com/
2022-05-11 11:44:09 +00:00
---
Telegram: https://t.me/thcorg
Twitter: https://twitter.com/hackerschoice