Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #275046 > unrolled thread
| Started by | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| First post | 2024-11-30 21:00 +0100 |
| Last post | 2024-11-30 21:20 +0100 |
| Articles | 8 — 3 participants |
Back to article view | Back to linux.debian.user
Persistent IP Forwarding Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-11-30 21:00 +0100
Re: Persistent IP Forwarding Andy Smith <andy@strugglers.net> - 2024-11-30 21:10 +0100
Re: Persistent IP Forwarding Greg Wooledge <greg@wooledge.org> - 2024-11-30 21:10 +0100
Re: Persistent IP Forwarding Greg Wooledge <greg@wooledge.org> - 2024-11-30 21:20 +0100
Re: Persistent IP Forwarding Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-11-30 21:30 +0100
Re: Persistent IP Forwarding Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-11-30 22:10 +0100
Re: Persistent IP Forwarding Andy Smith <andy@strugglers.net> - 2024-11-30 22:30 +0100
Re: Persistent IP Forwarding Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-11-30 21:20 +0100
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-11-30 21:00 +0100 |
| Subject | Persistent IP Forwarding |
| Message-ID | <JOBNf-cPtg-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hello, 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? Thanks -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-11-30 21:10 +0100 |
| Message-ID | <JOBWV-cPM6-1@gated-at.bofh.it> |
| In reply to | #275046 |
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
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Date | 2024-11-30 21:10 +0100 |
| Message-ID | <JOBWV-cPM6-7@gated-at.bofh.it> |
| In reply to | #275046 |
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).
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Date | 2024-11-30 21:20 +0100 |
| Message-ID | <JOC6B-cPPe-1@gated-at.bofh.it> |
| In reply to | #275048 |
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?
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-11-30 21:30 +0100 |
| Message-ID | <JOCgh-cPSg-5@gated-at.bofh.it> |
| In reply to | #275050 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 3:16 PM Greg Wooledge <greg@wooledge.org> wrote: > 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? > I am running Trixie, so a future release. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-11-30 22:10 +0100 |
| Message-ID | <JOCSZ-cQk9-3@gated-at.bofh.it> |
| In reply to | #275053 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 3:28 PM Timothy M Butterworth < timothy.m.butterworth@gmail.com> wrote: > > > On Sat, Nov 30, 2024 at 3:16 PM Greg Wooledge <greg@wooledge.org> wrote: > >> 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? >> > > I am running Trixie, so a future release. > It appears that systemd-sysctl is replacing sysctl. There is also a replacement for sysctl called Systeroid but it is not currently in Trixie. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-11-30 22:30 +0100 |
| Message-ID | <JODcl-cQss-1@gated-at.bofh.it> |
| In reply to | #275054 |
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
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-11-30 21:20 +0100 |
| Message-ID | <JOC6B-cPPe-3@gated-at.bofh.it> |
| In reply to | #275048 |
[Multipart message — attachments visible in raw view] — view raw
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/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web