Jack Yaz
Part of the Furniture
Sorry to necro an old thread, but was @Martineau finding resolved?Would it actually make more sense to only clone routes that are specific to the tunnel interface? I.e, in vpnrouting.sh:
Code:init_table(){ logger -t "openvpn-routing" "Creating VPN routing table" ip route flush table $VPN_TBL # Fill it with copy of existing main table ip route show table main dev $dev | while read ROUTE do ip route add table $VPN_TBL $ROUTE dev $dev done }
This might however mean that any user-defined static route would be missing from that client's table.