all repos — dotfiles @ bbd6b18cf7b54c912f65b59bb6f25fd10a0c1ec1

my *nix dotfiles

bin/redirectgateway-def1-socks.sh (view raw)

 1#!/usr/bin/env bash
 2
 3if [ "$script_type" == "up" ]; then
 4  #route add -host $remote_1/32 gw $route_net_gateway
 5  #route add -net 0.0.0.0/1 gw $route_vpn_gateway
 6  #route add -net 128.0.0.0/1 gw $route_vpn_gateway
 7  /etc/openvpn/update-resolv-conf
 8elif [ "$script_type" == "down" ]; then
 9  /etc/openvpn/update-resolv-conf
10  route del -host $remote_1/32 gw $route_net_gateway
11fi