Tag Archives: pppd

pppd: LCP: timeout sending Config-Requests

Jan 17 04:52:57 cloudlix pppd[18873]: Connect: ppp0 <--> /dev/pts/1
Jan 17 04:53:27 cloudlix pppd[18873]: LCP: timeout sending Config-Requests
Jan 17 04:53:27 cloudlix pppd[18873]: Connection terminated.
Jan 17 04:53:27 cloudlix pppd[18873]: Modem hangup
Jan 17 04:53:27 cloudlix pppd[18873]: Exit.

This error means you local ot network firewall blocks GRE packets, so if you are using Fedora just do this:

sudo firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p gre -j ACCEPT
sudo firewall-cmd --permanent --direct --add-rule ipv6 filter INPUT 0 -p gre -j ACCEPT (if you are using IPV6)
sudo firewall-cmd --reload

PPP over SSH

pppd updetach noauth silent nodeflate pty “/usr/bin/ssh root@remote-server /usr/sbin/pppd nodetach notty noauth” ipparam vpn 10.0.8.1:10.0.8.2

When the VPN is established, you can route traffic through it. To get access to an internal network:

ip route add 192.168.0.0/16 via 10.0.8.2

To route all Internet traffic through the tunnel, for example to protect your communication on an unencrypted network, first add a route to the SSH server through your regular gateway:

ip route add  remote-server via <current default gateway>

Next, replace the default route with the tunnel

ip route replace default via 10.0.8.2