Bitmaskctl fails to detect a running VPN:
bitmaskctl fails to detect a running VPN:
--- ~ » ps aux|grep bitmask
varac 12812 0.0 0.5 494588 61128 ? Sl 00:36 0:09 /usr/bin/python /usr/bin/bitmaskd
--- ~ » ps aux|grep open
nobody 30807 0.4 0.0 48444 6672 ? S 11:43 0:00 /usr/sbin/openvpn --setenv LEAPOPENVPN 1 --nobind --client --dev tun --tls-client --remote-cert-tls server --management-signal --script-security 1 --user nobody --persist-key --persist-local-ip --group nogroup --verb 1 --remote 5.79.86.180 443 tcp4 --remote 199.58.81.145 443 tcp4 --remote 198.252.153.28 443 tcp4 --tls-cipher DHE-RSA-AES128-SHA --cipher AES-128-CBC --auth SHA1 --keepalive 10 30 --management-client-user varac --management /tmp/leap-tmpC2jYJ4/openvpn.socket unix --ca /home/varac/.config/leap/providers/riseup.net/keys/ca/cacert.pem --cert /home/varac/.config/leap/providers/riseup.net/keys/client/openvpn.pem --key /home/varac/.config/leap/providers/riseup.net/keys/client/openvpn.pem
nobody 30813 0.2 0.0 48444 6640 ? S 11:43 0:00 /usr/sbin/openvpn --setenv LEAPOPENVPN 1 --nobind --client --dev tun --tls-client --remote-cert-tls server --management-signal --script-security 1 --user nobody --persist-key --persist-local-ip --group nogroup --verb 1 --remote 5.79.86.180 443 tcp4 --remote 199.58.81.145 443 tcp4 --remote 198.252.153.28 443 tcp4 --tls-cipher DHE-RSA-AES128-SHA --cipher AES-128-CBC --auth SHA1 --keepalive 10 30 --management-client-user varac --management /tmp/leap-tmpixeYab/openvpn.socket unix --ca /home/varac/.config/leap/providers/riseup.net/keys/ca/cacert.pem --cert /home/varac/.config/leap/providers/riseup.net/keys/client/openvpn.pem --key /home/varac/.config/leap/providers/riseup.net/keys/client/openvpn.pem
varac 32084 0.0 0.0 15924 1076 pts/2 S+ 11:44 0:00 grep --color=tty open
--- ~ » curl ipinfo.io
{
"ip": "5.79.86.129",
"city": "",
"region": "",
"country": "NL",
"loc": "52.3824,4.8995",
"org": "AS60781 LeaseWeb Netherlands B.V."
}%
--- ~ » bitmaskctl vpn status
status off
firewall off
vpn off
domain riseup.net
from bitmaskd.log:
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,N,event_wait : Interrupted system call (code=4)
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,N,event_wait : Interrupted system call (code=4)
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,ERROR: Linux route delete command failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,ERROR: Linux route delete command failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,ERROR: Linux route delete command failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,ERROR: Linux route delete command failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,I,delete_route_ipv6(2000::/3)
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,ERROR: Linux route delete command failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,ERROR: Linux route -6/-A inet6 del command failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,I,/sbin/ip addr del dev tun0 10.41.0.25/21
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,Linux ip addr del failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,I,/sbin/ip -6 addr del 2001:db8:123::1017/64 dev tun0
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,ERROR: Linux route delete command failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,I,/sbin/ip addr del dev tun1 10.41.0.21/21
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,Linux ip addr del failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,Linux ip -6 addr del failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,I,/sbin/ip -6 addr del 2001:db8:123::1013/64 dev tun1
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,W,Linux ip -6 addr del failed: external program exited with error status: 2
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,I,SIGTERM[hard,] received, process exiting
2018-02-09T11:43:54+0100 [twisted.internet.endpoints.OneShotFactory#info] Stopping factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f670eaa64d0>
2018-02-09T11:43:54+0100 [stdout#info] >LOG:1518173034,I,SIGTERM[hard,] received, process exiting
2018-02-09T11:43:54+0100 [twisted.internet.endpoints.OneShotFactory#info] Stopping factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f670eaa47e8>
2018-02-09T11:43:58+0100 [twisted.internet.endpoints.OneShotFactory#info] Starting factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f670eaa6c68>
2018-02-09T11:43:58+0100 [twisted.internet.endpoints.OneShotFactory#info] Starting factory <twisted.internet.endpoints.OneShotFactory instance at 0x7f670eaacdd0>
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,TCP connection established with [AF_INET]5.79.86.180:443
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,TCPv4_CLIENT link local: (not bound)
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,TCPv4_CLIENT link remote: [AF_INET]5.79.86.180:443
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,TCP connection established with [AF_INET]5.79.86.180:443
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,TCPv4_CLIENT link local: (not bound)
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,TCPv4_CLIENT link remote: [AF_INET]5.79.86.180:443
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
2018-02-09T11:43:59+0100 [stdout#info] >LOG:1518173039,I,[tenca.riseup.net] Peer Connection Initiated with [AF_INET]5.79.86.180:443
2018-02-09T11:44:00+0100 [stdout#info] >LOG:1518173040,I,[tenca.riseup.net] Peer Connection Initiated with [AF_INET]5.79.86.180:443
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,GDG6: NLSMG_ERROR: error -101
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,TUN/TAP device tun0 opened
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,D,do_ifconfig, tt->did_ifconfig_ipv6_setup=1
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,/sbin/ip link set dev tun0 up mtu 1500
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,/sbin/ip addr add dev tun0 10.41.0.21/21 broadcast 10.41.7.255
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,/sbin/ip -6 addr add 2001:db8:123::1013/64 dev tun0
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,ERROR: Linux route add command failed: external program exited with error status: 2
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,GID set to nogroup
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,UID set to nobody
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,Initialization Sequence Completed
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,GDG6: NLSMG_ERROR: error -101
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,TUN/TAP device tun1 opened
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,D,do_ifconfig, tt->did_ifconfig_ipv6_setup=1
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,/sbin/ip link set dev tun1 up mtu 1500
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,/sbin/ip addr add dev tun1 10.41.0.25/21 broadcast 10.41.7.255
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,/sbin/ip -6 addr add 2001:db8:123::1017/64 dev tun1
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,ERROR: Linux route add command failed: external program exited with error status: 2
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,ERROR: Linux route add command failed: external program exited with error status: 2
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,ERROR: Linux route add command failed: external program exited with error status: 2
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun1
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,ERROR: Linux route -6/-A inet6 add command failed: external program exited with error status: 2
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,GID set to nogroup
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,UID set to nobody
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,W,WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2018-02-09T11:44:01+0100 [stdout#info] >LOG:1518173041,I,Initialization Sequence Completed
2018-02-09T11:44:34+0100 [leap.bitmask.core.dispatcher#error] [DISPATCHER] Unexpected error!
2018-02-09T11:44:34+0100 [leap.bitmask.core.dispatcher#error] AssertionError('Tried to stop a LoopingCall that was not running.',)
2018-02-09T11:44:34+0100 [leap.bitmask.core.dispatcher#error] Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/leap/bitmask/core/dispatcher.py", line 585, in dispatch
return defer.maybeDeferred(_method, *msg)
File "/home/varac/.local/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/leap/bitmask/core/dispatcher.py", line 509, in do_VPN
d = dispatch(vpn, *parts)
File "/usr/lib/python2.7/dist-packages/leap/bitmask/core/dispatcher.py", line 59, in dispatch
return defer.maybeDeferred(_method, service, *parts, **kw)
--- <exception caught here> ---
File "/home/varac/.local/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/leap/bitmask/core/dispatcher.py", line 203, in do_STOP
d = vpn.stop_vpn()
File "/usr/lib/python2.7/dist-packages/leap/bitmask/vpn/service.py", line 182, in stop_vpn
self.watchdog.stop()
File "/home/varac/.local/lib/python2.7/site-packages/twisted/internet/task.py", line 202, in stop
assert self.running, ("Tried to stop a LoopingCall that was "
exceptions.AssertionError: Tried to stop a LoopingCall that was not running.