#!/bin/sh tun_dev=$1 tun_mtu=$2 link_mtu=$3 ifconfig_local_ip=$4 ifconfig_remote_ip=$5 echo "Delete client $ifconfig_local_ip traffic routing through VPN" ip rule del from $ifconfig_local_ip priority 10 table 10 ip route del $ifconfig_local_ip dev $tun_dev table 10 ip route del default via $ifconfig_remote_ip dev $tun_dev table 10 ip route flush cache