-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heplify Docker ERSPAN #295
Comments
|
Yes i've tried putting in 127.0.0.1 and also the internal docker IP of 172.18.0.8 but still the same. Its possible no traffic is captured. SIP traffic is 100% getting to the mail IP of the Ubuntu server running Docker I'm struggling to debug heplify in docker as I;m not that familiar with it. I can debug standalone with -e flag but can't seem to log anything for this docker container :-( |
Your container doesn't have sufficient privileges'. |
Any ideas how to give the container permission? I've used docker compose logged in as root to install the container...... Critical: setting pcap live mode: ens162: You don't have permission to perform this capture on that device (socket: Operation not permitted) |
If you have access to the running container try to manually run setcap which should provide those permissions:
Since the example is using docker-compose v2 you can also add the following to the container in compose:
|
thanks - I tried the "privileged: true" and re-deployed but no joy. I'll research how to access the running container and run that command. Thanks for support |
You can also simply rebuild the container without the restrictions. This extra layer was recently added. Save this as
Run |
I also tried the test, and for me it is working fine.
|
Thanks yes! Was able to rebuild the container and then deploy it using docker compose but still had the same issue. Found this thread After rebuilding it now works!!! Really appreciate all the time guys For anyone else who finds this I
docker-compose.ymlversion: '2.8' services: heplify: DockerfileRUN apk --update add --no-cache git build-base FROM alpine:4.19 |
Thanks for the confirmation @abitrusty . |
@abitrusty glad you got it working. we'll apply some changes for broader compatibility and/or publish two container variants |
Installed Homer Setup from here https://github.com/sipcapture/homer/wiki/Quick-Install#-docker-install . All working and getting ERSPAN traffic from a heplify agent installed on another box (not docker)
Now trying to install heplify agent as a docker container on same box to collect ERSPAN traffic. I've got the agent container installed but its not sending any traffic to Homer.
Is this something that should work? I've tried changing the {HOMER_DST} to 127.0.0.1 and also 172.18.0.8 - still no traffic in Homer. Any advice is greatly apprecaited
My docker compose file is below
_version: '2.1'
services:
heplify:
container_name: heplify-client
image: sipcapture/heplify:latest
user: 1000:1000
cap_add:
- CAP_NET_ADMIN
- CAP_NET_RAW
command:
./heplify -e -erspan -hs ${HOMER_DST}:9060 -m SIP -dd -l info
network_mode: host
restart: unless-stopped_
Portainer screenshot
The text was updated successfully, but these errors were encountered: