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

WireGuard support #466

Merged
alvra merged 30 commits from wireguard into master 2022年04月13日 14:05:21 +02:00
alvra commented 2022年03月07日 18:43:04 +01:00 (Migrated from github.com)
Copy link

Implement WireGuard support.

Implement WireGuard support.
gijzelaerr (Migrated from github.com) requested changes 2022年04月05日 10:20:11 +02:00
gijzelaerr (Migrated from github.com) left a comment
Copy link

I can't get wireguard to work on Ubuntu 21.10, see chat discussion in slack for details.

2 issues:

  • I can't connect to vpn-next.tuxed.net and I don't know why, I don't get an error. Also if I install the wireguard package I see the same behavior.
  • If I then connect to a different VPN server a need to select a profile, the list here seems to be the vpn-next.tuxed.net list. If I select one I get the error:
Traceback (most recent call last):
 File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/interface/event.py", line 165, in on_chosen_profile
 connection = connect_server_info.connect(app, profile, oauth_session)
 File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/server.py", line 261, in connect
 remote.check_response(response)
 File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/remote.py", line 52, in check_response
 uri = response.history[0].url
IndexError: list index out of range
I can't get wireguard to work on Ubuntu 21.10, see chat discussion in slack for details. 2 issues: * I can't connect to `vpn-next.tuxed.net` and I don't know why, I don't get an error. Also if I install the `wireguard` package I see the same behavior. * If I then connect to a different VPN server a need to select a profile, the list here seems to be the `vpn-next.tuxed.net` list. If I select one I get the error: ``` Traceback (most recent call last): File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/interface/event.py", line 165, in on_chosen_profile connection = connect_server_info.connect(app, profile, oauth_session) File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/server.py", line 261, in connect remote.check_response(response) File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/remote.py", line 52, in check_response uri = response.history[0].url IndexError: list index out of range ```
gijzelaerr commented 2022年04月05日 16:06:14 +02:00 (Migrated from github.com)
Copy link

still the same issues but with a different error:

2022年04月05日 14:33:38,191 - configure-connection - ERROR - eduvpn.interface.event - event.py:167 - error connecting 
Traceback (most recent call last): 
 File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/interface/event.py", line 165, in on_chosen_profile 
 connection = connect_server_info.connect(app, profile, oauth_session) 
 File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/server.py", line 261, in connect 
 remote.check_response(response) 
 File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/remote.py", line 56, in check_response 
 msg = f"Got error code {response.status_code} requesting {uri}" 
UnboundLocalError: local variable 'uri' referenced before assignment 
still the same issues but with a different error: ``` 2022年04月05日 14:33:38,191 - configure-connection - ERROR - eduvpn.interface.event - event.py:167 - error connecting Traceback (most recent call last): File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/interface/event.py", line 165, in on_chosen_profile connection = connect_server_info.connect(app, profile, oauth_session) File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/server.py", line 261, in connect remote.check_response(response) File "/home/gijs/Work/surfnet/python-eduvpn-client/eduvpn/remote.py", line 56, in check_response msg = f"Got error code {response.status_code} requesting {uri}" UnboundLocalError: local variable 'uri' referenced before assignment ```
alvra (Migrated from github.com) reviewed 2022年04月13日 12:13:49 +02:00
alvra (Migrated from github.com) commented 2022年04月13日 12:13:48 +02:00
Copy link

Please use 4 space indentation

Please use 4 space indentation
jwijenbergh (Migrated from github.com) reviewed 2022年04月13日 12:15:52 +02:00
jwijenbergh (Migrated from github.com) commented 2022年04月13日 12:15:52 +02:00
Copy link

whoops, thanks

whoops, thanks
alvra (Migrated from github.com) reviewed 2022年04月13日 12:21:25 +02:00
alvra (Migrated from github.com) commented 2022年04月13日 12:21:24 +02:00
Copy link

I prefer to keep the try branch as short as possible, with an else branch for the rest.

I prefer to keep the try branch as short as possible, with an `else` branch for the rest.
alvra commented 2022年04月13日 12:23:09 +02:00 (Migrated from github.com)
Copy link

Great addition @jwijenbergh!

Great addition @jwijenbergh!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
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!466
Reference in a new issue
eduVPN/linux-app
No description provided.
Delete branch "wireguard"

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?