2020-11-25 19:01:53 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package xray.proxy.freedom;
|
|
|
|
|
option csharp_namespace = "Xray.Proxy.Freedom";
|
2020-12-04 09:36:16 +08:00
|
|
|
option go_package = "github.com/xtls/xray-core/proxy/freedom";
|
2020-11-25 19:01:53 +08:00
|
|
|
option java_package = "com.xray.proxy.freedom";
|
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
|
|
|
|
|
import "common/protocol/server_spec.proto";
|
2025-08-19 16:03:12 +02:00
|
|
|
import "transport/internet/config.proto";
|
2026-05-02 09:54:34 +08:00
|
|
|
import "common/net/port.proto";
|
|
|
|
|
import "common/net/network.proto";
|
2026-04-16 07:41:11 +08:00
|
|
|
import "common/geodata/geodat.proto";
|
2020-11-25 19:01:53 +08:00
|
|
|
|
|
|
|
|
message DestinationOverride {
|
|
|
|
|
xray.common.protocol.ServerEndpoint server = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-22 04:59:58 +02:00
|
|
|
message Fragment {
|
2023-07-06 16:30:39 +00:00
|
|
|
uint64 packets_from = 1;
|
|
|
|
|
uint64 packets_to = 2;
|
|
|
|
|
uint64 length_min = 3;
|
|
|
|
|
uint64 length_max = 4;
|
|
|
|
|
uint64 interval_min = 5;
|
|
|
|
|
uint64 interval_max = 6;
|
2025-08-08 01:56:09 +02:00
|
|
|
uint64 max_split_min = 7;
|
|
|
|
|
uint64 max_split_max = 8;
|
2023-05-22 04:59:58 +02:00
|
|
|
}
|
2026-05-02 09:54:34 +08:00
|
|
|
|
2024-08-28 14:10:11 -07:00
|
|
|
message Noise {
|
|
|
|
|
uint64 length_min = 1;
|
|
|
|
|
uint64 length_max = 2;
|
|
|
|
|
uint64 delay_min = 3;
|
|
|
|
|
uint64 delay_max = 4;
|
2025-01-02 16:21:32 +08:00
|
|
|
bytes packet = 5;
|
2025-08-08 01:56:09 +02:00
|
|
|
string apply_to = 6;
|
2024-08-28 14:10:11 -07:00
|
|
|
}
|
2023-05-22 04:59:58 +02:00
|
|
|
|
2026-05-02 09:54:34 +08:00
|
|
|
enum RuleAction {
|
|
|
|
|
Allow = 0;
|
|
|
|
|
Block = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message FinalRuleConfig {
|
|
|
|
|
RuleAction action = 1;
|
|
|
|
|
repeated xray.common.net.Network networks = 2;
|
|
|
|
|
xray.common.net.PortList port_list = 3;
|
|
|
|
|
repeated xray.common.geodata.IPRule ip = 4;
|
2026-04-16 07:41:11 +08:00
|
|
|
}
|
|
|
|
|
|
2020-11-25 19:01:53 +08:00
|
|
|
message Config {
|
2025-08-19 16:03:12 +02:00
|
|
|
xray.transport.internet.DomainStrategy domain_strategy = 1;
|
2020-11-25 19:01:53 +08:00
|
|
|
DestinationOverride destination_override = 3;
|
|
|
|
|
uint32 user_level = 4;
|
2024-02-03 09:10:23 +08:00
|
|
|
Fragment fragment = 5;
|
|
|
|
|
uint32 proxy_protocol = 6;
|
2024-09-16 05:46:30 -07:00
|
|
|
repeated Noise noises = 7;
|
2026-05-02 09:54:34 +08:00
|
|
|
repeated FinalRuleConfig final_rules = 8;
|
2020-11-25 19:01:53 +08:00
|
|
|
}
|