remove tun template

pull/3844/head
2dust 2023-05-09 16:14:07 +08:00
parent 1dce0f0366
commit 69b3178c13
3 changed files with 1 additions and 101 deletions

View File

@ -37,7 +37,6 @@
public const string v2raySampleInbound = "v2rayN.Sample.SampleInbound";
public const string CustomRoutingFileName = "v2rayN.Sample.custom_routing_";
public const string TunSingboxFileName = "v2rayN.Sample.tun_singbox";
public const string TunSingboxDNSFileName = "v2rayN.Sample.tun_singbox_dns";
public const string TunSingboxInboundFileName = "v2rayN.Sample.tun_singbox_inbound";
public const string TunSingboxRulesFileName = "v2rayN.Sample.tun_singbox_rules";

View File

@ -1,96 +0,0 @@
{
"log": {
"disabled": $log_disabled$,
"level": "debug",
$log_output$
"timestamp": true
},
"dns": $dns_object$ ,
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"interface_name": "singbox_tun",
"inet4_address": "172.19.0.1/30",
"mtu": $mtu$,
"auto_route": true,
"strict_route": $strict_route$,
"stack": "$stack$",
"sniff": true
}
],
"outbounds": [
{
"type": "socks",
"tag": "proxy",
"udp_fragment": true,
"server": "127.0.0.1",
"server_port": $socksPort$
},
{
"type": "block",
"tag": "block"
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns_out"
}
],
"route": {
"auto_detect_interface": true,
"rules": [
{
"inbound": "dns_in",
"outbound": "dns_out"
},
{
"protocol": "dns",
"outbound": "dns_out"
},
{
"network": "udp",
"port": [
135,
137,
138,
139,
5353
],
"outbound": "block"
},
{
"ip_cidr": [
"224.0.0.0/3",
"ff00::/8"
],
"outbound": "block"
},
{
"source_ip_cidr": [
"224.0.0.0/3",
"ff00::/8"
],
"outbound": "block"
},
{
"port": 53,
"process_name": [ $dnsProcessName$],
"outbound": "dns_out"
},
{
"process_name": [ $directProcessName$],
"outbound": "direct"
}
$ruleDirectIPs$
$ruleDirectProcess$
$ruleProxyIPs$
$ruleProxyProcess$
$ruleFinally$
]
}
}

View File

@ -33,10 +33,7 @@
<AdditionalFiles Include="app.manifest" />
<EmbeddedResource Include="Sample\SingboxSampleClientConfig">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Sample\tun_singbox">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource Include="Sample\tun_singbox_dns">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>