0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ロリポップのプライベートIPの設定方法(mac os)

0
Posted at

ロリポップのプライベートIPの設定方法(mac os)

  • ロリポップのプライベートIPサービスを使うと固定IPとVPNがセットで使える

  • 契約すると以下のような画面にアクセスできるためPC設定ファイルをダウンロードする
    スクリーンショット 2026-03-29 8.21.19.png

  • WireGuardの設定をする

  • ファイルインポートする

  • これで有効化ボタンを押すと固定IPに切り替わります

コマンドで切り替えする

  • ツールをインストール
brew install wireguard-tools
  • コマンドで起動できるように設定ファイルを置く

    • 設定ファイルの値はWireGuardのアプリから見れます トンネルの管理ー>編集 で出てきた値をコピペ

    • コピーする値の例

      [Interface]
      PrivateKey = あなたの秘密鍵
      Address = 10.0.0.2/24
      DNS = 1.1.1.1
      
      [Peer]
      PublicKey = サーバーの公開鍵
      Endpoint = example.com:51820
      AllowedIPs = 0.0.0.0/0
      PersistentKeepalive = 25
      
  • コピーした値をprivate.confに反映

vi /opt/homebrew/etc/wireguard/private.conf
chmod 600 /opt/homebrew/etc/wireguard/private.conf
sudo wg-quick up private
sudo wg-quick down private
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?