On 19/05/15 23:23, Josu Lazkano wrote: > > Thanks both! > > I will try iroute in client-config-dir. > > My original configuration was to make as point-to-point, but I have > not found any interesting guide te use in openwrt. > > Anyone have a simple configuration with static keys? Jusy to join and > route to networks? > > yeah, it would simply be a matter of
host1# openvpn --dev tun --secret static.key --ifconfig 10.200.0.1 10.200.0.2 host2# openvpn --dev tun --secret static.key --ifconfig 10.200.0.2 10.200.0.1 --remote host1 After the connection has come up, add static routes: host1# route add -net 192.168.2.0/24 gw 10.200.0.2 host2# route add -net 192.168.1.0/24 gw 10.200.0.1 the trick is: how do you get this into an OpenWRT config file? I have no clue JJK ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users