This commit is contained in:
darkclip committed 2023-12-29 20:55:59 +08:00
1 parent c8c7562042
commit 7cb0d131cf
3 files changed
+42 -42

No files matched your search

+8 -8
View File
@@ -50,10 +50,10 @@ jobs:
echo 'ip route add 128.0.0.0/1 dev wgcf || true' >> target/wgcf-up.sh
echo 'ip route add ::/1 dev wgcf || true' >> target/wgcf-up.sh
echo 'ip route add 8000::/1 dev wgcf || true' >> target/wgcf-up.sh
./netgen.py ref1/china4.txt -o target/wgcf-up.sh -p 'ip route add ' -s $' dev eth0 via 10.11.0.1 || true\n'
./netgen.py ref1/china6.txt -o target/wgcf-up.sh -p 'ip route add ' -s $' dev eth0 via fe80::6a77:24ff:fed6:809d || true\n'
./netgen.py private4.txt -o target/wgcf-up.sh -p 'ip route add ' -s $' dev eth0 via 10.11.0.1 || true\n'
./netgen.py private6.txt -o target/wgcf-up.sh -p 'ip route add ' -s $' dev eth0 via fe80::6a77:24ff:fed6:809d || true\n'
./netgen.py ref1/china4.txt -o target/wgcf-up.sh -p 'ip route add ' -s ' dev eth0 via 10.11.0.1 || true'
./netgen.py ref1/china6.txt -o target/wgcf-up.sh -p 'ip route add ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
./netgen.py private4.txt -o target/wgcf-up.sh -p 'ip route add ' -s ' dev eth0 via 10.11.0.1 || true'
./netgen.py private6.txt -o target/wgcf-up.sh -p 'ip route add ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
echo 'iptables -t nat -D POSTROUTING -o wgcf -j MASQUERADE || true' >> target/wgcf-down.sh
echo 'ip6tables -t nat -D POSTROUTING -o wgcf -j MASQUERADE || true' >> target/wgcf-down.sh
echo 'iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE || true' >> target/wgcf-down.sh
@@ -65,10 +65,10 @@ jobs:
echo 'ip route del 128.0.0.0/1 dev wgcf || true' >> target/wgcf-down.sh
echo 'ip route del ::/1 dev wgcf || true' >> target/wgcf-down.sh
echo 'ip route del 8000::/1 dev wgcf || true' >> target/wgcf-down.sh
./netgen.py ref1/china4.txt -o target/wgcf-down.sh -p 'ip route del ' -s $' dev eth0 via 10.11.0.1 || true\n'
./netgen.py ref1/china6.txt -o target/wgcf-down.sh -p 'ip route del ' -s $' dev eth0 via fe80::6a77:24ff:fed6:809d || true\n'
./netgen.py private4.txt -o target/wgcf-up.sh -p 'ip route del ' -s $' dev eth0 via 10.11.0.1 || true\n'
./netgen.py private6.txt -o target/wgcf-up.sh -p 'ip route del ' -s $' dev eth0 via fe80::6a77:24ff:fed6:809d || true\n'
./netgen.py ref1/china4.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via 10.11.0.1 || true'
./netgen.py ref1/china6.txt -o target/wgcf-down.sh -p 'ip route del ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
./netgen.py private4.txt -o target/wgcf-up.sh -p 'ip route del ' -s ' dev eth0 via 10.11.0.1 || true'
./netgen.py private6.txt -o target/wgcf-up.sh -p 'ip route del ' -s ' dev eth0 via fe80::6a77:24ff:fed6:809d || true'
cp cf-watch.sh target/
cd target
chmod +x *.sh