9
16
Fork
You've already forked proxyguard
3

client does not reconnect #15

Closed
opened 2024年02月01日 09:43:07 +01:00 by fkooman · 2 comments

there are (at least) the following scenarios where it would be helpful if the proxyguard-client would auto-reconnect:

  1. device suspends until the established TCP connection times out;
  2. the proxyguard-server is restarted on the server, e.g. for an upgrade, or server reboot.
there are (at least) the following scenarios where it would be helpful if the `proxyguard-client` would auto-reconnect: 1. device suspends until the established TCP connection times out; 2. the `proxyguard-server` is restarted on the server, e.g. for an upgrade, or server reboot.
Author
Owner
Copy link

There is another slightly related issue, when importing NetworkManager config initially when proxyguard-client is already running, it will get stuck. One needs a specific order of command invocations in order to make WireGuard+TCP work:

#!/bin/sh
nmcli con del vpn
nmcli con import type wireguard file vpn.conf
nmcli con down vpn
nmcli con modify vpn wireguard.fwmark "$(printf %x 54321)"
nmcli con modify vpn wireguard.ip4-auto-default-route 0
nmcli con modify vpn wireguard.ip6-auto-default-route 0
nmcli con modify vpn ipv4.route-table 54321
nmcli con modify vpn ipv6.route-table 54321
nmcli con modify vpn ipv4.routing-rules "priority 1 not fwmark 54321 table 54321"
nmcli con modify vpn ipv6.routing-rules "priority 1 not fwmark 54321 table 54321"
sudo systemctl restart proxyguard-client
nmcli con up vpn

The issue here being: it should not be necessary to restart proxyguard-client...

There is another slightly related issue, when importing NetworkManager config initially when `proxyguard-client` is already running, it will get stuck. One needs a specific order of command invocations in order to make WireGuard+TCP work: ``` #!/bin/sh nmcli con del vpn nmcli con import type wireguard file vpn.conf nmcli con down vpn nmcli con modify vpn wireguard.fwmark "$(printf %x 54321)" nmcli con modify vpn wireguard.ip4-auto-default-route 0 nmcli con modify vpn wireguard.ip6-auto-default-route 0 nmcli con modify vpn ipv4.route-table 54321 nmcli con modify vpn ipv6.route-table 54321 nmcli con modify vpn ipv4.routing-rules "priority 1 not fwmark 54321 table 54321" nmcli con modify vpn ipv6.routing-rules "priority 1 not fwmark 54321 table 54321" sudo systemctl restart proxyguard-client nmcli con up vpn ``` The issue here being: it should not be necessary to restart `proxyguard-client`...

Fixed in 0.2.0

Fixed in 0.2.0
Sign in to join this conversation.
No Branch/Tag specified
main
ci
frkoci
utls
v2.0.1
2.0.0
1.0.1
1.0.0
0.4.0
0.3.0
0.2.0
0.1.0
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/proxyguard#15
Reference in a new issue
eduVPN/proxyguard
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?