Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • My OpenWRT doesn't have ip package. I tried to apply your command on route like this route add 192.168.178.0/24 gw 192.168.178.1 dev br-wan but this fails with route: netmask 000000ff and host route conflict. I could apply your iptables route with correcting destination ip address space to 192.168.178.0/24 but afterwards 192.168.178.0/24 is still not accessible from behind vpn router. Also I would really like to stay with UCI configuration.
    – jelhan
    Commented Feb 23, 2014 at 14:18
  • @jelhan the correct command is route add -net 192.168.178.0/24 gw 192.168.178.1 ...: you need the net flag. Commented Feb 23, 2014 at 16:17