Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2ray to socks routing #915

Open
oops10101 opened this issue Aug 15, 2024 · 1 comment
Open

v2ray to socks routing #915

oops10101 opened this issue Aug 15, 2024 · 1 comment

Comments

@oops10101
Copy link

Hey there I just wanted to thank you for all your hard work for the community and if you don't mind I have a question for anyone who can perhaps help me
I have a VPS outside of Iran which I want to route its traffic to a socks proxy. Still, when I connect to my VPS with the configuration mentioned below I get an incredibly spotty connection, and sometimes even Google doesn't open(when I remove the socks routing my connection is fine).
Thank you to anyone who can help me with this matter
Here is my current configuration:
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"log": {
"loglevel": "warning"
},
"outbounds": [
{
"tag": "socc",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "socks server",
"port": socks port,
"users": [
{
"user": "14adccce853e6",
"pass": "8e516cf947"
}
]
}
]
}
},
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"levels": {
"0": {
"statsUserDownlink": true,
"statsUserUplink": true
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"sourcePort": "443",
"protocol": [
"tls"
],
"outboundTag": "socc"
},
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
}
]
},
"stats": {}
}

@oops10101
Copy link
Author

for anyone interested the exact problem is also explained here v2fly/v2ray-core#2444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant