Comments (11)
Despite the insecure MD5 problem, can TCP_MD5SIG be used on Windows? I suspect it. I've searched for a while and have found none so far. We need a cross platform solution.
In order to defend TCP against spurring attacks, we need to somehow authenticate the TCP header. I think @clowwindy has already pointed us the direction with ShadowVPN.
from shadowsocks-org.
@Mygod OKay, I just forget there are Windows users.
Although it's more-or-less the same suituation for multipath TCP, or even TCP fast open.
Multipath TCP is even not supported in mainline linux, and Windows doesn't support fast open until Windows 10.
While they are both supported by ss-libev.
Although TCP_MD5SIG, unlike MPTCP or fast open, will cause network stack to directly drop unauthenticated segments without fallback method.
Any authentication against TCP or IP header has their problem in fact.
They both exposed special flag for their header, making it quite easy to be detected and blocked.
from shadowsocks-org.
Yes and so we can use UDP to work around this problem. (ShadowVPN tunnels IP packets over UDP)
I think for now using kcptun plugin is the best choice to work around TCP reset attacks.
@madeye What do you think?
from shadowsocks-org.
TCP reset attack is already not a "popular" approach. Today, If one IP gets detected, all the traffic from it is just dropped or null routed.
But like MPTCP and TCP fast open, if we can easily add it to shadowsocks, I think it would be useful to someone.
For example, with MPTCP, OVH is able to provide a product named "Overthebox" based on shadowsocks. It's quite useful if you have multiple up-links. Here are some details: http://bitsofnetworks.org/ovhs-overthebox-internet-access-link-aggregation-using-multipath-tcp.html
from shadowsocks-org.
@Mygod Makes sense.
There are a lot of advantage using UDP, from full control of the stack to no need to wait kernel to accept some feature.
@madeye For implementation, it should be quite easy. Both client and server setup their pre-shared key(could just hash the password), call setsockopt(), ~~~and hope everything works fine~~~ that's all.
At least for linux kernel, it's more popular than TCP fast open.
I'll wait for some time before sending out the patch, to see if it's really needed.
Thanks
from shadowsocks-org.
The downside of UDP tunneling is that UDP packets are dropped and traffic-shaped heavily on many ISPs. It's barely usable during peak hours when ISPs give higher priority to TCP packets.
from shadowsocks-org.
I worked with TCP_MD5SIG (on the kernel side) at a network switch company a while ago. There is a huge limitation here to be kept in mind: TCP_MD5SIG (RFC 2385) was invented to protect protocols like BGP -- where ports of both clients and servers are known and fixed, so the implementations (Linux for example) require users to bind on both client and server sides, and provide the <key, peer sockaddr (addr+port)>
mappings to kernel. And no, it does not support "default key" lookup. In the context of common C/S architectures like Shadowsocks, the client address and port are unknown in advance, rendering this protection useless at least on Linux.
Furthermore, as one might have noticed, MD5 is dated and in fact, RFC 2385 has been obsoleted by RFC 5925, TCP-AO, which unfortunately is not yet supported on consumer OSes AFAIK. Being an obsolete (and undocumented) feature, MD5SIG might be removed from Linux kernel at any time.
Here's a useful article I found talking from the userland if you are interested https://criticalindirection.com/2015/05/12/tcp_md5sig/
from shadowsocks-org.
@Hexcles So this proposal is dead end?
from shadowsocks-org.
from shadowsocks-org.
Understand. Thanks for the explanation!
I really wish it'd be easier to manipulate raw IP packets from userspace…
from shadowsocks-org.
I think it's safe to close this now.
from shadowsocks-org.
Related Issues (20)
- SIP022: Shadowsocks 2022 Edition HOT 33
- 弱弱的问一句,啥是SIP? HOT 4
- after changing to portable mod, even when I disable the proxy there is no change
- Feature request: Chain Shadowsocks HOT 1
- [Security] Do not engineer vulnerabilities into implementations without public discussions HOT 7
- [One Idea] IP Geolocation Based Filtering HOT 20
- Ahmadtafreshi HOT 1
- Ahmad
- [Peer Review Request]Restls: A Perfect Impersonation of TLS Handshake HOT 5
- 能支持udp over tcp吗 HOT 1
- 日志文件 HOT 1
- OpenWrt client is not working for me
- 能否申请将Java的实现版本也纳入到官方社区中 HOT 1
- Correct wiki entry for "Setup fail2ban" - a jail config error detected HOT 2
- 社区有没有针对SIP023 relay server 的开发计划 HOT 2
- Cannot make the fail2ban setup guide work with systemd journal
- Non-UI Error. Can't start application
- ss://[email protected]:8388#SIP008%0A%0A HOT 1
- 兼容改版shadowsocks
- feature request: sip003 mux / multiplexing spec HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadowsocks-org.