Category: Uncategorized

Activate IP forwarding on Debian 13

If you want to set up some kind of routing (of IP packets) on Debian 13, you first have to ensure that “Forwarding” is activated. By default it isn’t. Activation of Forwarding means that packets coming in at one interface might be transferred to another interface.

The following two commands will show you if forwarding is activated (“1”) or not (“0”):

sysctl net.ipv4.ip_forward
sysctl net.ipv6.conf.all.forwarding

if forwarding is not activated, the following two lines will activate it temporarily (until reboot of the system):

sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1

To make this persistent (“Survive a boot”), create a file /etc/sysctl.d/99-ip-forward.conf with the following two lines as content:

net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

Finally activate this file with

sysctl -p /etc/sysctl.d/99-ip-forward.conf

To verify that it is working check it (after a reboot) with the following two commands:

sysctl net.ipv4.ip_forward
sysctl net.ipv6.conf.all.forwarding

Both commands should deliver “1”.

Check which program hinders windows 11 going to sleep

Sometimes, windows 11 doesn’t go to sleep when expected. Here is a little hint on how to find out which program is the reason.

Open a command window by right clicking on the 4 blue tiles and select “Terminal (Admin)”.

If the following window pops up, select “Yes”.

Enter the following command:

powercfg /requests

Now, the processes which hinder windows from going to sleep are shown. In this case there was a youtube video running in a browser window.

After closing that browser window, the problem was gone and all sub systems had the status “None.”