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

Configuration translation #40

Open
NewUse opened this issue Dec 12, 2024 · 2 comments
Open

Configuration translation #40

NewUse opened this issue Dec 12, 2024 · 2 comments

Comments

@NewUse
Copy link

NewUse commented Dec 12, 2024

Hi, thanks again for your project, I have got from the Internet the following config, could you please help to translate it into pegas config:

"outbounds": [{"tag": "proxy", "protocol": "vmess", "settings":
{"vnext": [
{"address": "vm.sg.servergo.pw", "port": 443, 
"users": [{"id": "00000-aaaa-bbbb-cccc-b9fe8c1c2ed1",
 "alterId": 0, 
"security": "auto",
 "level": 8,
"encryption": "",
 "flow": ""}]}
]}, 
 "streamSettings": {
"network": "ws", "security": "tls", 
"wsSettings": {"path": "/v2ray-vmess/tls", "headers": {"Host": "sg.servergo.pw"}},
"tlsSettings": {"allowInsecure": true, "serverName": "test.vmess.com", "show": false}
}, 
"mux": {"enabled": false, "concurrency": 8}
}, 
 {"tag": "direct", "protocol": "freedom", 
"settings": {"domainStrategy": "UseIp"}}, 
{"tag": "blackhole", "protocol": "blackhole", "settings": {}}
]

My config is like:

{
	"servers": [
		{
			"server_address": "vm.sg.servergo.pw",
			"server_type": "v2ray",
			"server_port": 443,
			"password": "00000-aaaa-bbbb-cccc-b9fe8c1c2ed1",
			"websocket": {
				"path": "/v2ray-vmess/tls",
				"hostname": "sg.servergo.pw"
			},
			"ssl": {
				"sni": "test.vmess.com"
			}
		}
	],
	"ping_interval": 120,
	"local_address": "192.168.1.1",
	"local_port": 1080,
	"log_level": 1
}

but it seems not working, where did I make a mistake?

@chux0519
Copy link
Owner

I think there's nothing wrong with your configuration. It's more likely that my VMess protocol implementation is too outdated. The potential issue might be here: v2fly/v2fly-github-io#20.

What version of VMess are you using? Perhaps legacy support needs to be enabled somewhere, though I don't quite remember the details.

By the way, I found a second-hand router locally that happens to have similar specs as your development board. I've already flashed it with Breed. Recently, I plan to look into building OpenWrt and see if it's possible to port this project.
image

@NewUse
Copy link
Author

NewUse commented Dec 14, 2024

Thanks! It was not my own server, it was a public free server of vmess without possibility of setting something at server side. Btw, I have already made an alpha port of this project https://github.com/NewUse/packages, fill free to make PRs:)) The only issue is that it use alpha version of libevent2 to support mbedtls, so the best option is to remove libevent2-ssl dependency and made ssl handling via pure ssl libraries, there should be only 3 files modified, but my programming knowledges are not enough to do this.

And if it is possible it would be cool to update protocol versions to actual state and add some inbound protocols like docodemo to make possibility of transparent proxy...

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

2 participants