ubergarm / l2tp-ipsec-vpn-client

A tiny Alpine based docker image to quickly setup an L2TP over IPsec VPN client w/ PSK.
MIT License
157 stars 124 forks source link

I encountered some problems, want to ask about. #1

Closed RonanDex closed 6 years ago

RonanDex commented 7 years ago

VPN connection, the use of ip a show ppp0 is OK. Use sudo ip route add 1.2.3.4 via 192.0.2.1 dev ppp0 forwarding a single address is no problem.

But use

Sudo ip route add default via 192.0.2.1 dev ppp0
# Or
Sudo route add-net default gw 192.0.2.1 dev ppp0
# And delete old default routes like
Sudo route del -net default gw 10.0.1.1 dev eth0

There will be an error that the buffer is not available. Why is that?

I use the centos7

2017-07-16 11 16 03
RonanDex commented 7 years ago
2017-07-16 11 37 27
ubergarm commented 6 years ago

I don't use CentOS so sorry I can't answer. It may be that the ip or route commands vary slightly in their usage. Or perhaps I have a mistake in my README.

route is deprecated and replaced by ip I believe, so perhaps check map ip on your machine.

Good luck!