On 02/03/16 12:03, Yevgeny Kosarzhevsky wrote:
Hello,

I have the following up script:
#!/bin/sh

echo local=$local,port=$local_port,dev=$dev,proto=$proto

Now I run openvpn and don't get variables exported:

~# openvpn --dev tun --local 127.0.0.1 --lport 1234 --script-security 2 --up up

[..skipped..]

Wed Mar  2 17:56:09 2016 TUN/TAP device tun1 opened
Wed Mar  2 17:56:09 2016 up tun1 1500 1500   init
local=,port=,dev=tun1,proto=
Wed Mar 2 17:56:09 2016 UDPv4 link local (bound): [AF_INET]127.0.0.1:1234 <http://127.0.0.1:1234>
Wed Mar  2 17:56:09 2016 UDPv4 link remote: [undef]

Is there anything I can do about it?

what about
  $local_1
  $local_port_1
  $proto_1

? are those available? this is caused by connection entries - you can (unknowingly) specify multiple connection entries which causes the _1, _2 to be added.

HTH,

JJK
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to