Dedibox Scaleway Online.net

| 51.158.149.123 |                                     |     |     |     |
| -------------- | ----------------------------------- | --- | --- | --- |
| Reverse        | 51-158-149-123.rev.poneytelecom.eu. |     |     |     |
|                |                                     |     |     |     |
## Installation btrfs /data

* Create big `/data/` disk as `ext4` (via webgui)
* `umount /data`
* Install btrfs tools: `apt install btrfs-progs`
* List disks: `fdisk -l`
* Format whole partition to btrfs: `/sbin/mkfs.btrfs -f /dev/sda4`
* Install neovim: `apt install neovim`
* Get disk UUID: `blkid`
* Add entry in fstab: 
	* `UUID=2e4ffa36-579c-4c46-8cca-0f3ba79f5e21 /data           btrfs   noatime         0       0`
* `systemctl daemon-reload && mount -a && df -h`

# Serial console

* https://www.scaleway.com/en/docs/dedibox/how-to/use-serial-console/

# Firewall

* https://wiki.debian.org/DebianFirewall
* `apt install iptables`
* `/usr/local/sbin/firewall-enable.sh`
* `/etc/systemd/system/firewall.service`
* Run in tmux so firewall testing can be done:
	* `systemctl start firewall && sleep 120 && /usr/local/sbin/firewall-disable.sh`
	* `/sbin/iptables -L -n -v`
* Check if firewall works within 120 seconds (then it is disabled)
* Enable firewall at boot: `systemctl enable firewall.service`

See:
* 