aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md55
-rw-r--r--list.c2
-rw-r--r--list.h2
3 files changed, 55 insertions, 4 deletions
diff --git a/README.md b/README.md
index 1efc832..21e375b 100644
--- a/README.md
+++ b/README.md
@@ -19,12 +19,63 @@ remote_plot -d 10.0.0.7
remote_plot -l
```
-Infrastructure configs not included yet:
+Infrastructure configs not included in the repo, not included exactally, or maybe inclulded in other url:
- raspberry pi
- ~/.config/labwc/autostart autostart remote_plot locally
- <https://wiki.archlinux.org/title/Labwc#Autostart>
- server and laptop:
- wireguard related configs
- - files in /etc/wireguard
+ - files in /etc/wireguard, see below
- files in /etc/NetworkManager/system-connections
- /etc/nftables.conf nftables firewall configs
+ - server: <https://git.flylightning.xyz/config_local_arch/tree/etc/nftables.conf?h=ca>
+ - laptop: <https://git.flylightning.xyz/config_local_arch/tree/etc/nftables.conf?h=master>
+ - example code from another device but applicable to raspberry pi: <https://git.flylightning.xyz/config_local_arch/tree/etc/nftables.conf?h=pp>
+
+wireguard laptop configuration
+```
+# https://wiki.archlinux.org/title/WireGuard
+# https://github.com/teddysun/across/blob/master/wireguard.sh
+[Interface]
+Address = 10.0.0.1/24, fdc9:281f:04d7:9ee9::1/64
+PrivateKey = <secret>
+
+[Peer]
+PublicKey = <secret>
+PresharedKey = <secret>
+Endpoint = ca.flylightning.xyz:49432
+AllowedIPs = 10.0.0.5/32, fdc9:281f:04d7:9ee9::5/128, 10.0.0.9/32, fdc9:281f:04d7:9ee9::9/128
+PersistentKeepalive = 25
+```
+
+wireguard server configuration
+```
+[Interface]
+Address = 10.0.0.5/24, fdc9:281f:04d7:9ee9::5/64
+ListenPort = 49432
+PrivateKey = <secret>
+
+[Peer]
+PublicKey = <secret>
+PresharedKey = <secret>
+AllowedIPs = 10.0.0.1/32, fdc9:281f:04d7:9ee9::1/128
+
+[Peer]
+PublicKey = <secret>
+PresharedKey = <secret>
+AllowedIPs = 10.0.0.9/32, fdc9:281f:04d7:9ee9::9/128
+```
+
+wireguard raspberry pi configuration
+```
+[Interface]
+Address = 10.0.0.9/24, fdc9:281f:04d7:9ee9::9/64
+PrivateKey = <secret>
+
+[Peer]
+PublicKey = <secret>
+PresharedKey = <secret>
+Endpoint = ca.flylightning.xyz:49432
+AllowedIPs = 10.0.0.5/32, fdc9:281f:04d7:9ee9::5/128, 10.0.0.1/32, fdc9:281f:04d7:9ee9::1/128
+PersistentKeepalive = 25
+```
diff --git a/list.c b/list.c
index d2547c4..85a7093 100644
--- a/list.c
+++ b/list.c
@@ -1,5 +1,5 @@
// references:
-// "C Primer Plus" Chapter17 practice 17 practice problem 2
+// "C Primer Plus" Chapter17 practice 17 problem 2
//list.c--支持列表操作的函数
#include <stdio.h>
diff --git a/list.h b/list.h
index 0baca25..ddc523e 100644
--- a/list.h
+++ b/list.h
@@ -1,5 +1,5 @@
// references:
-// "C Primer Plus" Chapter17 practice 17 practice problem 2
+// "C Primer Plus" Chapter17 practice 17 problem 2
/*list.h--简单列表类型的头文件*/
#ifndef LIST_H_