OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network
« previous next »
  • Print
Pages: [1]

Author Topic: Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network  (Read 2944 times)

verdi

  • Newbie
  • *
  • Posts: 14
  • Karma: 1
    • View Profile
Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network
« on: February 15, 2019, 01:05:53 am »
Hi,
i have an OPNSense Installation with IP Net 192.168.23.0/24 with a Site2Site IPSec VPN to a Fritzbox with IP Net 192.168.24.0/24
I can reach all 192.168.24.0/24 clients from my 192.168.23.0/24 clients
Works fine!
I also have a OpenVPN Server for mobile devices which get 192.168.25.0/24 IP addresses.
Works fine!
I can reach all 192.168.23.0/24 addresses from the Road Warrior client.
But i can't reach any of the 192.168.24.0/24 clients from any of the 192.168.25.0/24 Road Warrior clients.

Traceroutes from the 192.168.25.0/24 clients show that the request to 192.168.24.0/24 get routed to WAN on the OPNsense box.

Rules for OpenVPN are: source 192.168.25.0/24 -> * -> GW default ( i can't set IPSec connection here )

How can i fix it?

greets

Marcel

Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network
« Reply #1 on: February 15, 2019, 08:05:23 am »
Add a static route on the Fritzbox for 192.168.25.0/24 via OPNsense

Bart...
Logged

verdi

  • Newbie
  • *
  • Posts: 14
  • Karma: 1
    • View Profile
Re: Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network
« Reply #2 on: February 15, 2019, 08:35:25 am »
hi
i can already see on the openvpn client that the opnsense routes it wrin. see attachment

greets

Marcel
Logged

verdi

  • Newbie
  • *
  • Posts: 14
  • Karma: 1
    • View Profile
Re: Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network
« Reply #3 on: February 15, 2019, 09:33:17 am »
i found a route under system->routes->status

destination 192.168.24.0/24
gateway 84.x.x.x. ( my WAN IP )

but how can i find out who set this route? because that's obviously cuasing the problem ... it comes from 192.168.25.x ( openvpn client ) and then firewall looks at route an sends it through wan. exactly what i am seeing on my client


edit: route was set by phase 2 of the ipvsec site2site connection. Under advanced config you can set "don't add routes' then it disappears in the routing table but i can't add a proper static route then because i can't choose ipsec as gateway
« Last Edit: February 15, 2019, 11:31:54 am by verdi »
Logged

Suhel

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network
« Reply #4 on: May 25, 2023, 03:04:44 pm »
Hello Marcel,

have you found a solution for your problem? I think I am struggling with the same problem. Would be nice to hear from you.

Greeting
Suhel
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Routing Problem OpenVPN Roadwarrior to other side of Site2Site Network
 

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