Comment 20 for bug 280160

Revision history for this message
Aleksey Sukhonosov (aleyer) wrote :

I modified the latter script to suit my needs. I have 2 problematic network which I can't connect to because of wrong ifconfig_local and ifconfig_remote variables. They have different network prefixes (192.168.5.0 and 192.168.1.0) and because $4 and $5 variables are empty, I have to choose them manually. Here is the script for this task. The local address is set in the script, x.x.x.201 in my case.

#!/bin/bash
if [ -z "$ifconfig_local" ]
then
a=$(su $USER -c 'export DISPLAY=:0.0; zenity --list --title="Network addresses" --column="Remote" --column="Local" "192.168.5.1" "192.168.5.201" "192.168.1.1" "192.168.1.201" ')
export ifconfig_remote=$a
export ifconfig_local=${ifconfig_remote/%.1/.201}
fi
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper.dist $*