jazzl0ver / pfSense-pkg-gatewayhook

Gateway up/down hook. Runs /usr/local/etc/rc.d/rc.gateway_alarm_custom upon gateway up/down event

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pfSense-pkg-gatewayhook

Gateway up/down hook. Runs /usr/local/etc/rc.d/rc.gateway_alarm_custom upon gateway up/down event

Installation

  1. Upload the package to pfSense
  2. Run from shell:
pkg install pfSense-pkg-gatewayhook-0_3.txz
  1. Edit /usr/local/etc/rc.d/rc.gateway_alarm_custom upon your needs
  2. Your gateway(s) should be in a gateway group (System/Routing/Gateway Groups)

Building

In case you want to build this package manually, do:

  1. 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/
  2. Upload Mk directory content to /usr/ports/Mk on your pfSense
  3. Put your pfSense's FreeBSD version into /usr/include/sys/param.h:
# cat /usr/include/sys/param.h
#define __FreeBSD_version 1203000
  1. Upload this repo onto your pfSense, say, in /root/gatewayhook
cd /root/gatewayhook
make package
  1. The resulting package will be in /root/gatewayhook/work/pkg/ directory

About

Gateway up/down hook. Runs /usr/local/etc/rc.d/rc.gateway_alarm_custom upon gateway up/down event

License:Apache License 2.0


Languages

Language:PHP 62.3%Language:Makefile 31.2%Language:Shell 6.4%