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

server: fix setTosFromConnmark typo #2590

Merged
merged 1 commit into from Jan 17, 2020
Merged

server: fix setTosFromConnmark typo #2590

merged 1 commit into from Jan 17, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jan 17, 2020

Server made a connection to remote, remote replied with that connection.

nf_conntrack module would check orig-dst and orig-src by default and find every connection that dst and src matches reply-src and reply-dst, respectively.

more information please refer to https://www.spinics.net/lists/netfilter/msg57842.html

As a result, src and dst should be swapped to make nf_conntrack find the connection.

Server made a connection to remote, remote replied with that connection.

nf_conntrack module would not check reply-dst and reply-src by default.

more information please refer to https://www.spinics.net/lists/netfilter/msg57842.html

As a result, src and dst should be swapped to make nf_conntrack find the connection.
@madeye madeye merged commit 5eeff4d into shadowsocks:master Jan 17, 2020
@manjuprajna
Copy link

@babarosaM33 it's strange that after applying this commit, I found the hash value of ss-server still the same for both centos 7 and ubuntu 1804. means compiler ignored that or think it's the same?

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

Successfully merging this pull request may close these issues.

2 participants