feat: 1. 添加测试dns防火墙的测试例
2. 修改dns的openfile的镜像源, 解决源镜像无法下载问题
This commit is contained in:
@@ -45,13 +45,37 @@ services:
|
||||
arp -i eth0 -s 192.0.2.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
|
||||
|
||||
|
||||
dns_server:
|
||||
image: "dns-server-diagnose:latest"
|
||||
container_name: "dns-server-diagnose"
|
||||
tty: true
|
||||
privileged: true
|
||||
networks:
|
||||
vlan_ssl_net:
|
||||
ipv4_address: 192.0.2.135
|
||||
ipv6_address: fd00:a1bf:2c3d:ef5a:1e2f:3d4c:56ab:1015
|
||||
bridge_net:
|
||||
ipv4_address: 192.51.100.5
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
entrypoint: /bin/sh
|
||||
command:
|
||||
- -c
|
||||
- |
|
||||
ifconfig eth0 hw ether 02:42:C0:A8:FD:85
|
||||
arp -i eth0 -s 192.0.2.3 02:42:C0:A8:FD:03
|
||||
echo 66.66.66.66 www.1testanswer-cname.com >> /etc/hosts
|
||||
webproc --config /etc/dnsmasq.conf -- dnsmasq --no-daemon &
|
||||
tail -f /dev/null
|
||||
|
||||
unittest_client:
|
||||
image: "unittest-tsg-diagnose:latest"
|
||||
container_name: "unittest_tsg-diagnose"
|
||||
depends_on:
|
||||
- badssl_server
|
||||
- wpr_server
|
||||
- dns_server
|
||||
tty: true
|
||||
privileged: true
|
||||
networks:
|
||||
@@ -74,6 +98,7 @@ services:
|
||||
ifconfig eth0 hw ether 02:42:C0:A8:FD:03
|
||||
arp -i eth0 -s 192.0.2.130 02:42:c0:a8:fd:82
|
||||
arp -i eth0 -s 192.0.2.131 02:42:C0:A8:FD:83
|
||||
arp -i eth0 -s 192.0.2.135 02:42:C0:A8:FD:85
|
||||
mkdir -p /root/result_tsg_diagnose/unittest
|
||||
mkdir -p /root/result_tsg_diagnose/conn_traffic_status
|
||||
cp -rf /root/cafile_dict/certs/sets/current/gen/crt/ca-root.crt /usr/local/share/ca-certificates
|
||||
@@ -83,6 +108,7 @@ services:
|
||||
echo '0 2 * * * /usr/local/bin/python /root/unittest/clear_file_timeout.py -d /root/result_tsg_diagnose/conn_traffic_status' > /etc/crontabs/root
|
||||
crond
|
||||
python /root/unittest/tsg_diagnose.py -l -w NEZHA
|
||||
tail -f /dev/null
|
||||
|
||||
|
||||
networks:
|
||||
@@ -99,7 +125,7 @@ networks:
|
||||
driver: macvlan
|
||||
enable_ipv6: true
|
||||
driver_opts:
|
||||
parent: enp1s1
|
||||
parent: eth_vf_dign_s
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 192.0.2.0/24
|
||||
@@ -114,7 +140,7 @@ networks:
|
||||
driver: macvlan
|
||||
enable_ipv6: true
|
||||
driver_opts:
|
||||
parent: ens1f1
|
||||
parent: eth_vf_dign_c
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 192.0.2.0/24
|
||||
|
||||
Reference in New Issue
Block a user