2020-11-20 16:31:49 +00:00
|
|
|
Some services need some preparation or configuration to work. Not all can work out of the box.
|
|
|
|
|
2020-12-07 15:46:31 +00:00
|
|
|
General:
|
|
|
|
- Every database-backed service needs manual user creation and db creation
|
2021-01-30 19:45:08 +00:00
|
|
|
- Every runlevel that is wanted needs to be stacked on default (services are added to their specific runlevel automatically)
|
2020-12-18 20:50:42 +00:00
|
|
|
- Every service that needs ports needs entries in /etc/iptables/rx-rules{4,6}
|
2020-12-22 23:20:15 +00:00
|
|
|
- Every service that needs data storage needs a volume to back it
|
2020-12-07 15:46:31 +00:00
|
|
|
|
|
|
|
ifupdown-ng:
|
2021-01-29 16:17:50 +00:00
|
|
|
- Public networks should be configured manually since RAs aren't usually configured, private ones also shouldn't rely on the rather unstable DHCP
|
2020-12-13 01:33:40 +00:00
|
|
|
``` HETZNER EXAMPLE
|
|
|
|
auto eth0
|
|
|
|
iface eth0 inet static
|
|
|
|
address
|
|
|
|
netmask 255.255.255.255
|
|
|
|
gateway 172.31.1.1
|
|
|
|
pointopoint 172.31.1.1
|
|
|
|
|
|
|
|
iface eth0 inet6 static
|
|
|
|
address
|
|
|
|
netmask 64
|
|
|
|
gateway fe80::1
|
|
|
|
```
|
2020-12-07 15:46:31 +00:00
|
|
|
```
|
|
|
|
auto eth1
|
2021-01-29 16:17:50 +00:00
|
|
|
iface eth1 inet static
|
|
|
|
address 10.0.X.X
|
|
|
|
netmask 255.255.255.255
|
|
|
|
mtu 1450
|
|
|
|
pointopoint 10.0.0.1
|
|
|
|
post-up ip route add 10.0.0.0/16 via 10.0.0.1 dev eth1
|
2020-12-07 15:46:31 +00:00
|
|
|
```
|
|
|
|
Yggdrasil:
|
|
|
|
- Yggdrasil needs manual configuration for peers and whitelisting
|
|
|
|
|
2020-11-27 09:15:40 +00:00
|
|
|
Unbound:
|
|
|
|
- Set `RESOLV_CONF=no` in /etc/udhcpc/udhcpc.conf to prevent automatic DNS configuration
|
|
|
|
|
2020-11-20 16:31:49 +00:00
|
|
|
OpenSSH SFTP Chroot (part of seedbox):
|
|
|
|
- Bind mounts from location of chroot to /sftp-chroot
|
|
|
|
NOTE: Usually `mount -o bind /seedbox /sftp-chroot`
|
|
|
|
- seedbox user needs to be manually appended to /etc/ssh/sshd_config
|
|
|
|
|
|
|
|
Pleroma:
|
2020-11-27 09:15:40 +00:00
|
|
|
- Migration might be needed between upgrades (/pleroma/bin/pleroma_ctl migrate)
|
2020-12-13 01:33:40 +00:00
|
|
|
|
2021-02-18 13:05:06 +00:00
|
|
|
Wireguard & FastD:
|
|
|
|
- Require the following forwarding rules
|
2020-12-18 20:50:42 +00:00
|
|
|
```
|
|
|
|
*filter
|
|
|
|
-A FORWARD -i rxmain -o eth0 -j ACCEPT
|
|
|
|
-A FORWARD -i eth0 -o rxmain -j ACCEPT
|
2021-02-18 13:05:06 +00:00
|
|
|
-A FORWARD -i rxmain -o crxn0 -j ACCEPT
|
|
|
|
-A FORWARD -i crxn0 -o rxmain -j ACCEPT
|
2020-12-18 20:50:42 +00:00
|
|
|
*nat
|
|
|
|
-A POSTROUTING -o eth0 -j MASQUERADE
|
2021-02-18 13:05:06 +00:00
|
|
|
-A POSTROUTING -o crxn0 -j MASQUERADE
|
|
|
|
```
|
|
|
|
|
|
|
|
FastD:
|
|
|
|
- Requires forwarding on router so that nodes can comminicate via the router
|
|
|
|
```
|
|
|
|
-A FORWARD -i crxn0 -o crxn0 -j ACCEPT
|
|
|
|
```
|
|
|
|
- Router requires this on up
|
|
|
|
```
|
|
|
|
ip -6 addr add fd8a:6111:3b1a:X::1/64 scope global dev $INTERFACE
|
|
|
|
ip -6 route add fd8a:6111:3b1a:X::1/64 dev $INTERFACE protocol static
|
|
|
|
ip link set $INTERFACE up
|
|
|
|
```
|
|
|
|
- Clients require this on up
|
|
|
|
```
|
|
|
|
ip -6 addr add fd8a:6111:3b1a:X::Y/64 scope global dev $INTERFACE
|
|
|
|
ip link set $INTERFACE up
|
|
|
|
ip -6 route add fd8a:6111:3b1a::/48 via fd8a:6111:3b1a:X::1 dev $INTERFACE
|
|
|
|
ip -6 route add fd8a:6111:3b1a:X::/64 via fd8a:6111:3b1a:X::1 dev $INTERFACE
|
|
|
|
ip -6 route del fd8a:6111:3b1a:X::/64 dev $INTERFACE
|
2020-12-18 20:50:42 +00:00
|
|
|
```
|