Hmm. Not sure you have got this right.
By default you will connect on a routed network 192.168.29.x
my $net = ${'openvpn-routed'}{'Network'} || '192.168.29.0/255.255.255.0';
IOW - no 'Network' set then use 192.168.29.0/24
That should have the local networks pushed unless you have changed anything?
I also tried adding push "route 192.168.0.0 255.255.255.0" openvpn.conf, but when i issue signal-event openvpn-routed-update the line is deleted, is there way to add this in using the db configuration setprop command as the route property isn't listed in the contrib howto
You should not need to do anything manually...... SME is a templated system. You can adjust the content of configs with the config DB keys. The only way to really override this is to use custom-templates but you should not need them here.
If you accept the defaults then you should be able to see machine on your local networks as they are pushed by default:
$pushRoutes = ${'openvpn-routed'}{PushLocalNetworks} || 'enabled';
So, whatever you have done, undo and start again as there are no pushed routes in your config.
Here's the conf from one of mine:
(VPN server is 192.168.97.1)
push "route 10.0.0.0 255.255.255.0 192.168.97.1"
push "route 192.168.10.0 255.255.255.0 192.168.97.1"
push "route 192.168.97.0 255.255.255.0"
Look at the settings here:
https://wiki.contribs.org/OpenVPN_RoutedAlso check for the settings in OpenVPN documentation as well so you fully understand what you are doing.
You can check how and where the DB settings are applied by looking through the templates eg
cd /etc/e-smith/templates
grep -rn openvpn-routed
Redirect Gateway determines if all your data is pushed across the default gateway to the to the internet, or only the data to the Open Server network/networks.
By default it is disabled:
my $redirectGW = ${'openvpn-routed'}{RedirectGateway} || 'disabled';
But note that this can be overridden in your client config (I presume the server will take precedence but never checked)
Something like this in the ovpn config file:
route 0.0.0.0 0.0.0.0 vpn_gateway
Also make sure you have compression disabled and do not use it in your client configs or you will get some moaning and whining eg "IP packet with unknown IP version=15 seen"
config setprop openvpn-routed Compression disabled
Show:
config show openvpn-routed