openfortivpn icon indicating copy to clipboard operation
openfortivpn copied to clipboard

Local network can't reach remote network

Open sinan92 opened this issue 1 year ago • 1 comments

I get a successful connection with these messages:

WARN:   Bad key in config file: "pppd-args".
WARN:   Could not load config file "/etc/openfortivpn/config" (unknown).
INFO:   Connected to gateway.
Two-factor authentication token:
INFO:   Authenticated.
INFO:   Remote gateway has allocated a VPN.
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
INFO:   Got addresses: [10.212.134.203], ns [0.0.0.0, 0.0.0.0]
INFO:   Negotiation complete.
INFO:   Got addresses: [10.212.134.203], ns [0.0.0.0, 0.0.0.0]
INFO:   Negotiation complete.
INFO:   Negotiation complete.
local  IP address 10.212.134.203
remote IP address 192.0.2.1
INFO:   Interface ppp0 is UP.
INFO:   Setting new routes...
INFO:   Adding VPN nameservers...
INFO:   Tunnel is up and running.

In my router I can ping devices on the remote network through the VPN. But for some reason when I ping from my local device which is on the same network as my router it says "Request timed out". I can't reach the devices on the remote network. What could I be doing wrong?

These are my configs:

host = fortinet.***.***
port = 10443
username = ****
password =  **** // Obv my real password here
set-routes = true
set-dns = true
pppd-args = noipdefault

sinan92 avatar Mar 24 '23 15:03 sinan92

We lack information on the machine you run openfprtivpn on, the version of openfortivpn, or what you successfully connect to. See Reporting issues.

Because you refer to a router, I suspect you run openfortivpn on some kind of router, with a WAN interface connected to the internet and LAN interfaces. Not sure what the “local device” is, but it is probably connected to a LAN interface of the router.

What you experience might be expected. Corporate VPN gateways typically require clients to be isolated from the local LAN and all traffic to be tunnelled through the corporate network. If these are the instructions sent by the VPN, openfortivpn executes these instructions and sets up routing as requested by the corporate VPN. You might want to set routing yourself if you want different behaviour.

DimitriPapadopoulos avatar Mar 24 '23 18:03 DimitriPapadopoulos