simple-obfs icon indicating copy to clipboard operation
simple-obfs copied to clipboard

How to set up obfs-uri ? any examples?

Open manjuprajna opened this issue 7 years ago • 7 comments

server side remains unchanged, client side: "plugin_opts":"obfs=http;obfs-host=www.bing.com;obfs-uri=*******;fast-open" like this way? but is there any "official" examples? what should I put after "obfs-uri="?

thanks!

manjuprajna avatar Jan 29 '18 09:01 manjuprajna

The server do not check the request path at all, thus, no matter what the request path is, the server can handle the connection as well. you can simply add obfs-uri on client-side without any changes on the server-side. If your plugin_opts are: obfs=http;obfs-host=www.bing.com;obfs-uri=/path/to/file, the first line of the client request header should be GET /path/to/file HTTP/1.1.

ghost avatar Jan 29 '18 10:01 ghost

@slurin I understand, so server does not care what this uri parameter is, because it's used to cheat ISP's facilities to make shadowsocks data packets look like a normal http packets right? so the server side will strip this fake http header out and get the real data so I should simply modify the config.json of client side like this: "plugin_opts":"obfs=http;obfs-host=www.bing.com;obfs-uri=/default.aspx;fast-open" anything like that right? so why this commit add uri function is to make obfs data packets look more real, right?

manjuprajna avatar Jan 29 '18 11:01 manjuprajna

Yeah, hardly any servers use path uri / as a websocket's entry point, especially on HTTP server port 80.

ghost avatar Jan 29 '18 14:01 ghost

after setup uri , can I setup http(s) proxy redirect to different backend?

debiansid avatar Jan 31 '18 02:01 debiansid

There's no change in the server side, you can use failover as usual.

ghost avatar Jan 31 '18 04:01 ghost

@slurin obfs-local will send uri to server? then I would test it for lighttpd on server side.

debiansid avatar Jan 31 '18 07:01 debiansid

what did u put in the uri section?

corerise avatar Apr 02 '24 14:04 corerise