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

feature: add tun2tap support for tun client with tap server #140

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

pengtianabc
Copy link

Add a optinal param for tun2tap: tun client can connect with tap server.

@pengtianabc
Copy link
Author

Some device like android and ios can not use tap mode, i added one --tun2tap option of handle arp on tun on client side, so we can use tun client with tap server.

@pengtianabc pengtianabc changed the title feature: add tun2tap support feature: add tun2tap support for tun client with tap server Apr 13, 2020
@cron2
Copy link
Contributor

cron2 commented Apr 13, 2020 via email

src/openvpn/forward.c Outdated Show resolved Hide resolved
src/openvpn/forward.c Outdated Show resolved Hide resolved
src/openvpn/init.c Outdated Show resolved Hide resolved
src/openvpn/misc.h Outdated Show resolved Hide resolved
src/openvpn/init.c Show resolved Hide resolved
src/openvpn/init.c Show resolved Hide resolved
src/openvpn/multi.c Outdated Show resolved Hide resolved
src/openvpn/tun2tap.c Show resolved Hide resolved
src/openvpn/tun2tap.c Outdated Show resolved Hide resolved
src/openvpn/tun2tap.c Outdated Show resolved Hide resolved
src/openvpn/tun2tap.c Outdated Show resolved Hide resolved
src/openvpn/tun2tap.c Outdated Show resolved Hide resolved
src/openvpn/tun2tap.c Show resolved Hide resolved
src/openvpn/options.c Show resolved Hide resolved
Copy link
Author

@pengtianabc pengtianabc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think i have handled all knowned issues.

@pengtianabc
Copy link
Author

  • Sample usage: client side: --dev tun --topology subnet --tun2tap; server side: --dev tap --topology subnet
    in some incorrect config, ip address on tun device is error
  • Known bugs: can not use with compress

@schwabe
Copy link
Contributor

schwabe commented Aug 19, 2020

Just gave the code a quick look and although the issues I pointed out before are marked resolved, the issues are not resolved. To be included in OpenVPN we still need the code to be improved.

@ordex
Copy link
Member

ordex commented Sep 17, 2022

hey @pengtianabc are you still interested in working on this PR? It's definitely good work, so it'd be nice to see it evolving properly.

@pengtianabc
Copy link
Author

pengtianabc commented Sep 18, 2022

hey @pengtianabc are you still interested in working on this PR? It's definitely good work, so it'd be nice to see it evolving properly.

I am glad that someone are still interested in this feature.
But i am busy recently, so i will try to solve issues and merge into latest when vacation.

@pengtianabc
Copy link
Author

Hey guys, i am try to understand mac address resolusion in ipv6. In ipv4, we can replace request to mac boardcast to get target mac address, but how to do that in ipv6?

@ordex
Copy link
Member

ordex commented Sep 22, 2022

@pengtianabc in IPv6 there is a Neighbor Discovery (ND) protocol that takes care of that.

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.

None yet

4 participants