Routing example: VPN policy routing

A typical configuration scenario that can be adapted for most common use cases:

opkg update
opkg install vpn-policy-routing luci-app-vpn-policy-routing
/etc/init.d/rpcd restart
uci set vpn-policy-routing.config.enabled="1"
uci set vpn-policy-routing.config.resolver_ipset="none"
uci set vpn-policy-routing.config.webui_show_ignore_target="1"
while uci -q delete vpn-policy-routing.@policy[0]; do :; done
uci add vpn-policy-routing policy
uci set vpn-policy-routing.@policy[-1].dest_addr=""
uci set vpn-policy-routing.@policy[-1].interface="ignore"
uci add vpn-policy-routing policy
uci set vpn-policy-routing.@policy[-1].src_addr=""
uci set vpn-policy-routing.@policy[-1].interface="vpn"
uci commit vpn-policy-routing
/etc/init.d/vpn-policy-routing restart
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2021/08/16 19:32
  • by vgaetera