-
Notifications
You must be signed in to change notification settings - Fork 445
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
is it possible to add entire subnets as ip_addrs, to create a server that acts as if there are any number of servers? #282
Comments
That's not currently supported. It is also a very niche feature, and I'm hesitant to make everyone who uses smoltcp pay for this in terms of space or complexity. |
I understand. Continuing lookinf for a lwip alternative or wrapper in Rust. For those interested in similar features, there is a wrapper at https://github.com/iCepa/tun2tor/tree/master/lwip . although I couldn't lwip's tcp listener working. It may be easier to build something on top of smoltcp after all |
I have an lwip wrapper you could possibly use (although it's not currently published as a separate project), but wouldn't it be easier to fork smoltcp? |
@whitequark wow, I'd love to try your lwip wrapper, is it published as part of another project? I'm looking for the easiest way to create a wildcard tcp listener on a tun or tap device, judging by code from the iCepa project, the usage is quite simple, but I'm at a loss when there are problems outside the Rust part because I'm totally unfamiliar with C |
i'm interested, i scrolled through your repositories but couldn't find one that looks like a repository with a lwip wrapper inside |
thanks a lot! i'm looking into it |
The issue author deleted their account, closing. |
In the server example,
IpCidr
is used to addip_addrs
https://github.com/m-labs/smoltcp/blob/master/examples/server.rs#L56
But after trying, it only responds as
192.168.69.1
. Can I create a server that responds to any tcp connection destined to any address in192.168.69.0/24
? I want it to act as though there are servers listening on192.168.69.1
,192.168.69.2
,192.168.69.3
, etc. I tried192.168.69.0/24
, but it's just the one address192.168.69.0
.tun2socks is a tool that seems to accept tcp connections going to any address, as long as it goes through a tun device. It's similar to what i'd like to do.
The text was updated successfully, but these errors were encountered: