Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic
C ccybersecurityhttp3httpproxylinuxlinux-proxymacosmacos-appmacos-proxyproxifierproxifier-alternativeproxyclienttcpthick-clientudpwindivertwindows
ci(linux): build the Linux-ebpf branch and verify the new build output
anof-cyberf4e7daf48fef
diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.ymlindex 6e96642..00d0484 100644--- a/.github/workflows/build-linux.yml+++ b/.github/workflows/build-linux.yml@@ -5,9 +5,9 @@ permissions:on:push:- branches: [ master, dev ]+ branches: [ master, dev, Linux-ebpf ]pull_request:- branches: [ master, dev ]+ branches: [ master, dev, Linux-ebpf ]workflow_dispatch:jobs:@@ -99,10 +99,64 @@ jobs:echo "✓ GUI built successfully"file Linux/output/ProxyBridgeGUIelse- echo "⚠ GUI build skipped (GTK3 not available or build failed)"+ echo "✗ GUI build failed (GTK3 is installed on this runner)"+ exit 1fishell: bash+ - name: Smoke test the built binaries+ run: |+ cd Linux/output+ # capture output first: `cmd | grep -q` can fail under pipefail when grep exits early (SIGPIPE)+ help_out="$(LD_LIBRARY_PATH="$PWD" ./ProxyBridge --help)"+ grep -q -- "--proxy" <<<"$help_out" && echo "✓ CLI runs and shows its help"+ cli_deps="$(LD_LIBRARY_PATH="$PWD" ldd ./ProxyBridge)"+ grep -q libproxybridge <<<"$cli_deps" && echo "✓ CLI links libproxybridge.so"+ # the GUI must carry an $ORIGIN runpath so it finds the library in its own directory+ gui_dyn="$(readelf -d ./ProxyBridgeGUI)"+ grep -q 'RUNPATH.*\$ORIGIN' <<<"$gui_dyn" && echo "✓ GUI runpath is \$ORIGIN"+ # the library must export the public API+ exports="$(nm -D libproxybridge.so)"+ for sym in ProxyBridge_Start ProxyBridge_Stop ProxyBridge_AddRule ProxyBridge_AddProxy ProxyBridge_ValidateRule; do+ grep -q " T $sym" <<<"$exports" || { echo "✗ missing export $sym"; exit 1; }+ done+ echo "✓ public API exported"+ # no iptables/NFQUEUE dependency may come back+ lib_deps="$(ldd libproxybridge.so)"+ if grep -qi netfilter <<<"$lib_deps"; then echo "✗ libnetfilter dependency is back"; exit 1; fi+ echo "✓ no libnetfilter dependency"+ shell: bash++ - name: Verify the build left the source tree clean+ run: |+ # build.sh compiles in a temp directory: no untracked or ignored file may appear outside Linux/output/+ status="$(git status --porcelain --ignored)"+ dirty="$(grep -E '^(\?\?|!!)' <<<"$status" | grep -v 'Linux/output' || true)"+ if [ -n "$dirty" ]; then+ echo "✗ build left files outside Linux/output:"+ echo "$dirty"+ exit 1+ fi+ echo "✓ source tree clean (only Linux/output/ was written)"+ shell: bash++ - name: End-to-end tests with the real kernel datapath (best effort)+ # Needs root, cgroup v2 and a BTF kernel. GitHub-hosted runners usually have them, but this is not guaranteed,+ # so a failure here is reported without failing the build.+ continue-on-error: true+ run: |+ sudo apt-get install -y dnsutils >/dev/null+ uname -r+ ls /sys/kernel/btf/vmlinux && mount | grep -q "type cgroup2" || { echo "kernel lacks BTF or cgroup2: skipping"; exit 0; }+ fail=0+ for t in e2e e2e_rules e2e_domains api_live; do+ echo "::group::$t"+ sudo env PB_DIR="$PWD/Linux/output" bash "Linux/tests/$t.sh" || fail=1+ echo "::endgroup::"+ done+ exit $fail+ shell: bash+- name: Upload artifactsuses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4with: