Gateway up/down hook. Runs /usr/local/etc/rc.d/rc.gateway_alarm_custom upon gateway up/down event
- Upload the package to pfSense
- Run from shell:
pkg install pfSense-pkg-gatewayhook-0_3.txz
- Edit /usr/local/etc/rc.d/rc.gateway_alarm_custom upon your needs
- Your gateway(s) should be in a gateway group (System/Routing/Gateway Groups)
In case you want to build this package manually, do:
- Grab Mk directory from https://github.com/pfsense/FreeBSD-ports for your pfSense release version. The easiest way is to use a service like http://kinolien.github.io/gitzip/
- Upload Mk directory content to /usr/ports/Mk on your pfSense
- Put your pfSense's FreeBSD version into /usr/include/sys/param.h:
# cat /usr/include/sys/param.h
#define __FreeBSD_version 1203000
- Upload this repo onto your pfSense, say, in /root/gatewayhook
cd /root/gatewayhook
make package
- The resulting package will be in /root/gatewayhook/work/pkg/ directory