This repository was archived by the owner on Feb 7, 2025. It is now read-only.
File tree 4 files changed +14
-6
lines changed
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 3
3
cloudflarewarp :
4
4
plugin :
5
5
cloudflarewarp :
6
- disableDefault : false
6
+ disableDefault : true
Original file line number Diff line number Diff line change 3
3
cloudflarewarp :
4
4
plugin :
5
5
cloudflarewarp :
6
+ disableDefault : false
6
7
trustip :
7
8
- 10.0.0.0/8
8
9
- 172.0.0.0/8
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ cp "./config/${1}.${2}" "./tempconfig/config.${2}"
22
22
chmod -R 7777 ./logs;
23
23
chmod -R 7777 ./tempconfig;
24
24
25
+ sleep 2s;
26
+
25
27
if [ " ${3} " = " stack" ]; then
26
28
docker stack deploy -c docker-stack.yml test-instance;
27
29
sleep 1s;
@@ -52,6 +54,7 @@ while ! grep -q "Propagating new UP status" "./logs/debug.log" && [ $iterations
52
54
done
53
55
54
56
curl -H " CF-Connecting-IP:${4} " -H " CF-Visitor:{\" scheme\" :\" https\" }" http://localhost:4008/ >> ./logs/output.log;
57
+ echo " Headers:\nCF-Connecting-IP:${4} \nCF-Visitor:{\" scheme\" :\" https\" }" >> ./logs/request.log
55
58
cat ./logs/output.log;
56
59
57
60
if [ " ${3} " = " stack" ] ; then
Original file line number Diff line number Diff line change 1
1
SUCCESS_CONFIG_FILE=" ./logs-success-${1} /output.log"
2
2
FAIL_CONFIG_FILE=" ./logs-fail-${1} /output.log"
3
3
4
- echo " RUNNING TESTS FOR ${1} " ;
4
+ echo " RUNNING TESTS FOR ${1} "
5
+ echo " - Succ $SUCCESS_CONFIG_FILE "
6
+ echo " - Fail $FAIL_CONFIG_FILE "
7
+
8
+ sleep 1s
5
9
6
10
if ! grep -q " X-Is-Trusted: yes" $SUCCESS_CONFIG_FILE ; then
7
- echo " X-Is-Trusted header was not added and parsed"
11
+ echo " ' X-Is-Trusted: yes' header was not added and parsed ( $SUCCESS_CONFIG_FILE ) "
8
12
exit 5
9
13
fi
10
14
if ! grep -q " X-Forwarded-For: ${2} " $SUCCESS_CONFIG_FILE ; then
11
- echo " IP header not defined"
15
+ echo " 'X-Forwarded-For: ${2} ' header not defined ( $SUCCESS_CONFIG_FILE ) "
12
16
exit 5
13
17
fi
14
18
# if ! grep -q "X-Real-Ip: 10.0.0.2" $SUCCESS_CONFIG_FILE; then
15
19
# echo "IP real not defined"
16
20
# exit 5
17
21
# fi
18
22
if ! grep -q " Cf-Visitor: {\" scheme\" :\" https\" }" $SUCCESS_CONFIG_FILE ; then
19
- echo " Schema header not defined"
23
+ echo " 'Cf-Visitor: { \" scheme \" : \" https \" }' header not defined ( $SUCCESS_CONFIG_FILE ) "
20
24
exit 5
21
25
fi
22
26
23
27
if ! grep -q " X-Is-Trusted: no" $FAIL_CONFIG_FILE ; then
24
- echo " X-Is-Trusted header was not added to the invalid request"
28
+ echo " ' X-Is-Trusted: no' header was not added to the invalid request ( $FAIL_CONFIG_FILE ) "
25
29
exit 5
26
30
fi
27
31
# if ! grep -q "X-Forwarded-For: 10.0.0.2" $FAIL_CONFIG_FILE; then
You can’t perform that action at this time.
0 commit comments