Skip to content

Commit 4a6e584

Browse files
authored
Merge pull request #4481 from swagatbora90/load_br_netfilter_module
ci: Load br_netfilter module in linux runners
2 parents 832c455 + 1b2bfb9 commit 4a6e584

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/job-test-in-container.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ jobs:
7070
- name: "Init: expose GitHub Runtime variables for gha"
7171
uses: crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3.1.0
7272

73+
- name: "Init: install br-netfilter"
74+
run: |
75+
# This ensures that bridged traffic goes through netfilter
76+
sudo modprobe br-netfilter
7377
- name: "Init: register QEMU (tonistiigi/binfmt)"
7478
run: |
7579
# `--install all` will only install emulation for architectures that cannot be natively executed

.github/workflows/job-test-in-host.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ jobs:
156156
sudo apt-get install -qq expect
157157
echo "::endgroup::"
158158
159+
# This ensures that bridged traffic goes through netfilter
160+
sudo modprobe br-netfilter
161+
159162
- if: ${{ contains(inputs.runner, 'windows') && env.SHOULD_RUN == 'yes' }}
160163
name: "Init (windows): prepare host"
161164
env:

0 commit comments

Comments
 (0)