-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,13 @@ For server configuration on each gateway, refer to their corresponding documenta | |
|
||
- [Gateway EL](../../services/gateway-el.md) | ||
- [Gateway NIC](../../services/gateway-nic.md) | ||
- Gateway JP (missing) | ||
- [Gateway JP](../../services/gateway-jp.md) | ||
|
||
## Tinc "received packet on ustclug with own address as source address" workaround {#tinc-workaround-1} | ||
|
||
After migrating to PVE, we found that sometimes tinc works abnormally within gateway-el and gateway-nic, with following kernel log: | ||
|
||
``` | ||
```text | ||
bridge: received packet on ustclug with own address as source address (addr:12:34:56:78:90:ab, vlan:0) | ||
bridge: received packet on ustclug with own address as source address (addr:12:34:56:78:90:ab, vlan:0) | ||
bridge: received packet on ustclug with own address as source address (addr:12:34:56:78:90:ab, vlan:0) | ||
|
@@ -35,28 +35,29 @@ net_ratelimit: 2 callbacks suppressed | |
|
||
We still don't know the source of this issue. To workaround that, following self-check timer is deployed now: | ||
|
||
```console | ||
$ cat /opt/tinc-check.sh | ||
```shell title="/opt/tinc-check.sh" | ||
#!/bin/bash | ||
|
||
restart() { | ||
systemctl stop [email protected] | ||
sleep 3 # avoid race condition | ||
systemctl start [email protected] | ||
echo "tinc restarted" | ||
systemctl stop [email protected] | ||
sleep 3 # avoid race condition | ||
systemctl start [email protected] | ||
echo "tinc restarted" | ||
} | ||
|
||
dmesg | tail -n 2 | grep 'received packet on ustclug with own address as source address' && restart || echo "tinc OK now"; | ||
$ cat /etc/systemd/system/tinc-check.service | ||
``` | ||
|
||
```ini title="/etc/systemd/system/tinc-check.service" | ||
[Unit] | ||
Description=Tinc Check and Auto-Restart | ||
|
||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/opt/tinc-check.sh | ||
``` | ||
|
||
$ cat /etc/systemd/system/tinc-check.timer | ||
```ini title="/etc/systemd/system/tinc-check.timer" | ||
[Unit] | ||
Description=Tinc Check and Auto-Restart Timer | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters