WireGuard
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
-軽量VPNソリューション。OpenVPNよりいいらしいので試してみ...
*install & setting [#q0770940]
dnf install -y wireguard-tools
# store secretkey
cd /etc/wireguard/
# set permission for root only
umask 077
*create private key and public key [#r78e0aed]
wg genkey | tee client.key | wg pubkey > client.pub
*setting file [#q41b2d14]
[Interface]
Address = ServerのVPN IP/24
ListenPort = 任意のポート
PrivateKey = Serverの秘密鍵
# 起動時にFW設定
PostUp = firewall-cmd --add-port=任意のポート/udp
PostDown = firewall-cmd --remove-port=任意のポート/udp
[Peer]
PublicKey = Clientの公開鍵
AllowedIPs = ClientのVPN IP/32
*client setting [#p5654fde]
**Mac [#sbeaad06]
アプリ立ち上げて、設定ファイルを読み込む
**Ubuntu [#k3cb4a25]
/etc/wireguard/wg0.conf
#ansibleでserver側に.sshに生成してあるのでそれを上記にコ...
sudo wg-quick up wg0
終了行:
-軽量VPNソリューション。OpenVPNよりいいらしいので試してみ...
*install & setting [#q0770940]
dnf install -y wireguard-tools
# store secretkey
cd /etc/wireguard/
# set permission for root only
umask 077
*create private key and public key [#r78e0aed]
wg genkey | tee client.key | wg pubkey > client.pub
*setting file [#q41b2d14]
[Interface]
Address = ServerのVPN IP/24
ListenPort = 任意のポート
PrivateKey = Serverの秘密鍵
# 起動時にFW設定
PostUp = firewall-cmd --add-port=任意のポート/udp
PostDown = firewall-cmd --remove-port=任意のポート/udp
[Peer]
PublicKey = Clientの公開鍵
AllowedIPs = ClientのVPN IP/32
*client setting [#p5654fde]
**Mac [#sbeaad06]
アプリ立ち上げて、設定ファイルを読み込む
**Ubuntu [#k3cb4a25]
/etc/wireguard/wg0.conf
#ansibleでserver側に.sshに生成してあるのでそれを上記にコ...
sudo wg-quick up wg0
ページ名: