Code Monkey home page Code Monkey logo

Comments (7)

madeye avatar madeye commented on June 23, 2024 1

For more details: https://github.com/shadowsocks/shadowsocks-libev/blob/master/doc/shadowsocks-libev.asciidoc#config-file

from simple-obfs.

rampageX avatar rampageX commented on June 23, 2024

same here, use old way ok:
"plugin": "obfs-local --obfs http --obfs-host www.baidu.com",
new way error:

  "plugin": "obfs-local",
  "plugin-opts": "obfs=http;obfs-host=www.baidu.com"
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: initializing ciphers... aes-128-cfb
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: udprelay enabled
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: listening at 0.0.0.0:7171
Jan 15 20:38:34 asus kern.info /opt/sbin/ss-local[10777]: running from root user
Jan 15 20:38:34 asus kern.err /opt/sbin/ss-local[10777]: plugin service exit unexpectedly

from simple-obfs.

madeye avatar madeye commented on June 23, 2024

Please update https://github.com/shadowsocks/simple-obfs to the latest.

from simple-obfs.

rampageX avatar rampageX commented on June 23, 2024

@madeye ss and obfs all update to the last git version.
command line ok:

ss-local -c /opt/etc/shadowsocks.json --plugin obfs-local --plugin-opts "obfs=http;obfs-host=www.baidu.com" -v -l 7171
 2017-01-16 09:47:29 INFO: plugin "obfs-local" enabled
 2017-01-16 09:47:29 INFO: initializing ciphers... aes-128-cfb
 2017-01-16 09:47:29 INFO: listening at 127.0.0.1:7171
 2017-01-16 09:47:29 INFO: running from root user
 2017-01-16 09:47:29 [simple-obfs] INFO: obfuscating enabled
 2017-01-16 09:47:29 [simple-obfs] INFO: obfuscating hostname: www.baidu.com
 2017-01-16 09:47:29 [simple-obfs] INFO: listening at 127.0.0.1:17523
 2017-01-16 09:47:29 [simple-obfs] INFO: running from root user
 2017-01-16 09:47:39 INFO: connect to clients4.google.com:443

but with json config file error:

ss-local -c /opt/etc/shadowsocks.json -v -l 7171
 2017-01-16 09:49:38 INFO: plugin "obfs-local" enabled
 2017-01-16 09:49:38 INFO: initializing ciphers... aes-128-cfb
 2017-01-16 09:49:38 INFO: listening at 127.0.0.1:7171
 2017-01-16 09:49:38 INFO: running from root user

simple-obfs 0.0.1

  maintained by Max Lv <[email protected]>

  usage:

    obfs-local

       -s <server_host>           Host name or IP address of your remote server.
       -p <server_port>           Port number of your remote server.
       -l <local_port>            Port number of your local server.
       --obfs <http|tls>          Enable obfuscating: HTTP or TLS (Experimental).
       --obfs-host <host_name>    Hostname for obfuscating (Experimental).

       [-a <user>]                Run as another user.
       [-f <pid_file>]            The file path to store pid.
       [-t <timeout>]             Socket timeout in seconds.
       [-c <config_file>]         The path to config file.
       [-n <number>]              Max number of open files.
       [-b <local_address>]       Local address to bind.


       [--fast-open]              Enable TCP fast open.
                                  with Linux kernel > 3.7.0.
       [--mptcp]                  Enable Multipath TCP on MPTCP Kernel.

       [-v]                       Verbose mode.
       [-h, --help]               Print this message.

 2017-01-16 09:49:38 ERROR: plugin service exit unexpectedly
 2017-01-16 09:49:38 INFO: closed gracefully

my config json file:

{
  "server": "xxxxx",
  "server_port": 13026,
  "password": "fuckugfw",
  "method": "aes-128-cfb",
  "plugin": "obfs-local",
  "plugin-opts": "obfs=http;obfs-host=www.baidu.com",
  "remarks": "SS-OBFS",
  "auth": false
}

from simple-obfs.

madeye avatar madeye commented on June 23, 2024

It should be plugin_opts in JSON. All the config keys follow this naming convention: plugin-opts in CLI to plugin_opts in JSON and fast-open in CLI to fast_open in JSON.

from simple-obfs.

rampageX avatar rampageX commented on June 23, 2024

@madeye done! Thanks!

from simple-obfs.

luckwang avatar luckwang commented on June 23, 2024

@madeye it works! thxs

from simple-obfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.