[OpenWrt-Devel] Proto add foreign routes on ifup doesnt add route to table

Jakub Jančo kubco2 at gmail.com
Fri Jan 29 04:46:50 EST 2016


Im working on proto for openvpn, and I want add route to vpn server.
I added

proto_add_ipv4_route 0 vpn_gw
proto_add_ipv4_route vpn.server.ip 32 wan_gw

But this will only add default route to table. In ifstatus both routes
are "active".

As a workaround I set route with ip command, but as I see in mailing
lists, things are changing, and somewhere can be ifconfig somewhere

Thanks for help.

S pozdravom Jakub Janco
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list