mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-26 13:05:56 +03:00
[GH-ISSUE #21] SS fails to bind ipv6 and adding user problem #15
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NAVrasZ on GitHub (Mar 22, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/21
ERROR: [udp] bind: Cannot assign requested addresssystemctl restart shadowsock-libevtemporarily resolves this)Enter the UID in your ckclient.json as the prompted UIDmean the newly generated UID instead?System info: Ubuntu 19.04 amd64; Shadowsocks-libev 3.2.5; ipv4+ipv6
What I did:
shadowsocks-libev.servicefrom/lib/systemd/systeminto/etc/systemd/system, changed bothUserandGrouptoroot. I also added"user": "root"to/etc/shadowsocks-libev/config.json.ss-server says "INFO: running from root user" but fails to bind my ipv6 address to udp port 443. It works fine after
systemctl restart shadowsock-libevas root user.The second pc couldn't connect so I entered the newly generated UID at step 4 instead.
...I remember it says something like "connection reset by peer" in the status, but after messing around for a while now it keeps crashing until I turn off shadowsocks on my second pc.
I set Up/DownCredit for the second UID to 999999999999999 but it still crashes.
Thx
@cbeuw commented on GitHub (Mar 23, 2019):
It failed to bind to an IPv6 address because it's not properly square-bracketed. I mentioned it here. v1.1.0 has fixed this.
I'm not sure why it crashed since the log was incomplete, but it shouldn't have crashed because of some dubious input. I'll try to reproduce this.
@malikshi commented on GitHub (Mar 23, 2019):
as you mention it did you already fixed this?
@NAVrasZ commented on GitHub (Mar 23, 2019):
@malikshi Me? Kinda... I set those to 10^9 or 10^12 or 10^15 and it worked, ipv6 also works now in v1.1.0.
Binding error is not Cloak's problem, I tried reverting my config and service files to vanilla but still got it. I'm so confused... xD It seems that putting public ipv6 address in config.json causes it.
Yesterday after setting up Cloak I found out about this error, so I upgraded from Ubuntu 18.10 to 19.04 to get ss-libev 3.2.5 from Ubuntu packages. Maybe it's because of the development version Ubuntu.
Anyway I don't reboot often but I'll keep looking.
@NAVrasZ commented on GitHub (Mar 24, 2019):
Update:
bind: Cannot assign requested addressipv6 is not available when ss-libev tries to bind
Only after adding
net.ipv6.conf.eth0.accept_dad = 0insysctl.confdid{Wants,After}=network-online.targetwork correctly and solve it.Systemd in Ubuntu 19.04 is v240, which is not supposed to have this problem... https://github.com/systemd/systemd/issues/2037#issuecomment-271388691
Update2: Aaand... the binding error has quietly disappeared.