vault backup: 2025-09-05 09:04:54

This commit is contained in:
2025-09-05 09:04:54 +02:00
parent 894a381f6d
commit 9a080d1e7d
2 changed files with 32 additions and 9 deletions

View File

@ -9,7 +9,7 @@
* Iptables (native)
* https://wiki.debian.org/iptables
* <https://packages.debian.org/trixie/iptables-persistent>
### IPv4 forwarding
@ -34,6 +34,29 @@ net.ipv4.conf.all.route_localnet = 1
See also:
* https://serverfault.com/questions/551487/dnat-from-localhost-127-0-0-1
### Persistent IP tables
* <https://packages.debian.org/trixie/iptables-persistent>
The rules you have set are temporary and will be lost on reboot. To make them permanent on Debian 13, you need to use the `iptables-persistent` package.
First, install the package:
```
sudo apt-get update
sudo apt-get install iptables-persistent
```
During the installation, you will be prompted to save your current `iptables` rules. Make sure to confirm "Yes". If you are not prompted, you can manually save the rules with these commands:
```
sudo iptables-save | sudo tee /etc/iptables/rules.v4
sudo ip6tables-save | sudo tee /etc/iptables/rules.v6
```
The `iptables-persistent` service will automatically load these rules at startup.
## VPN
Wireguard