Closed id8547854 closed 4 months ago
Your video doesn't explain that it was killed due to low ram.
Your video doesn't explain that it was killed due to low ram.
Simple tunnel needed 500mb+ ram ? No optimization.
About optimizations ask v2ray developers. We only compile its source code for Android OS target.
Please provide config.json
causing such behavior.
{
"log": {
"logEnabled": true,
"loglevel": "warning",
"access": "/data/data/com.termux/files/usr/share/v2ray/access.log",
"error": "/data/data/com.termux/files/usr/share/v2ray/error.log"
},
"inbounds": [
{
"port": 7777,
"protocol": "socks",
"sniffing": {
"enabled": false,
"destOverride": ["http", "tls"]
}
}
],
"outbounds": [
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 9050
}
]
},
"proxySettings": {
"tag": "transit" // The tag here must match the tag as the proxy VPS. The "transit" is set here.
},
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "at1.ssproxy.xyz", // Server address of Shadowsocks
"method": "chacha20-ietf-poly1305", // Encryption method of Shadowsocks
"ota": false, // Whether enable OTA, default is false, we don't recommand enable this as decrepted by Shadowsocks
"password": "ZjU3MmRk", // Password of Shadowsocks
"port": 8388
}
]
},
"tag": "transit"
}
]
}
ssh-ed25519
[redacted]
You're lucky that's a public key. I'm still gonna redact it for you. (Not that it won't still show up in the edit history of the comment)
Configuration for both socks and shadowsocks outbounds was defined within the same JSON object, possibly causing internal issue in v2ray program.
Edited your configuration:
{
"log": {
"logEnabled": true,
"loglevel": "warning",
"access": "/data/data/com.termux/files/usr/share/v2ray/access.log",
"error": "/data/data/com.termux/files/usr/share/v2ray/error.log"
},
"inbounds": [
{
"port": 7777,
"protocol": "socks",
"sniffing": {
"enabled": false,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 9050
}
]
},
"proxySettings": {
"tag": "transit"
}
},
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "at1.ssproxy.xyz",
"method": "chacha20-ietf-poly1305",
"ota": false,
"password": "ZjU3MmRk",
"port": 8388
}
]
},
"proxySettings": {
"tag": "transit"
}
}
]
}
Problem gone, clients can successfully connect over 127.0.0.1:7777
proxy.
See syntax for outbounds object: https://www.v2fly.org/v5/config/outbound.html
Each one must be within own {
}
block.
I'm closing this for now.
Exactly what I wanted tunnel (tor + ss) This works correctly.
"inbounds": [
{
"port": 8888,
"listen": "0.0.0.0",
"protocol": "socks",
"settings": {
"udp": false
}
}
],
"outbounds": [
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "at1.ssproxy.xyz",
"method": "chacha20-ietf-poly1305",
"password": "MGFjNjM5",
"port": 8388
}
]
},
"proxySettings": {
"tag": "transit"
}
},
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 9050
}
]
},
"tag": "transit"
}
]
}
Problem description
v2ray full use ram and kill termux if enable config settings "transit" ( tunnel tor + shadowsocks )
What steps will reproduce the bug?
Run v2ray on ssh local server other phone, connect on proxy socks Firefox.
https://github.com/termux/termux-packages/assets/170825749/0326a4a9-0995-4592-bf5e-e9e227dcb2f1
What is the expected behavior?
Current work no kill termux.
System information