Skip to content

Commit a7bed7f

Browse files
committed
ci: Test IPv6 for WAN and LAN
1 parent 1b4a222 commit a7bed7f

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/kernel-test.yml

+30-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
cd /host
134134
135135
docker exec dae apt update
136-
docker exec dae apt install -y curl dnsutils
136+
docker exec dae apt install -y curl dnsutils netcat
137137
138138
vmess_link=$(base64 -w0 vmess.json)
139139
cat > ./conf.dae <<!
@@ -187,6 +187,17 @@ jobs:
187187
docker exec dae dig @8.8.8.8 one.one.one.one
188188
cat /host/v2ray.access.log | grep -q 'accepted udp:8.8.8.8:53'
189189
190+
- name: Check WAN IPv6 TCP
191+
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
192+
with:
193+
provision: 'false'
194+
cmd: |
195+
set -ex
196+
197+
docker exec dae nc -v -w1 2606:4700:4700::1111 80 &> /host/nc.log
198+
cat /host/nc.log | grep -q 'succeeded!'
199+
cat /host/dae.log | grep -F -- '-> [2606:4700:4700::1111]:80'
200+
190201
- name: Setup LAN
191202
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
192203
with:
@@ -211,6 +222,12 @@ jobs:
211222
ip net e dae ip r a 169.254.0.1 dev dae-veth
212223
ip net e dae ip r a default via 169.254.0.1 dev dae-veth
213224
225+
sysctl net.ipv6.conf.dae-veth-peer.disable_ipv6=0
226+
ip -6 r a fd00:ffff::1 dev dae-veth-peer
227+
ip -6 a a fe80::ecee:eeff:feee:eeee dev dae-veth-peer
228+
ip net e dae ip -6 a a fd00:ffff::1 dev dae-veth
229+
ip net e dae ip -6 r r default via fe80::ecee:eeff:feee:eeee dev dae-veth
230+
214231
sysctl net.ipv4.conf.dae-veth-peer.proxy_arp=1
215232
sysctl net.ipv4.conf.dae-veth-peer.rp_filter=2
216233
iptables-legacy -t nat -A POSTROUTING -s 10.0.0.1/32 -j MASQUERADE
@@ -219,6 +236,7 @@ jobs:
219236
220237
docker exec dae ping -c1 10.0.0.1
221238
docker exec dae ip net e dae curl 1.0.0.1
239+
docker exec dae ping -c1 fd00:ffff::1
222240
223241
docker exec dae sysctl net.ipv4.conf.dae-veth-peer.send_redirects=0
224242
docker exec dae sysctl net.ipv6.conf.dae-veth-peer.forwarding=1
@@ -274,3 +292,14 @@ jobs:
274292
275293
docker exec dae ip net e dae dig @8.8.4.4 one.one.one.one
276294
cat /host/v2ray.access.log | grep -q 'accepted udp:8.8.4.4:53'
295+
296+
- name: Check LAN IPv6 TCP
297+
uses: cilium/little-vm-helper@908ab1ff8a596a03cd5221a1f8602dc44c3f906d # v0.0.12
298+
with:
299+
provision: 'false'
300+
cmd: |
301+
set -ex
302+
303+
docker exec dae ip net e dae nc -v -w1 2606:4700:4700::1001 80 &> /host/nc.log
304+
cat /host/nc.log | grep -q 'succeeded!'
305+
cat /host/dae.log | grep -F -- '-> [2606:4700:4700::1001]:80'

0 commit comments

Comments
 (0)