short version:
Is it possible to use Router OS as OpenVPN server with mode=ip
and have several Windows clients connect simultaneously ?
long version:
I managed to setup OpenVPN server on RouterOS 4.2:
Code: Select all
enabled: yes
port: 1196
mode: ip
netmask: 27
mac-address: FE:92:EF:66:F1:92
max-mtu: 1450
keepalive-timeout: disabled
default-profile: ovpn-profile
certificate: ovpn
require-client-certificate: yes
auth: sha1,md5
cipher: blowfish128,aes128,aes192,aes256
Code: Select all
0 name="ovpn-pool" ranges=10.10.10.2-10.10.10.30
The problem occurs with windows clients. The connection aborts with:
Code: Select all
[...]
Wed Nov 25 15:30:04 2009 [RB450_1B5C01E0965C] Peer Connection Initiated with 213.135.21.86:1196
Wed Nov 25 15:30:06 2009 SENT CONTROL [RB450_1B5C01E0965C]: 'PUSH_REQUEST' (status=1)
Wed Nov 25 15:30:06 2009 PUSH: Received control message: 'PUSH_REPLY,route 10.10.10.0 255.255.255.224,ifconfig 10.10.10.29 10.10.10.1'
Wed Nov 25 15:30:06 2009 OPTIONS IMPORT: --ifconfig/up options modified
Wed Nov 25 15:30:06 2009 OPTIONS IMPORT: route options modified
Wed Nov 25 15:30:06 2009 ROUTE: default_gateway=UNDEF
Wed Nov 25 15:30:06 2009 There is a problem in your selection of --ifconfig endpoints [local=10.10.10.29, remote=10.10.10.1]. The local and remote VPN endpoints must exist within the same 255.255.255.252 subnet. This is a limitation of --dev tun when used with the TAP-WIN32 driver. Try 'openvpn --show-valid-subnets' option for more info.
Wed Nov 25 15:30:06 2009 Exiting
But then only one client works at one time. Is there any solution except using mode=ethernet ?