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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
4d8454f9
Commit
4d8454f9
authored
Apr 25, 2019
by
Killian Lufau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix UDP option for OpenVPN 2.4.7
parent
96ab35a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
re6st/plib.py
re6st/plib.py
+5
-1
No files found.
re6st/plib.py
View file @
4d8454f9
...
...
@@ -23,10 +23,12 @@ def openvpn(iface, encrypt, *args, **kw):
logging
.
debug
(
'%r'
,
args
)
return
utils
.
Popen
(
args
,
**
kw
)
ovpn_link_mtu_dict
=
{
'udp'
:
1432
,
'udp6'
:
1450
}
ovpn_link_mtu_dict
=
{
'udp
4
'
:
1432
,
'udp6'
:
1450
}
def
server
(
iface
,
max_clients
,
dh_path
,
fd
,
port
,
proto
,
encrypt
,
*
args
,
**
kw
):
client_script
=
'%s %s'
%
(
ovpn_server
,
fd
)
if
proto
==
'udp'
:
proto
=
'udp4'
try
:
args
=
(
'--link-mtu'
,
str
(
ovpn_link_mtu_dict
[
proto
]),
# mtu-disc ignored for udp6 due to a bug in OpenVPN
...
...
@@ -50,6 +52,8 @@ def client(iface, address_list, encrypt, *args, **kw):
# XXX: We'd like to pass <connection> sections at command-line.
link_mtu
=
set
()
for
ip
,
port
,
proto
in
address_list
:
if
proto
==
'udp'
:
proto
=
'udp4'
remote
+=
'--remote'
,
ip
,
port
,
proto
link_mtu
.
add
(
ovpn_link_mtu_dict
.
get
(
proto
))
link_mtu
,
=
link_mtu
...
...
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