OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Routed Ipsec failed if last digit of local ip is greater than 32
« previous next »
  • Print
Pages: [1]

Author Topic: Routed Ipsec failed if last digit of local ip is greater than 32  (Read 2687 times)

fog

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
    • View Profile
Routed Ipsec failed if last digit of local ip is greater than 32
« on: August 28, 2021, 11:33:59 am »
Hi,
an error occurs if the last digit of the Local Address in phase 2 of a routed ipsec vpn is greater than 32. The General Log show an invalid subnet mask:
Code: [Select]
opnsense[59451] /vpn_ipsec.php: The command '/sbin/ifconfig 'ipsec1' 'inet' '10.36.238.100/-68' '10.36.238.1'' returned exit code '1', the output was 'ifconfig: 10.36.238.100/-68: bad value (width invalid)'

It works with 10.36.238.2 .. 10.36.238.32.
see more errors in https://forum.opnsense.org/index.php?topic=22886.msg117655#msg117655

The Audit Health show no problems:
Code: [Select]
***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 21.7.1 (amd64/OpenSSL) at Sat Aug 28 11:17:10 CEST 2021
>>> Check installed kernel version
Version 21.7.1 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 21.7.1 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 66 dependencies to check.
Checking packages: .................................................................... done
***DONE***

Regards,
fog
Logged

bimbar

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 25
    • View Profile
Re: Routed Ipsec failed if last digit of local ip is greater than 32
« Reply #1 on: August 28, 2021, 01:09:09 pm »
See https://forum.opnsense.org/index.php?topic=23901.0
Logged

bimbar

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 25
    • View Profile
Re: Routed Ipsec failed if last digit of local ip is greater than 32
« Reply #2 on: August 30, 2021, 01:44:17 pm »
@Devs: is this going to be fixed?
Logged

Carool

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
    • รีวิวหนังสนุกมาแรง
Re: Routed Ipsec failed if last digit of local ip is greater than 32
« Reply #3 on: August 30, 2021, 04:51:46 pm »
 :o :o
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Routed Ipsec failed if last digit of local ip is greater than 32
« Reply #4 on: August 30, 2021, 05:22:21 pm »
Quote from: bimbar on August 30, 2021, 01:44:17 pm
@Devs: is this going to be fixed?
You'll want to you submit it here: https://github.com/opnsense
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Routed Ipsec failed if last digit of local ip is greater than 32
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2