http://www.thegeekstuff.com/2014/08/add-route-ip-command/
How to Add Multiple Routes in Linux Using ip Command Examples
# # reserved values # 255 local 254 main 253 default 0 unspec # # local # #1 inr.ruhep 111 olsr 112 olsr-default 113 olsr-tunnel 110 localnets 200 moje
/etc/config/openvpn
config openvpn 'ffvpn' option client '1' option proto 'udp' option dev 'ffvpn' option dev_type 'tun' option keepalive '10 60' option comp_lzo 'no' option cipher 'none' option route_nopull '0' option auth 'SHA1' option verb '3' option log '/tmp/openvpn.log' option status '/tmp/openvpn-status.log' option tls_client '1' option persist_tun '1' option lport '1194' option key '/lib/uci/upload/cbid.openvpn.ffvpn.key' option cert '/lib/uci/upload/cbid.openvpn.ffvpn.cert' option ca '/lib/uci/upload/cbid.openvpn.ffvpn.ca' option pull '1' option remote_random '0' option remote '213.155.225.85 1200 udp' option tls_exit '1' option enabled '1' option ifconfig '192.168.35.2 192.168.35.1' option float '1' option persist_key '1' option persist_local_ip '1' option route '192.168.0.0 255.255.224.0' option script_security '2' option up '/etc/openvpn/skola.up' option tun_mtu '1300'
/etc/openvpn/skola.up
#!/bin/sh # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. ip rule add from 192.168.43.0/24 table choltice ip route add default via 192.168.35.1 dev ffvpn table choltice ip route flush cache exit 0