dhcpcd-discuss

interfaces are killed after boot

Daniel Huhardeaux

Thu Nov 14 13:25:29 2019

Hi list,

I have an Raspi3 running raspbian/buster. dhcpcd version is 7.0.8 Network uses ipv4 and ipv6.

I want to run a firewall script as soon as an interface (eth0 and wlan0) get's IP's (ipv4 and ipv6). I installed my script
/lib/dhcpcd/dhcpcd-hooks/99-startFW which contains

#
PATHtoFW=/etc/network/if-post-up.d/

case $reason in
        BOUND)
              $PATHtoFW/sfw4 ${interface}
              ;;
        BOUND6)
              $PATHtoFW/sfw6 ${interface}
              ;;
esac

but the scripts are not executed :(

How can I get this work ?

--
TOOTAi Networks

Follow-Ups:
Re: interfaces are killed after bootRoy Marples
Archive administrator: postmaster@marples.name