Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
veekxt committed Nov 10, 2018
0 parents commit 9c20344
Show file tree
Hide file tree
Showing 40 changed files with 2,522 additions and 0 deletions.
10 changes: 10 additions & 0 deletions H2+vmess+Caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
https://veekxt.com:443 {
tls veekxt@gmail.com
root /var/www/

proxy /veekxt_websocket_test https://127.0.0.1:44222 {
header_upstream Host "veekxt.com"
header_upstream X-Forwarded-Proto "https"
insecure_skip_verify
}
}
80 changes: 80 additions & 0 deletions H2+vmess+Caddy/config_client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"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":443,
"users":[
{
"id":"8e9dad36-3166-49b6-8565-4f1d45b2d3cf",
"alterId":32
}
]
}
]
},
"tag":"out-0",
"streamSettings":{
"network":"http",
"security":"tls",
"httpSettings":{
"path":"/veekxt_websocket_test",
"host":[
"veekxt.com"
]
},
"tlsSettings":{
"serverName":""
}
}
},
{
"tag":"direct",
"protocol":"freedom",
"settings":{}
},
{
"tag":"blocked",
"protocol":"blackhole",
"settings":{}
}
],
"routing":{
"domainStrategy":"IPOnDemand",
"rules":[
{
"type":"field",
"ip":[
"geoip:private"
],
"outboundTag":"direct"
}
]
},
"policy":{},
"reverse":{},
"transport":{}
}
70 changes: 70 additions & 0 deletions H2+vmess+Caddy/config_server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"dns": {},
"stats": {},
"inbounds": [
{
"port": 44222,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "8e9dad36-3166-49b6-8565-4f1d45b2d3cf",
"alterId": 32
}
]
},
"tag": "in-0",
"streamSettings": {
"network": "http",
"security": "tls",
"httpSettings": {
"path": "/veekxt_websocket_test",
"host": [
"veekxt.com"
]
},
"tlsSettings": {
"certificates": [
{
"certificateFile": "/root/.acme.sh/veekxt.com/fullchain.cer",
"keyFile": "/root/.acme.sh/veekxt.com/veekxt.com.key"
}
]
}
},
"listen": "127.0.0.1"
}
],
"outbounds": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "blocked"
}
]
},
"policy": {},
"reverse": {},
"transport": {}
}
77 changes: 77 additions & 0 deletions H2+vmess/config_client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"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":7888,
"users":[
{
"id":"8f8e0714-0ebd-4416-95b3-badc5be1bf0d",
"alterId":32
}
]
}
]
},
"tag":"out-0",
"streamSettings":{
"network":"http",
"security":"tls",
"httpSettings":{
"path":"/veekxt_websocket_test"
},
"tlsSettings":{
"serverName":"veekxt.com"
}
}
},
{
"tag":"direct",
"protocol":"freedom",
"settings":{}
},
{
"tag":"blocked",
"protocol":"blackhole",
"settings":{}
}
],
"routing":{
"domainStrategy":"IPOnDemand",
"rules":[
{
"type":"field",
"ip":[
"geoip:private"
],
"outboundTag":"direct"
}
]
},
"policy":{},
"reverse":{},
"transport":{}
}
66 changes: 66 additions & 0 deletions H2+vmess/config_server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"dns": {},
"stats": {},
"inbounds": [
{
"port": 7888,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "8f8e0714-0ebd-4416-95b3-badc5be1bf0d",
"alterId": 32
}
]
},
"tag": "in-0",
"streamSettings": {
"network": "http",
"security": "tls",
"httpSettings": {
"path": "/veekxt_websocket_test"
},
"tlsSettings": {
"certificates": [
{
"certificateFile": "/root/.acme.sh/veekxt.com/fullchain.cer",
"keyFile": "/root/.acme.sh/veekxt.com/veekxt.com.key"
}
]
}
}
}
],
"outbounds": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "blocked"
}
]
},
"policy": {},
"reverse": {},
"transport": {}
}
69 changes: 69 additions & 0 deletions NAT-DDNS/config_client.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
//
// 一个简单的内网穿透的配置,来自官网 https://www.v2ray.com/chapter_02/reverse.html
// 这组配置里,访问服务器的8000端口,其效果相当于访问内网的8000端口
// 这个文件用于内网设备
//
"log": {},
"dns": {},
"stats": {},
"inbounds": [],
"outbounds": [
{
"tag": "out",
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:8000"
}
},
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "veekxt.com",
"port": 3456,
"users": [
{
"id": "27848739-7e62-4138-9fd3-098a63964b6b"
}
]
}
]
},
"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": {}
}
Loading

0 comments on commit 9c20344

Please sign in to comment.