Skip to content

Instantly share code, notes, and snippets.

@hamidrhashmi
Last active December 5, 2024 08:01
Show Gist options
  • Save hamidrhashmi/208584f190e9d58862f38f4522e02c4f to your computer and use it in GitHub Desktop.
Save hamidrhashmi/208584f190e9d58862f38f4522e02c4f to your computer and use it in GitHub Desktop.
How to configure / deploy heplify on SIP Server

Download and install the Latest heplify release

wget https://github.com/sipcapture/heplify/releases/latest/download/heplify
chmod +x heplify
mv heplify /usr/bin/heplify

Create service file for heplify

vim /etc/systemd/system/heplify.service

Copy and paste the folloinwg line in the file

[Unit]
Description=Captures packets from wire and sends them to Hepic
After=network.target

[Service]
Environment="HEP_ID=8888"
Environment="HEP_SERVER=homer.*****.com:9060"
Environment="HEP_PASSWORD=HEP-TOKEN-Provide-on-Gigapipe-Portal"
Environment="HEP_BUFFER_FILE=/root/HEP.dump"
Environment="HEP_LOG_LEVEL=info"
Environment="HEP_INTERFACE=any"
Environment="HEP_PORTRANGE=5060-6000"
Environment="HEP_PROM_STATS=0.0.0.0:8090"
ExecStart=/usr/bin/heplify -hep-buffer-activate -hep-buffer-file $HEP_BUFFER_FILE -l $HEP_LOG_LEVEL -sl -hi $HEP_ID -i $HEP_INTERFACE -pr $HEP_PORTRANGE -hs $HEP_SERVER -nt tcp -hp $HEP_PASSWORD -t af_packets -tcpsendretries 0 -tcpassembly -prometheus $HEP_PROM_STATS
ExecStop=/bin/kill ${MAINPID}
Restart=on-failure
RestartSec=10s
Type=simple

[Install]
WantedBy=multi-user.target

Reload unit file

systemctl daeon-reload

now start heplifyt as service

systemctl restart heplify

Enjoy 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment