L2TPプラグインのロードエラー

自宅vpnサーバーを立ち上げようと、sudo vpnd -i com.apple.ppp.l2tpとしてもうまく起動しません。


MacOSはVenture 13.6.1で、MacBookPro M1です。


コンソールでログを見てみると、何度やっても以下の通りになります。


vpnd: Server 'com.apple.ppp.l2tp' starting...
vpnd: Loading plugin /System/Library/SystemConfiguration/PPPController.bundle/Contents/PlugIns/L2TP.ppp
vpnd: Unable to load plugin (error = -1)
vpnd: Initialization of vpnd plugin failed


こちらのエラーを解決する方法はあるのでしょうか。


以下でも同じような質問がされていました。


https://discussionsjapan.apple.com/thread/253461803

MacBook Pro (M1, 2020)

投稿日 2023/11/16 10:32

返信

類似の質問

返信: 3

2023/11/16 16:03 k3e3r3tb3 への返信

Initialization of vpnd plugin fail… | Apple Developer Forums

の書き込みよればmacOSのvpndは死んでる、とあります。

しかし、Sonomaにも入っており、死んでるとは思えません。

ただ、

man 5 vpnd

とすると気になる記述が。

****

This manual page describes the configuration elements contained in the

/Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist file.  Should this file not be present on the target OS X System, a template file has been provided in this manual page.

****

この書き方だと、vpndを動かすには、設定ファイルcom.apple.RemoteAccessServers.plistをこのmanページにある例に倣って作ってやる必要があるのでは?


2023/11/16 17:37 品川地蔵 への返信

ありがとうございます。


同じ記事を見て以下の設定を/Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plistに行った上で上記エラーに遭遇しております🙇‍♂️


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
      <key>ActiveServers</key>
      <array>
           <string>com.apple.ppp.l2tp</string>
      </array>
      <key>Servers</key>
      <dict>
           <key>com.apple.ppp.l2tp</key>
           <dict>
            <key>DNS</key>
            <dict>
            </dict>
            <key>IPv4</key>
            <dict>
                <key>ConfigMethod</key>
                <string>Manual</string>
                <key>DestAddressRanges</key>
                <array>
                    <string>192.168.1.10</string>
                    <string>192.168.1.100</string>
                </array>
            </dict>
            <key>Interface</key>
            <dict>
                <key>SubType</key>
                <string>L2TP</string>
                <key>Type</key>
                <string>PPP</string>
            </dict>
            <key>L2TP</key>
            <dict>
                <key>IPSecSharedSecret</key>
                <string>password</string>
                <key>Transport</key>
                <string>IPSec</string>
            </dict>
            <key>PPP</key>
            <dict>
                <key>AuthenticatorProtocol</key>
                <array>
                    <string>MSCHAP2</string>
                </array>
                <key>LCPEchoEnabled</key>
                <integer>1</integer>
                <key>LCPEchoFailure</key>
                <integer>5</integer>
                <key>LCPEchoInterval</key>
                <integer>60</integer>
                <key>Logfile</key>
                <string>/var/log/ppp/vpnd.log</string>
                <key>VerboseLogging</key>
                <integer>1</integer>
            </dict>
            <key>Server</key>
            <dict>
                <key>Logfile</key>
                <string>/var/log/ppp/vpnd.log</string>
                <key>MaximumSessions</key>
                <integer>128</integer>
                <key>VerboseLogging</key>
                <integer>1</integer>
            </dict>
           </dict>
      </dict>
     </dict>
     </plist>

このスレッドはシステム、またはAppleコミュニティチームによってロックされました。 問題解決の参考になる情報であれば、どの投稿にでも投票いただけます。またコミュニティで他の回答を検索することもできます。

L2TPプラグインのロードエラー

Apple サポートコミュニティへようこそ
Apple ユーザ同士でお使いの製品について助け合うフォーラムです。Apple Account を使ってご参加ください。