I'm trying to configure persistent IP Forwarding on Trixie. It used to be setup in /etc/sysctl but that file is no longer present.
I used the sudo sysctl -w net.ipv4.ip_forward=1 command and it seems to
work but where is the setting stored at?
I'm trying to configure persistent IP Forwarding on Trixie. It used to be setup in /etc/sysctl but that file is no longer present.
I used the sudo sysctl -w net.ipv4.ip_forward=1 command and it seems to
work but where is the setting stored at?
On Sat, Nov 30, 2024 at 3:05 PM Greg Wooledge <greg@wooledge.org> wrote:
On Sat, Nov 30, 2024 at 14:55:01 -0500, Timothy M Butterworth wrote:
I'm trying to configure persistent IP Forwarding on Trixie. It used to be setup in /etc/sysctl but that file is no longer present.
I used the sudo sysctl -w net.ipv4.ip_forward=1 command and it seems to work but where is the setting stored at?
To make it permanent, either add a line to /etc/sysctl.conf or add a
new file in /etc/sysctl.d/ (check the README.sysctl file in there).
sudo cat /etc/sysctl.conf
cat: /etc/sysctl.conf: No such file or directory
That is the old way of doing it sysctl.conf no longer exists.
On Sat, Nov 30, 2024 at 3:05 PM Greg Wooledge <greg@wooledge.org>wrote:
To make it permanent, either add a line to /etc/sysctl.conf or add a >> > > new file in /etc/sysctl.d/ (check the README.sysctl file in there).
It appears that systemd-sysctl is replacing sysctl. There is also a replacement for sysctl called Systeroid but it is not currently in Trixie.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 164:19:29 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,518 |