Skip to content

Test Transparent Proxy #120

Test Transparent Proxy

Test Transparent Proxy #120

name: "Test Transparent Proxy"
on:
workflow_dispatch:
schedule:
- cron: 0 2 * * *
env:
CI_TOOLS_DIR: "/home/runner/work/kuma/kuma/.ci_tools"
IPV6: "true"
permissions:
contents: read
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: |
${{ env.CI_TOOLS_DIR }}
key: ${{ runner.os }}-${{ runner.arch }}-devtools-${{ hashFiles('mk/dependencies/deps.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-devtools
- run: |
make dev/tools
- name: "Enable IPv6 for Docker and enable necessary kernel modules for ip6tables"
run: |
cat <<'EOF' | sudo tee /etc/docker/daemon.json
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64",
"dns": ["8.8.8.8"],
"dns-search": ["."]
}
EOF
sudo service docker restart
sudo modprobe ip6table_nat
sudo modprobe ip6table_raw
- run: |
make test/transparentproxy