[Solved] IPsec always getting a /32 address and no gateway

Started by Dobi, September 10, 2021, 12:49:11 PM

Previous topic - Next topic
Hello,

I followed the following guides:
https://docs.opnsense.org/manual/how-tos/ipsec-rw-srv-eapradius.html
https://docs.opnsense.org/manual/how-tos/ipsec-rw-android.html#ikev2-eap-mschapv2-or-eap-radius

When I look at the OPNsense IPsec Log File, I can see that I get a /32 IP-address:

07[IKE] <con1|12> CHILD_SA con1{6} established with SPIs c267faa6_i e582545f_o and TS 192.168.1.0/24 === 10.10.2.1/32

Also when I check ifconfig on my Android (Termux App), I see that I get a 255.255.255.255 subnet mask.

[I attached some PrtScrs.]

Maybe someone can help me out.

Greetings,
Dobi


EDIT 01:
I also now tested with Windows 10 (needed to add some Encryption Algo. and so on).
The connection is working, but I have the same problem with the subnet mask.
I also saw that I did not get any gateway.

PPP adapter OPNsense:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 10.10.2.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.255
   Default Gateway . . . . . . . . . : 0.0.0.0


EDIT 02:
I think I'm stupid as f***  :-[ sorry guys...
Is it possible that this is the normal behaviour and nothing wrong with it?! :-[
(I never used IPsec and thought it should behave more like OpenVPN...)