How to setup a route to the client without iroute?

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
danilabagroff
OpenVpn Newbie
Posts: 2
Joined: Sun Sep 10, 2017 4:27 pm

How to setup a route to the client without iroute?

Post by danilabagroff » Mon Sep 11, 2017 6:20 pm

Hi community!

I'm migrating from DD-WRT to RouterOS(Mikrotik). Unfortunately, RouterOS has a... "special" OpenVPN without good features. One of them is ccd-directory and iroute directive.

Basically, I have to have an access from server's network(10.1.0.1/24) to a subnet(10.2.0.1/24) of one of my OpenVPN clients.

I used to do this using ccd-configs
root@gw1:/jffs/etc/openvpn/ccd# cat gw2
[oconf]
iroute 10.2.0.0 255.255.255.0
ifconfig-push 10.7.0.2 255.255.255.0
[/oconf]

server.conf
[oconf]
route 10.2.0.0 255.255.255.0
[/oconf]

Is there any chance to achieve the same behaviour without iroute?

Thank you in advance.

Post Reply