10
9
Fork
You've already forked linux-app
14

support IPv4 or IPv6 only VPNs #642

Closed
opened 2025年05月15日 19:24:38 +02:00 by fkooman · 2 comments

For 4.x server I'm investigating supporting only IPv4, or only IPv6 connections. This may be beneficial for "split tunnel" VPNs where there is no need for either IPv4 or IPv6.

An example config, note the Address line that now contains only 1 IPv4 address and the AllowedIPs line that has only an IPv4 prefix:

[Interface]
MTU = 1392
PrivateKey = gP3p+u4BAnSSydoVujfed+idDXLcr5wEXQvv3oXBqV4=
Address = 10.39.112.5/20
DNS = 9.9.9.9
[Peer]
PublicKey = EJQtm4KT8g/fUH/2/PRZnmpJTQggz737jwggN6K00ys=
PresharedKey = HJOduw5fXLXEgt1KgLQ3qezEGmiic4JUzQLo8MTd5kE=
AllowedIPs = 0.0.0.0/0
Endpoint = fed4x.tuxed.net:51820

The current app says this in the output of eduvpn-gui -d:

2025年05月15日 19:21:15,387 - MainThread - DEBUG - eduvpn.nm - nm.py:376 - Adding new connection
2025年05月15日 19:21:15,391 - MainThread - ERROR - eduvpn.nm - nm.py:979 - add connection error: nm-connection-error-quark: ipv6.method: method 'manual' requires at least an address or a route (6)
For 4.x server I'm investigating supporting only IPv4, or only IPv6 connections. This may be beneficial for "split tunnel" VPNs where there is no need for either IPv4 or IPv6. An example config, note the `Address` line that now contains only 1 IPv4 address and the `AllowedIPs` line that has only an IPv4 prefix: ``` [Interface] MTU = 1392 PrivateKey = gP3p+u4BAnSSydoVujfed+idDXLcr5wEXQvv3oXBqV4= Address = 10.39.112.5/20 DNS = 9.9.9.9 [Peer] PublicKey = EJQtm4KT8g/fUH/2/PRZnmpJTQggz737jwggN6K00ys= PresharedKey = HJOduw5fXLXEgt1KgLQ3qezEGmiic4JUzQLo8MTd5kE= AllowedIPs = 0.0.0.0/0 Endpoint = fed4x.tuxed.net:51820 ``` The current app says this in the output of `eduvpn-gui -d`: ``` 2025年05月15日 19:21:15,387 - MainThread - DEBUG - eduvpn.nm - nm.py:376 - Adding new connection 2025年05月15日 19:21:15,391 - MainThread - ERROR - eduvpn.nm - nm.py:979 - add connection error: nm-connection-error-quark: ipv6.method: method 'manual' requires at least an address or a route (6) ```
Author
Owner
Copy link

It may be easier to support any combination of Address values, i.e. with 1 IP, with 2, with n IPs.

It may be easier to support any combination of `Address` values, i.e. with 1 IP, with 2, with _n_ IPs.

fix has been committed, will be in a new version this week

fix has been committed, will be in a new version this week
Sign in to join this conversation.
No Branch/Tag specified
master
upstream-deb
openvpn-persistent
1.x
4.7.2
4.7.1
4.7.0
4.6.0
4.5.1
4.5.0
4.4.99.0
4.4.0
4.3.1
4.3.0
4.2.99.1
4.2.99.0
4.2.1
4.2.0
4.1.99.0
4.1.3
4.1.2
4.1.1
4.1.0
3.1.1
4.0.1
4.0.0
pr-3.3.1
pr-3.3.0
pr-3.2.0
3.1.0
3.0.0
2.2.1
2.2.0
2.1.0
2.0.0
1.1
1.0.3
1.0.2
1.0.1
1.0rc17
1.0rc16
1.0rc15
1.0rc14
1.0rc13
1.0rc12
1.0rc11
1.0rc10
1.0rc9
1.0rc8
1.0rc7
1.0rc6
1.0rc5
1.0rc4
1.0rc3
1.0rc2
1.0rc1
0.8
0.7.2
0.7.1
0.7
0.6.1
0.6
0.5.1
0.5
0.3
0.2.1
0.2
0.1.1
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/linux-app#642
Reference in a new issue
eduVPN/linux-app
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?