Skip to content

Commit

Permalink
add another reverse config
Browse files Browse the repository at this point in the history
  • Loading branch information
veekxt committed Nov 11, 2018
1 parent c829014 commit c5d3a2b
Show file tree
Hide file tree
Showing 5 changed files with 232 additions and 2 deletions.
3 changes: 2 additions & 1 deletion NAT-DDNS/config_client.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"port": 3456,
"users": [
{
"id": "27848739-7e62-4138-9fd3-098a63964b6b"
"id": "27848739-7e62-4138-9fd3-098a63964b6b",
"alterId": 32
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion NAT-DDNS/config_server.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"settings": {
"clients": [
{
"id": "27848739-7e62-4138-9fd3-098a63964b6b"
"id": "27848739-7e62-4138-9fd3-098a63964b6b",
"alterId": 32
}
]
}
Expand Down
67 changes: 67 additions & 0 deletions NAT-PROXY/config_nat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
//
// 效果相当于使用内网设备做正向代理,参考 https://toutyrater.github.io/app/reverse2.html
// 这个文件用于内网设备
//
"log": {},
"dns": {},
"stats": {},
"inbounds": [],
"outbounds": [
{
"tag": "out",
"protocol": "freedom",
"settings": {}
},
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "veekxt.com",
"port": 3456,
"users": [
{
"id": "27848739-7e62-4138-9fd3-098a63964b6b",
"alterId": 32
}
]
}
]
},
"tag": "interconn"
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": [
"bridge"
],
"domain": [
"full:veekxt.com"
],
"outboundTag": "interconn"
},
{
"type": "field",
"inboundTag": [
"bridge"
],
"outboundTag": "out"
}
]
},
"policy": {},
"reverse": {
"bridges": [
{
"tag": "bridge",
"domain": "veekxt.com"
}
]
},
"transport": {}
}
85 changes: 85 additions & 0 deletions NAT-PROXY/config_server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
//
// 效果相当于使用内网设备做正向代理,参考 https://toutyrater.github.io/app/reverse2.html
// 这个文件用于公网设备
//
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"dns": {},
"stats": {},
"inbounds": [
{
"tag": "external",
"port": 44222,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "a26efdb8-ef34-4278-a4e6-2af32cc010aa",
"alterId": 32
}
]
}
},
{
"port": 3456,
"tag": "interconn",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "27848739-7e62-4138-9fd3-098a63964b6b",
"alterId": 32
}
]
}
}
],
"outbounds": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": [
"external"
],
"outboundTag": "portal"
},
{
"type": "field",
"inboundTag": [
"interconn"
],
"domain": [
"full:veekxt.com"
],
"outboundTag": "portal"
}
]
},
"policy": {},
"reverse": {
"portals": [
{
"tag": "portal",
"domain": "veekxt.com"
}
]
},
"transport": {}
}
76 changes: 76 additions & 0 deletions NAT-PROXY/config_user.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
//
// 效果相当于使用内网设备做正向代理,参考 https://toutyrater.github.io/app/reverse2.html
// 这个文件用于真正的客户端,和普通vmess客户端配置无异
//
"log":{},
"dns":{},
"stats":{},
"inbounds":[
{
"port":"1080",
"protocol":"socks",
"settings":{
"auth":"noauth",
"udp":true
},
"tag":"in-0"
},
{
"port":"1081",
"protocol":"http",
"settings":{},
"tag":"in-1"
}
],
"outbounds":[
{
"protocol":"vmess",
"settings":{
"vnext":[
{
"address":"veekxt.com",
"port":44222,
"users":[
{
"id":"a26efdb8-ef34-4278-a4e6-2af32cc010aa",
"alterId":32
}
]
}
]
},
"tag":"out-0",
"streamSettings":{
"network":"tcp",
"security":"none",
"tcpSettings":{}
}
},
{
"tag":"direct",
"protocol":"freedom",
"settings":{}
},
{
"tag":"blocked",
"protocol":"blackhole",
"settings":{}
}
],
"routing":{
"domainStrategy":"IPOnDemand",
"rules":[
{
"type":"field",
"ip":[
"geoip:private"
],
"outboundTag":"direct"
}
]
},
"policy":{},
"reverse":{},
"transport":{}
}

0 comments on commit c5d3a2b

Please sign in to comment.