1、badssl安装nettools 2、增加docker运行中容器的mac地址
This commit is contained in:
@@ -17,7 +17,9 @@ services:
|
||||
- /root/.badssl_self_test_cert_dict:/badssl.com/unittest_certs
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
command: >
|
||||
bash -c "make clean-certs
|
||||
bash -c "ifconfig eth0 hw ether 02:42:c0:a8:fd:82
|
||||
arp -i eth0 -s 192.168.253.3 02:42:C0:A8:FD:03
|
||||
make clean-certs
|
||||
&& make certs-test
|
||||
&& make inside-docker
|
||||
&& cp -r /badssl.com/certs /badssl.com/unittest_certs
|
||||
@@ -42,6 +44,8 @@ services:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
ifconfig eth0 hw ether 02:42:C0:A8:FD:83
|
||||
arp -i eth0 -s 192.168.253.3 02:42:C0:A8:FD:03
|
||||
/root/wpr/wpr replay --http_port=80 --https_port=443 --host=0.0.0.0 --quiet_mode /root/wpr/archive.wprgo &
|
||||
tail -f /dev/null
|
||||
|
||||
@@ -69,6 +73,9 @@ services:
|
||||
- |
|
||||
/root/unittest/wait-for 172.31.254.2:443 -t 60 -- echo "badssl is up"
|
||||
/root/unittest/wait-for 172.31.254.3:443 -t 60 -- echo "wpr is up"
|
||||
ifconfig eth0 hw ether 02:42:C0:A8:FD:03
|
||||
arp -i eth0 -s 192.168.253.130 02:42:c0:a8:fd:82
|
||||
arp -i eth0 -s 192.168.253.131 02:42:C0:A8:FD:83
|
||||
cp -rf /root/cafile_dict/certs/sets/current/gen/crt/ca-root.crt /usr/local/share/ca-certificates
|
||||
update-ca-certificates
|
||||
cat /root/unittest/badssl.test.hosts >> /etc/hosts
|
||||
|
||||
Reference in New Issue
Block a user