[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Persistent IP Forwarding





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.



--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply to: