Pushing routes "on the fly" to connected clients

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
alvaroag
OpenVpn Newbie
Posts: 1
Joined: Mon Jan 13, 2014 9:27 am

Pushing routes "on the fly" to connected clients

Post by alvaroag » Mon Jan 13, 2014 9:33 am

Hi. I've been developing my own OpenVPN web administrator, and it's going very well; it uses --client-connect to send iroute & push route directives to clients on connection. There's just one problem I'm having.

Suppose I have certificate A which currently provides (iroute) route 192.168.1.0/24. So, when the certificate connects, it will receive "iroute 192.168.1.0 255.255.255.0". Then, while the certificate is connected, I configure it on database so it also provides 192.168.2.0/24. Currently, I have to make the certificate reconnect so it will get "iroute 192.168.2.0 255.255.255.0", along with the previously provided route.

The question is, is there any way to make that happen "on the fly", that is, without having to reconnect?

Thanks on advance.

Post Reply