2016-12-16 17:02:11 -05:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package v2ray.core.app.proxyman;
|
2017-01-08 04:10:37 -05:00
|
|
|
option csharp_namespace = "V2Ray.Core.App.Proxyman";
|
2016-12-16 17:02:11 -05:00
|
|
|
option go_package = "proxyman";
|
|
|
|
option java_package = "com.v2ray.core.app.proxyman";
|
2017-02-03 17:15:10 -05:00
|
|
|
option java_multiple_files = true;
|
2016-12-16 17:02:11 -05:00
|
|
|
|
2017-01-14 18:17:06 -05:00
|
|
|
import "v2ray.com/core/common/net/address.proto";
|
|
|
|
import "v2ray.com/core/common/net/port.proto";
|
|
|
|
import "v2ray.com/core/transport/internet/config.proto";
|
2017-12-27 22:14:07 -05:00
|
|
|
import "v2ray.com/core/transport/internet/domainsocket/config.proto";
|
2018-02-12 01:47:23 -05:00
|
|
|
import "v2ray.com/core/common/serial/typed_message.proto";
|
2017-01-14 18:17:06 -05:00
|
|
|
|
2017-04-02 08:24:10 -04:00
|
|
|
message InboundConfig {
|
|
|
|
}
|
|
|
|
|
2017-01-14 18:17:06 -05:00
|
|
|
message AllocationStrategy {
|
|
|
|
enum Type {
|
|
|
|
// Always allocate all connection handlers.
|
|
|
|
Always = 0;
|
|
|
|
|
|
|
|
// Randomly allocate specific range of handlers.
|
|
|
|
Random = 1;
|
|
|
|
|
|
|
|
// External. Not supported yet.
|
|
|
|
External = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
Type type = 1;
|
|
|
|
|
|
|
|
message AllocationStrategyConcurrency {
|
|
|
|
uint32 value = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Number of handlers (ports) running in parallel.
|
|
|
|
// Default value is 3 if unset.
|
|
|
|
AllocationStrategyConcurrency concurrency = 2;
|
|
|
|
|
|
|
|
|
|
|
|
message AllocationStrategyRefresh {
|
|
|
|
uint32 value = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Number of minutes before a handler is regenerated.
|
|
|
|
// Default value is 5 if unset.
|
|
|
|
AllocationStrategyRefresh refresh = 3;
|
|
|
|
}
|
|
|
|
|
2017-04-24 18:19:22 -04:00
|
|
|
enum KnownProtocols {
|
|
|
|
HTTP = 0;
|
|
|
|
TLS = 1;
|
|
|
|
}
|
|
|
|
|
2017-01-26 14:46:44 -05:00
|
|
|
message ReceiverConfig {
|
2017-01-14 18:17:06 -05:00
|
|
|
v2ray.core.common.net.PortRange port_range = 1;
|
|
|
|
v2ray.core.common.net.IPOrDomain listen = 2;
|
|
|
|
AllocationStrategy allocation_strategy = 3;
|
|
|
|
v2ray.core.transport.internet.StreamConfig stream_settings = 4;
|
2017-01-26 14:46:44 -05:00
|
|
|
bool receive_original_destination = 5;
|
2017-04-24 18:19:22 -04:00
|
|
|
reserved 6;
|
|
|
|
repeated KnownProtocols domain_override = 7;
|
2017-01-14 18:17:06 -05:00
|
|
|
}
|
|
|
|
|
2018-02-12 01:07:16 -05:00
|
|
|
message UnixReceiverConfig {
|
|
|
|
reserved 1;
|
2017-12-27 22:14:07 -05:00
|
|
|
v2ray.core.internet.domainsocket.DomainSocketSettings domainSockSettings = 2;
|
2018-02-12 01:07:16 -05:00
|
|
|
reserved 3;
|
|
|
|
v2ray.core.transport.internet.StreamConfig stream_settings = 4;
|
|
|
|
reserved 5,6;
|
|
|
|
repeated KnownProtocols domain_override = 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
message InboundHandlerConfig {
|
|
|
|
string tag = 1;
|
|
|
|
v2ray.core.common.serial.TypedMessage receiver_settings = 2;
|
|
|
|
v2ray.core.common.serial.TypedMessage proxy_settings = 3;
|
|
|
|
}
|
|
|
|
|
2016-12-16 17:02:11 -05:00
|
|
|
message OutboundConfig {
|
2018-02-12 01:07:16 -05:00
|
|
|
|
2017-01-14 18:17:06 -05:00
|
|
|
}
|
|
|
|
|
2017-01-26 14:46:44 -05:00
|
|
|
message SenderConfig {
|
2017-01-14 18:17:06 -05:00
|
|
|
// Send traffic through the given IP. Only IP is allowed.
|
|
|
|
v2ray.core.common.net.IPOrDomain via = 1;
|
|
|
|
v2ray.core.transport.internet.StreamConfig stream_settings = 2;
|
2017-01-14 18:48:37 -05:00
|
|
|
v2ray.core.transport.internet.ProxyConfig proxy_settings = 3;
|
2017-04-02 08:24:10 -04:00
|
|
|
MultiplexingConfig multiplex_settings = 4;
|
2017-01-14 18:17:06 -05:00
|
|
|
}
|
|
|
|
|
2018-04-04 04:45:46 -04:00
|
|
|
|
|
|
|
message UnixSenderConfig {
|
2018-04-05 06:47:36 -04:00
|
|
|
v2ray.core.internet.domainsocket.DomainSocketSettings domainSockSettings = 1;
|
2018-04-04 04:45:46 -04:00
|
|
|
v2ray.core.transport.internet.StreamConfig stream_settings = 2;
|
|
|
|
v2ray.core.transport.internet.ProxyConfig proxy_settings = 3;
|
|
|
|
MultiplexingConfig multiplex_settings = 4;
|
|
|
|
}
|
|
|
|
|
2017-02-03 17:09:24 -05:00
|
|
|
message MultiplexingConfig {
|
2017-04-12 04:40:21 -04:00
|
|
|
// Whether or not Mux is enabled.
|
2017-02-03 17:09:24 -05:00
|
|
|
bool enabled = 1;
|
2017-04-12 04:40:21 -04:00
|
|
|
// Max number of concurrent connections that one Mux connection can handle.
|
|
|
|
uint32 concurrency = 2;
|
2017-02-03 17:09:24 -05:00
|
|
|
}
|