### CyberSpy

Rantings from a guy with way too much free time

2019-11-20

### VPN Client PPP daemon configuration

Recipe: Configure Default Host routes after a specific VPN connection has been established

Solution:

In order to configure the host (or network routes, although I'm solely interested in routing specific hosts between my two sites), we need to create a file with the following commands in /etc/ppp.

#!/bin/sh

# VPN_GATEWAY is the remote address of the vpn tunnel
# when ppp executes this script it will pass several values to it