How Can I route traffic from client VPN to Static Route?
-
Hello, we have a pfsense (172.21.34.1). Within the pfsense we created a static route. Destination network 207.186.74.8 from GW 172.21.34.254(cisco router). All of this works well.
Now what I need is for OpenVPN users which IP assigned is 10.10.10.0/24 to be able to communicate to 207.186.74.8. Any ideas on how to this? Firewall rules or another static mapping?
RECAP:
LAN: 172.21.34/24
Tunnel VPN: 10.10.10.0/24
Static route: 207.186.74.8 via GW 172.21.34.254
So I'm looking to get from 10.10.10.0/24 to 207.186.74.8
I cannot ping 172.21.34.254 when connected to (10.10.10.0./24) but I can ping the pfsense.
-
@alextsic If it's working from the local LAN, you should just have to put the 207.186.74.8 in the OpenVPN server config as a "Local Network".
Is that just a host, /32, or a network? You'll need a subnet mask when entering it. -
@alextsic
Additionally to pushing the route to the OpenVPN clients, you need a route on the Cisco, respectively on the default gateway of 207.186.74.8 for the tunnel network pointing to pfSense. -
@alextsic Hattest du Erfolg?
Ich habe genau das selbe Problem, das hinzufügen von Routen unter VPN funktioniert nicht. -
@alextsic Hattest du Erfolg?
Ich habe genau das selbe Problem, das hinzufügen von Routen unter VPN funktioniert nicht.Vielleicht kann ich mich hier mit meinem Fall äussern:
LAN: 10.108.36.128/25
Tunnel VPN: 10.0.8.0/24
Static route: 10.252.12.0 /22 via Gateway 10.108.36.130 /25Ich versuche eine Webseite im Netzwerk 10.252.12.0 /22 zu erreichen.
Der DNS im LAN Netzwerk löst die Webseite auf mit der IP im Static Route Netzwerk.
OpenVPN hat diesen DNS als Server als Nameserver hinterlegt und nslookup funktioniert auch einwandfrei.Static Routes haben nicht geholfen und auch nicht Force jeglichen Traffic durch den Tunnel.
Der Gateway 10.108.36.130 /25 ist noch mit anderen Netzwerken verbunden, werden jedoch nicht von mir verwaltet, daher keinen Einblick was dort passiert.
Mein Verdacht: 10.0.8.0/24 ist eventuelle ein Netzwerk das er schon kennt und der Traffic wird nicht an nicht zu mir zurückschickt bzw. er ist so konfiguriert das er nur Traffic von 10.108.36.128/25 akzeptiert, ist das eine Möglichkeit?
Gibt es eine Möglichkeit den Traffic von OpenVPN in ein NAT umzustellen das es von 10.108.36.128/25 kommt?