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

Add --persistent flag to Linux edge #1138

Open
wants to merge 1 commit into
base: 3.0-stable
Choose a base branch
from

Conversation

sweihub
Copy link

@sweihub sweihub commented Jul 20, 2023

Hi n2n

Thanks to the stable n2n-3.0, it's super stable, fast and awsome!

However, I need to make the Linux TUNTAP device persistent for routing purpose, so I added a --persistent flag to Linux edge. Would you review and accept this PR?

By default, or re-run without persistent flag, the TUNTAP device will be deleted when edge exits.

Thanks!

Alex Wei

@hamishcoleman
Copy link
Collaborator

Its probably better to use the existing tools to create a persistant tun device than to patch n2n - that way you can also integrate with your system-wide network configuration and use ownership for delegation.

If you are doing this by hand:

ip tap add mode tap user $RUNASUSER name $IFNAME

@sweihub
Copy link
Author

sweihub commented Jul 21, 2023

Oh, thanks, I didn't realize that N2N can utilize the existing TAP device.
However, it's still good to have the --persistent flag to have a N2N persistent TAP device in one go.

@Logan007
Copy link
Collaborator

I do no support this one either as it looks way too specific to me and can easily be solved by other tools. Also, how would this one translate into Windows version?

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.

3 participants