I have working Linux OpenVPN server and I’m trying to setup RouterOS (actually, ten of them:-) as a client(s). I haven’t found any documentation, except the wiki article famous on this forum of being unprofitable (gotchas like udp on linux server for routeros are not so funny).
My server config is:
port 1194
proto tcp
dev tun0
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
client-config-dir ccd
server 172.16.100.0 255.255.255.248
route 172.16.1.0 255.255.255.248
route 10.1.0.0 255.255.255.0
route 10.1.1.1 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
keepalive 10 30
comp-lzo
max-clients 700
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log-append /var/log/openvpn.log
verb 3
Client-config-dir for this client adds also:
iroute 172.16.1.0 255.255.255.248
iroute 10.1.0.0 255.255.255.0
iroute 10.1.1.1 255.255.255.0
So… what’s the proper way to configure the RouterOS as a client here? from all I’ve read it should go like this:
/interface ovpn-client
add name="ovpn-out1" connect-to=my-server port=1194 mode=ethernet user="username" password="password" profile=default certificate=vpngate-client cipher=aes256 add-default-route=no
I’m not sure what does it mean:
- user
- password
- profile (guess this is routeros specific?)
- certificate (is this client certificate or ca certificate or what?)
I would be very thankful if somebody point me to right direction (documentation, working example - I need Linux server, RouterOS clients, I don’t care about configs, UDP over TCP falmewars, LZO and so on).
Thanks,
js