差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:wireguard [2023/11/19 19:04] – jonathan | tech:wireguard [2024/04/12 20:53] (目前版本) – [host Alpine 升級到 3.19 之後啟動異常解決方法] jonathan | ||
---|---|---|---|
行 21: | 行 21: | ||
- PASSWORD=myPassword | - PASSWORD=myPassword | ||
- WG_PORT=51820 | - WG_PORT=51820 | ||
- | - WG_DEFAULT_ADDRESS=10.13.12.254 | + | - WG_DEFAULT_ADDRESS=10.13.12.x |
- WG_DEFAULT_DNS=192.168.11.6 | - WG_DEFAULT_DNS=192.168.11.6 | ||
# - WG_MTU=1420 | # - WG_MTU=1420 | ||
行 49: | 行 49: | ||
</ | </ | ||
* 可以使用瀏覽器 http:// | * 可以使用瀏覽器 http:// | ||
+ | * 詳細設定參數請參考 - https:// | ||
==== 修改 Listen Port ==== | ==== 修改 Listen Port ==== | ||
行 62: | 行 63: | ||
</ | </ | ||
- | ===== 採用 linuxserver/ | + | ===== FAQ ===== |
+ | - host Alpine 升級到 3.19 之後啟動時 log 出現 < | ||
+ | : | ||
+ | iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; | ||
+ | modprobe: can't change directory to '/ | ||
+ | modprobe: can't change directory to '/ | ||
+ | iptables v1.8.3 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?) | ||
+ | Perhaps iptables or your kernel needs to be upgraded. | ||
+ | : | ||
+ | </ | ||
+ | * Ans : 需要在 host (Alpine 3.19) 執行以下指令< | ||
+ | modprobe ip_tables | ||
+ | echo ' | ||
+ | </ | ||
+ | * 參考 - https:// | ||
+ | |||
+ | ===== 採用 linuxserver/ | ||
* 採用 [[https:// | * 採用 [[https:// | ||
* 執行以下語法 <cli> | * 執行以下語法 <cli> |