[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


Hello,

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

proto_add_ipv4_route 0.0.0.0 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
iproute.

Thanks for help.

--
S pozdravom Jakub Janco
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list