Skip to content

Test Transparent Proxy #118

Test Transparent Proxy

Test Transparent Proxy #118

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@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: go.mod
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
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