From e6c5fdf7f711dd1c6cbe02f1e8b6fbdb5f75fbbb Mon Sep 17 00:00:00 2001 From: cyBerta Date: Wed, 14 Aug 2024 18:30:49 +0200 Subject: Refactoring that allows enables Bitmask to handle providers that have more than one obfs4 bridge per host correctly. The refactoring also allows us to filter gateways for transport layer protocols (tcp, udp, kcp) in addition to transport types (openvpn, obfs4, obfs4_hop) --- .../multiple_pts_per_host_eip-service.json | 132 +++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 app/src/test/resources/multiple_pts_per_host_eip-service.json (limited to 'app/src/test/resources') diff --git a/app/src/test/resources/multiple_pts_per_host_eip-service.json b/app/src/test/resources/multiple_pts_per_host_eip-service.json new file mode 100644 index 00000000..2bd053d8 --- /dev/null +++ b/app/src/test/resources/multiple_pts_per_host_eip-service.json @@ -0,0 +1,132 @@ +{ + "gateways":[ + { + "capabilities":{ + "adblock":false, + "filter_dns":false, + "limited":false, + "transport":[ + { + "ports":[ + "80" + ], + "protocols":[ + "tcp", + "udp" + ], + "type":"openvpn" + }, + { + "options":{ + "cert":"XXXX", + "iatMode":"0" + }, + "ports":[ + "443" + ], + "protocols":[ + "tcp" + ], + "type":"obfs4" + }, + { + "options":{ + "cert":"XXXX", + "iatMode":"0" + }, + "ports":[ + "4431" + ], + "protocols":[ + "kcp" + ], + "type":"obfs4" + } + ] + }, + "host":"cod.demo.bitmask.net", + "ip_address":"37.218.245.94", + "location":"North Brabant" + }, + { + "capabilities":{ + "adblock":false, + "filter_dns":false, + "limited":false, + "transport":[ + { + "ports":[ + "80" + ], + "protocols":[ + "tcp", + "udp" + ], + "type":"openvpn" + }, + { + "options":{ + "cert":"XXXX", + "iatMode":"0" + }, + "ports":[ + "443" + ], + "protocols":[ + "udp" + ], + "type":"obfs4" + }, + { + "options":{ + "cert":"XXXX", + "iatMode":"0" + }, + "ports":[ + "4431" + ], + "protocols":[ + "kcp" + ], + "type":"obfs4" + } + ] + }, + "host":"mullet.demo.bitmask.net", + "ip_address":"37.218.241.208", + "location":"Florida" + } + ], + "locations":{ + "Florida":{ + "country_code":"US", + "hemisphere":"N", + "name":"United States", + "timezone":"-6" + }, + "North Brabant":{ + "country_code":"NL", + "hemisphere":"N", + "name":"Netherlands", + "timezone":"+2" + } + }, + "openvpn_configuration":{ + "auth":"SHA512", + "cipher":"AES-256-GCM", + "data-ciphers":"AES-256-GCM", + "dev":"tun", + "float":"", + "keepalive":"10 30", + "key-direction":"1", + "nobind":true, + "persist-key":true, + "rcvbuf":"0", + "sndbuf":"0", + "tls-cipher":"TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384", + "tls-version-min":"1.2", + "verb":"3" + }, + "serial":3, + "version":3 +} \ No newline at end of file -- cgit v1.2.3