To achieve this I'm using topology subnet and ccd files. It works fine for all clients except for the iOS using the OpenVPN Connection application version 303(2104) where I get the following error:
Code: Select all
Client exception in transport_recv: addr_pair_mask_parse_error: AddrMaskPair parse error 'ifconfig': 10.50.0.12/10.50.0.1 : ipv4_exception: malformed netmask
Code: Select all
ifconfig-push 10.50.0.8 10.50.0.1
Code: Select all
ifconfig-push 10.50.0.8 10.50.0.1
push "topology subnet"
Code: Select all
ifconfig-push 10.50.0.8 255.255.0.0
If not, which other solution could I use to assign fixed IPs to all clients (including iOS)?
Server Configuration:
Code: Select all
port PORT
proto udp
dev tun
ca ca.crt
cert server.crt
dh dh.pem
topology subnet
server 10.50.0.0 255.255.0.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
client-config-dir ccd
push "redirect-gateway def1"
push "dhcp-option DNS 10.50.0.1"
#client-to-client
keepalive 10 120
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
mute 20