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 $*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/280160

Title:
  n-m-openvpn shuts down VPN when openvpn soft-restarts

To manage notifications about this bug go to:
https://bugs.launchpad.net/network-manager/+bug/280160/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to