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

Not serving web page #26

Closed
jeffshead opened this issue May 21, 2019 · 1 comment
Closed

Not serving web page #26

jeffshead opened this issue May 21, 2019 · 1 comment

Comments

@jeffshead
Copy link

jeffshead commented May 21, 2019

I used the shadowsocks-ck-release.sh script to install on a CentOS 7 Minimal server with Apache. The script finished with a success message and displayed the install info. However, the redirect web page is no longer served and I get the following error in a Firefox browser:

An error occurred during a connection to mysite.com. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

I get the same error even when I change the redirect web page to: WebServerAddr=204.79.197.200:443.

Also, connections from the Shadowsocks client are unsuccessful.

Below is what I get if I use ss-server -c /etc/shadowsocks-libev/config.json

2019-05-21 11:26:55 INFO: plugin "ck-server" enabled
2019-05-21 11:26:55 INFO: initializing ciphers... aes-256-gcm
2019-05-21 11:26:55 INFO: using nameserver: 8.8.8.8
2019-05-21 11:26:55 INFO: tcp server listening at 127.0.0.1:54768
2019/05/21 11:26:55 ck-server.go:265: Listening on 0.0.0.0:443
2019/05/21 11:26:55 ck-server.go:267: listen tcp 0.0.0.0:443: bind: address already in use
2019-05-21 11:26:55 ERROR: plugin service exit unexpectedly

I don't know where to begin troubleshooting. Please help.

I do have my Apache vhost listening on port 444.

Below is my \etc\shadowsocks-libev\config.json

{
    "server":"0.0.0.0",
    "server_port":443,
    "password":"gjxuLfgght$jN",
    "timeout":300,
    "user":"nobody",
    "method":"aes-256-gcm",
    "fast_open":false,
    "nameserver":"8.8.8.8",
    "plugin":"ck-server",
    "plugin_opts":"WebServerAddr=127.0.0.1:444;PrivateKey=mOgNzBsdg19xDt+rdffgLZ/VAadffgRlg3strty=;AdminUID=6YoiyuorttypTtruOrW9Ns45ytbIC12/3bI=;DatabasePath=/root/userinfo.db;BackupDirPath=/root"
}

Below is my ck-client.json:

{
	"ServerName":"www.mysite.com",
	"Key":"Jk4faPMsdfCt/svxbjNl352dghyHWW7Khjjk68WLzkc=",
	"TicketTimeHint":3600,
	"Browser":"chrome"
}
@jeffshead
Copy link
Author

jeffshead commented May 21, 2019

I solved my issues.

  1. I changed the Apache Listen port to 444 in my vhost config file but I neglected to also change it in the ssl.conf file.
  2. I was using the GoQuiet variables in my ck-client.json config file.

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

1 participant