DHCPサーバーからIPが取得できない(openWRT+dnsmasq)

SoftEther VPN に関するご質問はこのフォーラムにお気軽にご投稿ください。
Post Reply
metman
Posts: 2
Joined: Sun Jun 05, 2022 3:25 pm

DHCPサーバーからIPが取得できない(openWRT+dnsmasq)

Post by metman » Sun Jun 05, 2022 3:43 pm

raspberypiにopenWRTを入れてルーターとして使用しているのですが、softetherを入れ、クライアントから接続しようとしたところ、

2022-06-06 00:23:24.987 L2TP PPP Session [*.*.*.*:1701]: Trying to request an IP address from the DHCP server.
2022-06-06 00:23:29.989 L2TP PPP Session [*.*.*.*:1701]: Acquiring an IP address from the DHCP server failed. To accept a PPP session, you need to have a DHCP server. Make sure that a DHCP server is working normally in the Ethernet segment which the Virtual Hub belongs to. If you do not have a DHCP server, you can use the Virtual DHCP function of the SecureNAT on the Virtual Hub instead.

というエラーでIPが取得できず、接続できませんでした。

WANー(eth0)raspi(eth1)ーLANーPC
というネットワーク構成になっており、raspiはopenWRTがインストールされており、PCはraspiからDHCPで正しくIP割り当てを受けられているため、DHCPサーバー自体は正しく動いているのかと思います。

softeatherの設定は、
ローカルブリッジはLAN側のeth1とつなげている状態です。
secureNAT機能を有効にすると接続自体はできるので、ブリッジの設定が原因でDHCPに接続できないのかとおもうのですが、このような構成の場合、ブリッジ設定等どのようにすればよいのでしょうか

eddiewu
Posts: 286
Joined: Wed Nov 25, 2020 9:10 am

Re: DHCPサーバーからIPが取得できない(openWRT+dnsmasq)

Post by eddiewu » Tue Jun 07, 2022 2:38 am

原因はおそらくこれです。
https://ja.softether.org/4-docs/1-manua ... E%E3%81%99)%E3%80%82

securenatかtapを利用したほうが良いと思います。

metman
Posts: 2
Joined: Sun Jun 05, 2022 3:25 pm

Re: DHCPサーバーからIPが取得できない(openWRT+dnsmasq)

Post by metman » Tue Jun 07, 2022 10:01 am

なるほど、eth1に直接つなげたのがダメだったんですね・・・。

試しにsoftetherのブリッジをtapデバイスとして、openWRTでeth1とtapデバイスのブリッジを作成したところ、無事windowsからIPSECでの接続に成功しました。ありがとうございました。

Post Reply