Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
re6stnet
Commits
543e4faa
Commit
543e4faa
authored
Feb 20, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iproute shipped by CentOS 6 is too old and does not provide 'tuntap' subcommand
parent
7ef3f232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
re6st/tunnel.py
re6st/tunnel.py
+5
-3
No files found.
re6st/tunnel.py
View file @
543e4faa
...
...
@@ -147,11 +147,13 @@ class TunnelManager(object):
def
_tuntap
(
self
,
iface
=
None
):
if
iface
:
self
.
new_iface_list
.
appendleft
(
iface
)
action
=
'
del
'
action
=
'
--rmtun
'
else
:
iface
=
self
.
new_iface_list
.
popleft
()
action
=
'add'
args
=
'ip'
,
'tuntap'
,
action
,
'dev'
,
iface
,
'mode'
,
'tap'
action
=
'--mktun'
# BBB: do not use 'ip tuntap' which is not available on old dists
args
=
(
'openvpn'
,
action
,
'--verb'
,
'0'
,
'--dev'
,
iface
,
'--dev-type'
,
'tap'
)
logging
.
debug
(
'%r'
,
args
)
subprocess
.
check_call
(
args
)
return
iface
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment