This is a step-by-step guide to setting up a development environment
for working on the pfSense-pkg-zeek
package.
For most people, it will be easiest to work in a FreeBSD VM.
- Create a FreeBSD VM on your favorite virtualization platform
- Install
git
:
# pkg update && pkg install git
- Install
zeek
(will automatically install all dependencies):
# pkg update && pkg install zeek
- Clone repository to disk:
# git clone https://github.com/shadonet/pfSense-pkg-zeek
- Make any changes/updates
- To make a build of the updated package:
# make DISABLE_VULNERABILITIES=yes package
- The output will be a
.txz
file in thework/pkg/
directory
- Create a pfSense VM on your favorite virtualization platform
- Set the interface IP addresses appropriately
- Enable Secure Shell (sshd)
scp
the.txz
package generated earlier to the pfSense VM:
$ scp pfSense-pkg-zeek-3.0.6.txz root@<pfSense VM IP>:
- SSH to the pfSense VM
- Drop to a shell (option 8 at the main menu)
- (If you haven't already) set
FreeBSD: { enabled: yes }
in/usr/local/etc/pkg/repos/FreeBSD.conf
and/usr/local/share/pfSense/pkg/repos/pfSense-repo.conf
- Install
zeek
:
# pkg update && pkg install -y zeek
- Install the package:
# pkg install pfSense-pkg-zeek-3.0.6.txz
- Test the new functionality via the web UI of pfSense