• Re: Persistent IP Forwarding

    From Andy Smith@21:1/5 to Timothy M Butterworth on Sat Nov 30 21:10:01 2024
    Hi,

    On Sat, Nov 30, 2024 at 02:55:01PM -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?

    All you have to do is the same as you did in /etc/sysctl.conf but in a
    file of your choosing under /etc/sysctl.d/. All explained quite clearly
    in /etc/sysctl.d/README.sysctl and "man sysctl.d".

    Thanks,
    Andy

    --
    https://bitfolk.com/ -- No-nonsense VPS hosting

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Timothy M Butterworth on Sat Nov 30 21:10:01 2024
    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).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Timothy M Butterworth on Sat Nov 30 21:20:01 2024
    On Sat, Nov 30, 2024 at 15:12:01 -0500, Timothy M Butterworth wrote:
    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.

    hobbit:~$ dpkg -S /etc/sysctl.conf
    procps: /etc/sysctl.conf
    hobbit:~$ cat /etc/debian_version
    12.8

    When you say it "no longer exists", are you running a future release
    of Debian, or current stable, or a past release?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Smith@21:1/5 to Timothy M Butterworth on Sat Nov 30 22:30:01 2024
    Hi,

    On Sat, Nov 30, 2024 at 04:03:05PM -0500, Timothy M Butterworth wrote:
    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.

    You've spent quite some time exploring blind alleys instead of:

    - Just doing what I said, or;
    - Just doing what Greg said in the second part of their first answer,
    or;
    - Reading any documentation that's actually in Debian such as "man
    sysctl.d"

    This is really not as big a deal as you are making it!

    Thanks,
    Andy

    --
    https://bitfolk.com/ -- No-nonsense VPS hosting

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)