I setup a simple bridged vpn, works normal. Checking the logs, I noticed that OpenVPN tears down the interface before calling the script assigned to "down" assigned in config.
Log with the down.sh enabled
Mon Jan 25 14:01:07 2016 us=961533 event_wait : Interrupted system call (code=4)
Mon Jan 25 14:01:07 2016 us=961778 TCP/UDP: Closing socket
Mon Jan 25 14:01:07 2016 us=961824 Closing TUN/TAP interface
Mon Jan 25 14:01:07 2016 us=966668 /etc/openvpn/down.sh br0 tap0 1500 1574 init
interface tap0 does not exist!
Cannot find device "tap0"
Mon Jan 25 14:01:07 2016 us=991380 WARNING: Failed running command (--up/--down): external program exited with error status: 1
Mon Jan 25 14:01:07 2016 us=991916 Exiting due to fatal error
without down.sh
Mon Jan 25 14:06:37 2016 us=35183 event_wait : Interrupted system call (code=4)
Mon Jan 25 14:06:37 2016 us=35510 TCP/UDP: Closing socket
Mon Jan 25 14:06:37 2016 us=35564 Closing TUN/TAP interface
Mon Jan 25 14:06:37 2016 us=47495 SIGTERM[hard,] received, process exiting
root@virtualmin:/etc/openvpn# /sbin/brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000c2991b755 no eth0
Not a problem, more an FYI. I just commented out the down script.
Seems like it should be the other way around.
interface removed before "down" script is called
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Feb 24, 2016 4:14 pm