Hello.
I've been using hummingbird with just ovpn configuration files for some time and works great, but when I've tried to use commandline options I found some trouble.
I compared different configuration files and saw that they where really similar one to another:
# diff AirVPN_NL-Alblasserdam_Alcyone_UDP-443.ovpn AirVPN_ES-Barcelona_Eridanus_UDP-443.ovpn
4c4
< # AirVPN_NL-Alblasserdam_Alcyone_UDP-443
---
> # AirVPN_ES-Barcelona_Eridanus_UDP-443
9c9
< remote 213.152.161.116 443
---
> remote 185.183.106.2 443
This made me think that I could have a reduced amount of configuration files and call hummingbird with its --server option to pick the server.
# hummingbird -s 213.152.161.116 AirVPN_ES-Barcelona_Eridanus_UDP-443.ovpn
But It didn't work as It looks like network lock adds the IP in the configuration file instead of the one provided as an argument (logs at the end)
I tried to do it setting network lock off and worked fine.
Hummingbird - AirVPN OpenVPN 3 Client 1.0.2 - 4 February 2020
Sat May 16 12:09:37.245 2020 Starting thread
Sat May 16 12:09:37.245 2020 OpenVPN core 3.6.3 AirVPN linux x86_64 64-bit
Sat May 16 12:09:37.250 2020 Frame=512/2048/512 mssfix-ctrl=1250
Sat May 16 12:09:37.254 2020 UNUSED OPTIONS
3 [resolv-retry] [infinite]
4 [nobind]
5 [persist-key]
6 [persist-tun]
7 [auth-nocache]
8 [route-delay] [5]
9 [verb] [3]
10 [explicit-exit-notify] [5]
Sat May 16 12:09:37.254 2020 EVENT: RESOLVE
Sat May 16 12:09:37.254 2020 Network filter and lock is using iptables-legacy
Sat May 16 12:09:37.260 2020 Successfully loaded kernel module iptable_filter
Sat May 16 12:09:37.275 2020 Successfully loaded kernel module iptable_nat
Sat May 16 12:09:37.281 2020 Successfully loaded kernel module iptable_mangle
Sat May 16 12:09:37.286 2020 Successfully loaded kernel module iptable_security
Sat May 16 12:09:37.291 2020 Successfully loaded kernel module iptable_raw
Sat May 16 12:09:37.296 2020 Successfully loaded kernel module ip6table_filter
Sat May 16 12:09:37.312 2020 Successfully loaded kernel module ip6table_nat
Sat May 16 12:09:37.318 2020 Successfully loaded kernel module ip6table_mangle
Sat May 16 12:09:37.323 2020 Successfully loaded kernel module ip6table_security
Sat May 16 12:09:37.328 2020 Successfully loaded kernel module ip6table_raw
Sat May 16 12:09:37.331 2020 Network filter successfully initialized
Sat May 16 12:09:37.331 2020 Local IPv4 address 192.168.1.7
Sat May 16 12:09:37.331 2020 Local interface enp62s0u1u2
Sat May 16 12:09:37.331 2020 Local interface wlp2s0
Sat May 16 12:09:37.331 2020 Setting up network filter and lock
Sat May 16 12:09:37.331 2020 Allowing system DNS 127.0.0.1 to pass through the network filter
Sat May 16 12:09:37.331 2020 Adding IPv4 server 185.183.106.2 to network filter
Sat May 16 12:09:37.349 2020 Network filter and lock successfully activated
Sat May 16 12:09:37.349 2020 Contacting 213.152.161.116:443 via UDP
Sat May 16 12:09:37.349 2020 EVENT: WAIT
Sat May 16 12:09:37.349 2020 net_route_best_gw query IPv4: 213.152.161.116/32
Sat May 16 12:09:37.349 2020 sitnl_route_best_gw result: via 192.168.1.1 dev enp62s0u1u2
Sat May 16 12:09:37.349 2020 net_route_add: 213.152.161.116/32 via 192.168.1.1 dev enp62s0u1u2 table 0 metric 0
Sat May 16 12:09:37.350 2020 Sat May 16 12:09:37.350 2020 Connecting to [213.152.161.116]:443 (213.152.161.116) via UDPv4
Sat May 16 12:09:37.350 2020 UDP send exception: send: Operation not permitted
Sat May 16 12:09:37.350 2020 ERROR: NETWORK_SEND_ERROR
Sat May 16 12:09:38.254 2020 UDP send exception: send: Operation not permitted
Sat May 16 12:09:38.254 2020 ERROR: NETWORK_SEND_ERROR
Sat May 16 12:09:39.255 2020 UDP send exception: send: Operation not permitted
Sat May 16 12:09:39.255 2020 ERROR: NETWORK_SEND_ERROR
Sat May 16 12:09:40.255 2020 UDP send exception: send: Operation not permitted
Sat May 16 12:09:40.255 2020 ERROR: NETWORK_SEND_ERROR
Sat May 16 12:09:41.255 2020 UDP send exception: send: Operation not permitted
Sat May 16 12:09:41.255 2020 ERROR: NETWORK_SEND_ERROR
Sat May 16 12:09:42.256 2020 UDP send exception: send: Operation not permitted
Sat May 16 12:09:42.256 2020 ERROR: NETWORK_SEND_ERROR