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

topology p2p on Windows client with wintun driver #599

Open
mbizon opened this issue Sep 5, 2024 · 8 comments
Open

topology p2p on Windows client with wintun driver #599

mbizon opened this issue Sep 5, 2024 · 8 comments

Comments

@mbizon
Copy link

mbizon commented Sep 5, 2024

Hello,

This error message is shown on Windows with openvpn 2.6.12 when attempting to use p2p style of addressing (for example: local 192.168.0.1 remote 192.168.254.254):

"cannot use the first or last address within a given 255.255.255.252 subnet. This is a limitation of --dev tun when used with the TAP-WIN32 driver"

The function verify_255_255_255_252() in src/openvpn/tun.c returns this error for WIN32, irrespective of the driver used (wintun or not).

Would that addressing scheme work with the wintun driver ?

@schwabe
Copy link
Contributor

schwabe commented Sep 5, 2024

I am not sure that we even have code to configure wintun or ovpn-dco-win for that matter in a p2p way or that it has been tested. Currently as far as I know all interfaces on windows are configured in the "traditional" subnet way with a IP and prefix length and a gatewy. Even on most of the Unixes that support p2p interfaces this typically different ifconfig options/tun create flags to put the interface into that mode.

@cron2
Copy link
Contributor

cron2 commented Sep 5, 2024 via email

@mbizon
Copy link
Author

mbizon commented Sep 5, 2024

Hello,

Windows does not really support p2p, so the code needs to map p2p to "a subnet". This is independent of the driver used.

I don't know windows networking internals. On Linux "p2p" is a misnomer, when you have a L3 netdevice you just need to add a route to that device, no "gateway" or "remote" address is needed per-se.

I thought the origin limitation on windows for p2p/net30 came solely from using TAP-WIN32 to implement tun and that it would be lifted when using wintun.

@lstipakov
Copy link
Member

A while ago we definitely tested dco-win<->dco-win in p2p mode (@schwabe I think you came up with working configs, we needed --up-delay or something?), but I don't remember the config details. I can try to find them, hoping we haven't terminated those AWS instances.

@cron2
Copy link
Contributor

cron2 commented Sep 5, 2024 via email

@cron2
Copy link
Contributor

cron2 commented Sep 5, 2024 via email

@lstipakov
Copy link
Member

That's a different thing from "two ends in dumb pipe mode", aka, "one --tls-server, one --tls-client, no --server"

Yes, most likely this "dumb pipe" mode. The idea was to test dco-win<->dco-win and dco-win<->dco-linux performance. Will check.

@schwabe
Copy link
Contributor

schwabe commented Sep 5, 2024

@mbizon it might work with wintun or other interfaces but nobody spent their time figuring out if true p2p could be implemented in windows.

@lstipakov that was openvpn p2p mode instead of p2mp mode instead of interface p2p, different p2p thing.

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

4 participants