Show pagesourceOld revisionsBacklinksBack to top × Routing example: VPN policy routing A typical configuration scenario that can be adapted for most common use cases: Disable gateway redirection in the VPN client configuration. Route LAN 192.168.1.0/24 to WAN and DMZ 192.168.3.0/24 to VPN. 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="192.168.1.0/24 192.168.3.0/24" uci set vpn-policy-routing.@policy[-1].interface="ignore" uci add vpn-policy-routing policy uci set vpn-policy-routing.@policy[-1].src_addr="192.168.3.0/24" 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.OKMore information about cookies Last modified: 2021/08/16 19:32by vgaetera