Menu

low-power / Blog: Recent posts

Disable ICMP redirect messages

The ICMP redirect messages modify the kernel routing table in an undesirable way; it should be disabled from both manageability and security considerations.

The followings show some configuration command examples for different OS kernels.

Ignore incoming ICMP redirect

kFreeBSD or XNU

sysctl net.inet.icmp.drop_redirect=1

Linux

sysctl net.ipv4.conf.all.accept_redirects=0
sysctl net.ipv6.conf.all.accept_redirects=0

Solaris kernel

ipadm set-prop -p _ignore_redirect=1 ipv4
ipadm set-prop -p _ignore_redirect=1 ipv6

4.3 BSD kernel for VAX

sh echo "_rtredirect/W 01040000" | adb -k -w /vmunix /dev/mem... read more

Posted by WHR 2024-08-04 Labels: icmp-redirect

Reencoding audio repeatly using ffmpeg with different lossy encoders

After reading Bernhold's Nine different audio encoders 100-pass recompression test, I had an idea of quickly testing some free encoders for common audio codecs available from ffmpeg(1).

So I came up the following Unix shell script in a few minutes:
```sh

!/bin/sh... read more

Posted by WHR 2023-07-17 Labels: ffmpeg audio codec