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 and bring UP tap interface when operating in tap mode #520

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bitmeal
Copy link

@bitmeal bitmeal commented Oct 14, 2019

Fixes the following behavior:
When using tap mode, a tapX device is created by openvpn when starting, this device is not brought UP and remains in state DOWN.

Fix:
In ovpn_run:

  • openvpn --mktun --dev $OVPN_DEVICE$OVPN_DEVICEN is used to create a tap device if the device specified by $OVPN_DEVICE$OVPN_DEVICEN does not exist
  • the specifed tap device (existing or new) is brought to state UP

… from environment, checks if interface is available and creates if not, brings up interface.
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

1 participant