This is a repost in the right forum (hopefully).
I would like to invoke the local network command in the gui from bash and/or add a local network to the system minus the addition to the routing table.
The problem I'm having is when my openvpn connects it cannot update the routing table if there is a entry in there already from the local network wizard.
If I update the local network wizard after openvpn connects it works fine.
If I dont add a local network the firewall drops service packets like they are lastyears fasion.
My server ip is 192.168.11.1 its openvpn server is 192.168.100.1
My VPN Client is 192.168.12.1 its openvpn address is 192.168.100.4
My 2nd VPN Client is 192.168.14.1 its openvpn address is 192.168.100.8
The trusted network I want to allow is 192.168.100.0 / 255.255.255.0 / 192.168.11.1
Here is a link to pastebin of my routing tables in the 4 possible configureations
1. Trusted network then Openvpn (didnt work)
2. Trusted network no openvpn
3. Openvpn no trusted network (works for pinging clients but does not have dns / domain service)
4. Openvpn then trusted network (works)
http://pastebin.com/m39786f9bWhen I compair the firewall rules before and after I get
[0:0] -A local_chk_8501 -s 192.168.100.0/255.255.255.0 -j ACCEPT
as a discrepancy and that is the rule I need however when I try to either add the rule manually or expand a template like in the howto it does not work / show up.
So what I'm trying to accomplish is a script that will add this local network so I may put it in my openvpn startup.
I am really new to linux / scripts / iptables / sme so the more you can help the better.
Thank you for your time,
Derek L