Hello,
i’d like to configure ovpn server in ethernet mode so i can push dhcp static route to client.
I configured ovpn server as mode ethernet and a i have linked a bridge linked to the profile.
On this bridge i configured a dhcp server with a pool.
In this situation no ip is assigned to clients and returns this error
2023-10-15 22:39:06 ERROR: There is a clash between the --ifconfig local address and the internal DHCP server address -- both are set to 0.0.0.0 -- please use the --ip-win32 dynamic option to choose a different free address from the --ifconfig subnet for the internal DHCP server
If i try to put the remote address on the secret or on the profile, the client get the ip but no dhcp option is pushed to the client.
Here the configuration:
/interface ovpn-server server
set certificate=server cipher=blowfish128,aes128-cbc,aes256-gcm \
default-profile=profilovpn enabled=yes mode=ethernet port=51194 protocol=\
udp
/ppp profile
add bridge=bridgetest name=profilovpn remote-address=pool2
/ppp secret
add name=xxxx profile=profilovpn service=ovpn
/ip dhcp-server
add address-pool=pool2 interface=bridgetest name=server1
/ip dhcp-server option
add code=121 name=1.1.1.1 value=0x20010101010A04000B
/ip dhcp-server option sets
add name=set1 options=1.1.1.1
/ip dhcp-server network
add address=10.4.0.0/24 dhcp-option-set=set1
The goal is: push some static routes to the clients. I checked that only way is use a dhcp-server and dhcp option on ovpn server but i have not found any examples
The client is windows with this conf
ping 15
ping-restart 45
ping-timer-rem
persist-tun
persist-key
mute-replay-warnings
verb 3
cipher AES-256-GCM
data-ciphers AES-256-GCM
auth SHA512
pull
auth-user-pass
connect-retry 1
reneg-sec 3600
remote-cert-tls server