mirror of
https://git.freestone.net/cramer/pcapmirror.git
synced 2025-12-31 03:50:27 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4356a49271 | |||
| c6caf71afd | |||
| c2166bb7ec | |||
| eb41f3b6e4 |
@@ -3,9 +3,9 @@ stages:
|
|||||||
- build
|
- build
|
||||||
- publish
|
- publish
|
||||||
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
VERSION: 0.4
|
||||||
|
|
||||||
build-bookworm:
|
build-bookworm:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -15,7 +15,7 @@ build-bookworm:
|
|||||||
tags:
|
tags:
|
||||||
- bookworm
|
- bookworm
|
||||||
script:
|
script:
|
||||||
- tar -czf ../pcapmirror_0.3.orig.tar.gz --exclude=debian .
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
||||||
- apt-get update && apt-get install -y libpcap-dev
|
- apt-get update && apt-get install -y libpcap-dev
|
||||||
- dpkg-buildpackage -uc -us
|
- dpkg-buildpackage -uc -us
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
@@ -38,8 +38,7 @@ publish-bookworm:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl
|
- apt-get update && apt-get install -y curl
|
||||||
- ls -la build
|
- ls -la build
|
||||||
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_amd64.deb"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_$VERSION-1_amd64.deb'
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_0.3-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_amd64.deb'
|
|
||||||
|
|
||||||
build-sid:
|
build-sid:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -49,7 +48,7 @@ build-sid:
|
|||||||
tags:
|
tags:
|
||||||
- sid
|
- sid
|
||||||
script:
|
script:
|
||||||
- tar -czf ../pcapmirror_0.3.orig.tar.gz --exclude=debian .
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
||||||
- apt-get update && apt-get install -y libpcap-dev
|
- apt-get update && apt-get install -y libpcap-dev
|
||||||
- dpkg-buildpackage -uc -us
|
- dpkg-buildpackage -uc -us
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
@@ -72,8 +71,7 @@ publish-sid:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl
|
- apt-get update && apt-get install -y curl
|
||||||
- ls -la build
|
- ls -la build
|
||||||
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/sid/pcapmirror_0.3-1_amd64.deb"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/sid/pcapmirror_$VERSION-1_amd64.deb'
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_0.3-1_amd64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/sid/pcapmirror_0.3-1_amd64.deb'
|
|
||||||
|
|
||||||
build-rocky9:
|
build-rocky9:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -85,7 +83,7 @@ build-rocky9:
|
|||||||
script:
|
script:
|
||||||
- dnf install -y libpcap-devel
|
- dnf install -y libpcap-devel
|
||||||
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||||
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v0.3.tar.gz --exclude=debian --exclude=.git .
|
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v$VERSION.tar.gz --exclude=debian --exclude=.git .
|
||||||
- cp -r * /root/rpmbuild/BUILD
|
- cp -r * /root/rpmbuild/BUILD
|
||||||
- rpmbuild -ba pcapmirror.spec
|
- rpmbuild -ba pcapmirror.spec
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
@@ -109,8 +107,7 @@ publish-rocky9:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl
|
- apt-get update && apt-get install -y curl
|
||||||
- ls -la build
|
- ls -la build
|
||||||
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux9/pcapmirror-0.3-1.el8.x86_64.rpm"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-$VERSION-*.el9.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux9/pcapmirror-$VERSION-1.el8.x86_64.rpm'
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-0.3-*.el9.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux9/pcapmirror-0.3-1.el8.x86_64.rpm'
|
|
||||||
|
|
||||||
build-rocky8:
|
build-rocky8:
|
||||||
stage: build
|
stage: build
|
||||||
@@ -122,7 +119,7 @@ build-rocky8:
|
|||||||
script:
|
script:
|
||||||
- dnf install -y libpcap-devel
|
- dnf install -y libpcap-devel
|
||||||
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
- mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||||
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v0.3.tar.gz --exclude=debian --exclude=.git .
|
- tar -czf /root/rpmbuild/SOURCES/pcapmirror-v$VERSION.tar.gz --exclude=debian --exclude=.git .
|
||||||
- cp -r * /root/rpmbuild/BUILD
|
- cp -r * /root/rpmbuild/BUILD
|
||||||
- rpmbuild -ba pcapmirror.spec
|
- rpmbuild -ba pcapmirror.spec
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
@@ -146,21 +143,17 @@ publish-rocky8:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl
|
- apt-get update && apt-get install -y curl
|
||||||
- ls -la build
|
- ls -la build
|
||||||
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux8/pcapmirror-0.3-1.el8.x86_64.rpm"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-$VERSION-*.el8.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux8/pcapmirror-$VERSION-1.el8.x86_64.rpm'
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror-0.3-*.el8.x86_64.rpm ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/rockylinux8/pcapmirror-0.3-1.el8.x86_64.rpm'
|
|
||||||
|
|
||||||
build-pios12:
|
build-pios12:
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
parallel:
|
|
||||||
matrix:
|
|
||||||
- BUILDER: [pios12, pios12-64]
|
|
||||||
tags:
|
tags:
|
||||||
- ${BUILDER}
|
- pios12
|
||||||
script:
|
script:
|
||||||
- tar -czf ../pcapmirror_0.3.orig.tar.gz --exclude=debian .
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
||||||
- apt-get update && apt-get install -y libpcap-dev
|
- apt-get update && apt-get install -y libpcap-dev
|
||||||
- dpkg-buildpackage -uc -us
|
- dpkg-buildpackage -uc -us
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
@@ -173,9 +166,9 @@ build-pios12:
|
|||||||
publish-pios12:
|
publish-pios12:
|
||||||
stage: publish
|
stage: publish
|
||||||
needs:
|
needs:
|
||||||
- "build-pios12: [pios12, pios12-64]"
|
- build-pios12
|
||||||
dependencies:
|
dependencies:
|
||||||
- "build-pios12: [pios12, pios12-64]"
|
- build-pios12
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
tags:
|
tags:
|
||||||
@@ -183,5 +176,37 @@ publish-pios12:
|
|||||||
script:
|
script:
|
||||||
- apt-get update && apt-get install -y curl
|
- apt-get update && apt-get install -y curl
|
||||||
- ls -la build
|
- ls -la build
|
||||||
- 'echo "Uploading to: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_armhf.deb"'
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_armhf.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_$VERSION-1_armhf.deb'
|
||||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_0.3-1_armhf.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_0.3-1_armhf.deb'
|
|
||||||
|
build-pios12-64:
|
||||||
|
stage: build
|
||||||
|
needs: []
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- pios12-64
|
||||||
|
script:
|
||||||
|
- tar -czf ../pcapmirror_$VERSION.orig.tar.gz --exclude=debian .
|
||||||
|
- apt-get update && apt-get install -y libpcap-dev
|
||||||
|
- dpkg-buildpackage -uc -us
|
||||||
|
- mkdir -p build
|
||||||
|
- mv ../pcapmirror*.* build/
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build
|
||||||
|
|
||||||
|
publish-pios12-64:
|
||||||
|
stage: publish
|
||||||
|
needs:
|
||||||
|
- build-pios12-64
|
||||||
|
dependencies:
|
||||||
|
- build-pios12-64
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- bookworm
|
||||||
|
script:
|
||||||
|
- apt-get update && apt-get install -y curl
|
||||||
|
- ls -la build
|
||||||
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/pcapmirror_$VERSION-1_arm64.deb ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/pcapmirror/bookworm/pcapmirror_$VERSION-1_arm64.deb'
|
||||||
|
|||||||
@@ -36,6 +36,14 @@ With this tool, you can mirror traffic directly to a running [Wireshark](https:/
|
|||||||
|
|
||||||
To avoid capturing traffic from your own monitoring machine, configure Wireshark with a capture filter of udp port 37008 or udp dst port 37008. Also, verify that your firewall permits this UDP traffic.
|
To avoid capturing traffic from your own monitoring machine, configure Wireshark with a capture filter of udp port 37008 or udp dst port 37008. Also, verify that your firewall permits this UDP traffic.
|
||||||
|
|
||||||
|
## Original Download Location
|
||||||
|
|
||||||
|
[https://git.freestone.net/cramer/pcapmirror](https://git.freestone.net/cramer/pcapmirror)
|
||||||
|
|
||||||
|
## Packages
|
||||||
|
|
||||||
|
On the original download location you will also find several prebuilt packages.
|
||||||
|
|
||||||
## Compile and Install
|
## Compile and Install
|
||||||
|
|
||||||
Compile the program:
|
Compile the program:
|
||||||
|
|||||||
8
debian/changelog
vendored
8
debian/changelog
vendored
@@ -1,3 +1,11 @@
|
|||||||
|
pcapmirror (0.4-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* IPv6 support for remote destination
|
||||||
|
* remote destination can now also be hostname
|
||||||
|
* added option to enforce IPv4 and IPv6 for remote destination
|
||||||
|
|
||||||
|
-- Matthias Cramer <cramer@freestone.net> Fri, 24 Mar 2025 13:40:00 +0100
|
||||||
|
|
||||||
pcapmirror (0.3-1) unstable; urgency=medium
|
pcapmirror (0.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
* added manpage
|
* added manpage
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH PCAPMIRROR 1 "March 22, 2025" "pcapmirror 0.3" "User Commands"
|
.TH PCAPMIRROR 1 "March 24, 2025" "pcapmirror 0.4" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
pcapmirror \- A command-line tool for capturing and mirroring network traffic
|
pcapmirror \- A command-line tool for capturing and mirroring network traffic
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Name: pcapmirror
|
Name: pcapmirror
|
||||||
Version: 0.3
|
Version: 0.4
|
||||||
Release: %(perl -e 'print time()')%{?dist}
|
Release: %(perl -e 'print time()')%{?dist}
|
||||||
Summary: A simple packet capture mirror
|
Summary: A simple packet capture mirror
|
||||||
License: BSD 3-Clause License
|
License: BSD 3-Clause License
|
||||||
@@ -26,6 +26,10 @@ pcapmirror is a command-line tool for capturing and mirroring network traffic us
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 24 2025 Matthias Cramer <cramer@freesone.net> 0.4-1
|
||||||
|
- IPv6 support for remote destination
|
||||||
|
- remote destination can now also be hostname
|
||||||
|
- added option to enforce IPv4 and IPv6 for remote destination
|
||||||
* Sat Mar 22 2025 Matthias Cramer <cramer@freesone.net> 0.3-1
|
* Sat Mar 22 2025 Matthias Cramer <cramer@freesone.net> 0.3-1
|
||||||
- added manpage
|
- added manpage
|
||||||
* Sat Mar 22 2025 Matthias Cramer <cramer@freesone.net> 0.2-1
|
* Sat Mar 22 2025 Matthias Cramer <cramer@freesone.net> 0.2-1
|
||||||
|
|||||||
Reference in New Issue
Block a user