chore: improve alma details
This commit is contained in:
parent
846491a1a3
commit
c22de69c3f
1 changed files with 7 additions and 10 deletions
17
AlmaLinux.md
17
AlmaLinux.md
|
@ -105,16 +105,13 @@ printf '%s\n' \
|
||||||
## Cockpit -> https://ip-addr:9090
|
## Cockpit -> https://ip-addr:9090
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> Disable the firewall if you are lazy like me. Exposing ports for other
|
> I run behind an existing firewall, not in a VPS or cloud provider.
|
||||||
> services can be exhausting and I have not learned how to do this for
|
|
||||||
> containers properly. Each container may need a new rule for something, not
|
|
||||||
> sure.
|
|
||||||
> ```bash
|
> ```bash
|
||||||
> systemctl disable --now firewalld
|
> systemctl disable --now firewalld
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Should be able to set up good firewall with only 80/443 open.
|
> Should be able to set up good firewall with only 22/80/443 open.
|
||||||
|
|
||||||
Enable the socket-activated cockpit service and allow it through the firewall.
|
Enable the socket-activated cockpit service and allow it through the firewall.
|
||||||
|
|
||||||
|
@ -146,7 +143,7 @@ dnf install setroubleshoot-server
|
||||||
Podman is a daemonless container hypervisor. This document prepares a fully
|
Podman is a daemonless container hypervisor. This document prepares a fully
|
||||||
rootless environment for our containers to run in.
|
rootless environment for our containers to run in.
|
||||||
|
|
||||||
### Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dnf install podman
|
dnf install podman
|
||||||
|
@ -157,7 +154,7 @@ systemctl enable --now podman
|
||||||
> Read the docs.
|
> Read the docs.
|
||||||
> `man podman-systemd.unit`
|
> `man podman-systemd.unit`
|
||||||
|
|
||||||
### Prepare host networking stack
|
## Prepare host networking stack
|
||||||
|
|
||||||
### slirp4netns
|
### slirp4netns
|
||||||
|
|
||||||
|
@ -185,7 +182,7 @@ dnf install aardvark-dns
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
printf '%s\n' 'net.ipv4.ip_unprivileged_port_start=80' > /etc/sysctl.d/99-unprivileged-port-binding.conf
|
printf '%s\n' 'net.ipv4.ip_unprivileged_port_start=80' > /etc/sysctl.d/99-unprivileged-port-binding.conf
|
||||||
sysctl 'net.ipv4.ip_unprivileged_port_start=80'
|
sysctl -w net.ipv4.ip_unprivileged_port_start=80
|
||||||
```
|
```
|
||||||
|
|
||||||
### Allow containers to route within multiple networks
|
### Allow containers to route within multiple networks
|
||||||
|
@ -195,7 +192,7 @@ printf '%s\n' 'net.ipv4.conf.all.rp_filter=2' > /etc/sysctl.d/99-reverse-path-lo
|
||||||
sysctl -w net.ipv4.conf.all.rp_filter=2
|
sysctl -w net.ipv4.conf.all.rp_filter=2
|
||||||
```
|
```
|
||||||
|
|
||||||
### Prepare container user
|
## Prepare container user
|
||||||
|
|
||||||
This user will be the owner of all containers with no login shell or root
|
This user will be the owner of all containers with no login shell or root
|
||||||
privileges.
|
privileges.
|
||||||
|
@ -248,7 +245,7 @@ exit
|
||||||
> I disabled SELinux to not deal with this for every container.
|
> I disabled SELinux to not deal with this for every container.
|
||||||
> /etc/selinux/config -> `SELINUX=disabled`
|
> /etc/selinux/config -> `SELINUX=disabled`
|
||||||
|
|
||||||
> [!NOTE]
|
> [!TIP]
|
||||||
> Set up the correct policies permanently instead of disabling SELinux
|
> Set up the correct policies permanently instead of disabling SELinux
|
||||||
|
|
||||||
Temporarily set SELinux policy to allow containers to use devices.
|
Temporarily set SELinux policy to allow containers to use devices.
|
||||||
|
|
Loading…
Add table
Reference in a new issue