Hello all,
This is collection from different tutorials which I will refer here, but usually changed since some things changed.
Setting up VPN on Synology is modified neolefort tutorial from here and reconnect script if from sundi which you can find here, which probably modified this script, plus my iptables for blocking Synology on router level when VPN fails.
Other contributions:
foobar666 - you no longer need to enter variables manually
_sinnerman_ - fix