Coder Social home page Coder Social logo

hysteria-install's People

Contributors

chika0801 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hysteria-install's Issues

配置文件里的疑问

`listen: :443

tls:
cert: /root/fullchain.cer
key: /root/private.key

auth:
type: password
password: chika

resolver:
type: https
https:
addr: 1.1.1.1:443
timeout: 10s

acl:
inline:
- reject(all, udp/443)`
1、这里 证书cer和key文件怎么制作获取呢?
2、规则里为什么拒绝所有udp443呢?这个协议不是监听udp443么?拒绝了怎么用呢?

YAML server config gives error, JSON works fine

Hello, I’m using hysteria 2, as a server and I encountered a problem with the YAML config format. When I use the YAML config, I get an error message like this:

journalctl -u hysteria
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 systemd[1]: Started hysteria.service.
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: panic: runtime error: index out of range [-1]
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: goroutine 1 [running]:
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: github.com/yosuke-furukawa/json5/encoding/json5.stateInStringKey(0xc0000b51>
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/yosuke-furukawa/[email protected]/encoding/json5/scanner.go:4>
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: github.com/yosuke-furukawa/json5/encoding/json5.checkValid({0xc0001f2400, 0>
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/yosuke-furukawa/[email protected]/encoding/json5/scanner.go:2>
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: github.com/yosuke-furukawa/json5/encoding/json5.Unmarshal({0xc0001f2400, 0x>
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/yosuke-furukawa/[email protected]/encoding/json5/decode.go:73>
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: main.parseServerConfig({0xc0001f2400, 0xcb, 0x200})
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/apernet/hysteria/app/cmd/server.go:302 +0x56
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: main.glob..func5(0x18af020?, {0xffb627?, 0x2?, 0x2?})
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/apernet/hysteria/app/cmd/main.go:134 +0x1ff
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: github.com/spf13/cobra.(*Command).execute(0x18af020, {0xc00007f5a0, 0x2, 0x>
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/spf13/[email protected]/command.go:920 +0x847
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: github.com/spf13/cobra.(*Command).ExecuteC(0x18aea60)
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/spf13/[email protected]/command.go:1044 +0x3bd
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: github.com/spf13/cobra.(*Command).Execute(...)
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/spf13/[email protected]/command.go:968
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]: main.main()
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 hysteria[5389]:         github.com/apernet/hysteria/app/cmd/main.go:209 +0x25
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 systemd[1]: hysteria.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 24 14:48:33 ubuntu-4gb-fsn1-3 systemd[1]: hysteria.service: Failed with result 'exit-code'.
Jun 24 14:48:43 ubuntu-4gb-fsn1-3 systemd[1]: hysteria.service: Scheduled restart job, restart counter is at 1.
Jun 24 14:48:43 ubuntu-4gb-fsn1-3 systemd[1]: Stopped hysteria.service.
Jun 24 14:48:43 ubuntu-4gb-fsn1-3 systemd[1]: Started hysteria.service.
Jun 24 14:48:43 ubuntu-4gb-fsn1-3 hysteria[5397]: panic: runtime error: index out of range [-1]
Jun 24 14:48:43 ubuntu-4gb-fsn1-3 hysteria[5397]: goroutine 1 [running]:

However, when I convert the YAML config to JSON format, it works fine. Here is the YAML config that I used:

listen: :443

tls:
  cert: /root/fullchain.cer
  key: /root/private.key

auth:
  type: password
  password: chika

masquerade:
  type: proxy
  proxy:
    url: https://www.deepl.com
    rewriteHost: true 

And here is the JSON config that works:

{
  "listen": ":443",
  "tls": {
    "cert": "/root/fullchain.pem",
    "key": "/root/privkey.pem"
  },
  "auth": {
    "type": "password",
    "password": "xxxxxxx"
  },
  "masquerade": {
    "type": "proxy",
    "proxy": {
      "url": "https://www.deepl.com",
      "rewriteHost": true
    }
  }
}

I’m not sure what is causing this issue, but it seems like there is a bug with the YAML parser. Could you please look into this and fix it? Thank you for your great work on hysteria.

server log DEBUG

可以正常使用,server log:
DEBUG TCP request {"addr": ".....", "id": "user", "reqAddr": "......."}
DEBUG TCP closed {"addr": ".....", "id": "user", "reqAddr": "......."}

求助大佬

请问大佬:
1、hysteria2升级到2.0.1了,我该如何操作也能够升级?
2、按照大佬脚本安装到ARM小鸡上,只需将curl -Lo /root/hysteria https://github.com/apernet/hysteria/releases/latest/download/hysteria-linux-amd64 && chmod +x /root/hysteria && mv -f /root/hysteria /usr/local/bin
修改成curl -Lo /root/hysteria https://github.com/apernet/hysteria/releases/latest/download/hysteria-linux-arm64 && chmod +x /root/hysteria && mv -f /root/hysteria /usr/local/bin吗?
还需要修改什么吗?

非常感谢大佬!!!

端口跳跃--无法运行

112233

以上是VPS--UBUNTU 20.04上运行以下代码后的显示:
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 16387:16485 -j DNAT --to-destination :16385
netfilter-persistent save

但客户端A)WIN7 B)LINUX DEEPLIN平台均无法联通VPS;
无法自行解决;

单端口可以联通VPS;

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.