Fixed IPs using "topology subnet" and ccd files failing with iOS
Posted: Fri Oct 04, 2019 3:03 pm
I need to assign fixed IPs to all users.
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:
the ccd files looks like as follows:
and I have the same error if I push the "topology subnet" using the ccd file:
the only way to solve the problem is to use the net30 format sending the netmask instead of the gateway IP in the ccd file:
Is this the right workarround? Or I'm mixing network topologies with unexpected results?
If not, which other solution could I use to assign fixed IPs to all clients (including iOS)?
Server Configuration:
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