You are not logged in.

#1 2018-04-26 07:20:05

believer
Member
From: Russia, Ufa
Registered: 2018-03-13
Posts: 6

[SOLVED] l2tp/ipsec connection (Error: Nexthop has invalid gateway)

Hello everyone!

Please, if you can, explain how correctly configure l2tp/ipsec connection on Arch linux systems.

I use next script to up my own vnp server based on ubuntu. On windows and android everything working fine.

Last step - my arch linux client PC, and i cannot get stable connection on it.

I was tried that wiki instructions. But stumbled on 2nd step of this instruction part.

i run "ip address" command and getting "peer IP" of my ppp0 connection:

10: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 3
    link/ppp 
    inet 192.168.42.11 peer 192.168.42.1/32 scope global ppp0
       valid_lft forever preferred_lft forever

Next i need to add new route based on that information:

sudo ip route add default via 192.168.42.1 dev enp3s0
Error: Nexthop has invalid gateway.

What means this message? Please if anyone can help me.

Last edited by believer (2018-04-26 09:58:04)

Offline

#2 2018-04-26 09:57:09

believer
Member
From: Russia, Ufa
Registered: 2018-03-13
Posts: 6

Re: [SOLVED] l2tp/ipsec connection (Error: Nexthop has invalid gateway)

Problem resolved, i think it is two small mistakes in that part of instruction:

1. I replaced

ip route add default via yyy.yyy.yyy.yyy dev eth0

instruction to

ip route add default via yyy.yyy.yyy.yyy dev ppp0

2. I delete default route before add new default:

ip route delete default via 192.168.1.1 dev eth0

With this fixes everything now connects and works normally.

Offline

Board footer

Powered by FluxBB