Giter VIP home page Giter VIP logo

qomui's People

Contributors

corrad1nho avatar precla avatar realorangeone avatar zx2c4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qomui's Issues

[Bug] Local network addresses hardcoded to 192.168.0.0/16

Private networks can have the following IP ranges:
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16

qomui is currently hardcoded to the last one. Fortunately, this is the most used. Unfortunately, someone with
one of the other IP ranges will have a hard time connecting.

There are two options now:

  1. Hardcode those two ranges too (easy)
  2. Check what IP range the client is in and according to the result, set only that range in the firewall

Source:
Wikipedia Private Network

(I'm not sure if this can count as a 'bug'...)

crash when downloading protonvpn config

After entering openvpn username and password from protonvpn, I click the download button and qomui-gui is crashing:

QLayout: Attempting to add QLayout "" to QWidget "providerTab", which already has a layout
QObject::startTimer: Timers cannot be started from another thread
QObject::startTimer: Timers cannot be started from another thread
QObject::startTimer: Timers cannot be started from another thread
QObject::startTimer: Timers cannot be started from another thread
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/qomui/update.py", line 603, in run
    ta_key = "<tls-auth>\n%s" %ovpn.split("<tls-auth>")[1]
IndexError: list index out of range
[1]    23737 abort      qomui-gui

Fatal Error with Multihop.

Trying to use Mullvad as first hop but I get this..
Using Antergos KDE

2018-12-13 16:13:07,526 - DEBUG - Failed to save current iptables rules
2018-12-13 16:13:07,577 - INFO - iptables: flushed existing rules
2018-12-13 16:13:07,601 - INFO - iptables: deactivated firewall
2018-12-13 16:13:07,604 - INFO - (Re-)enabled ipv6
2018-12-13 16:13:07,607 - INFO - Qomui version 0.7.4
2018-12-13 16:13:07,612 - WARNING - [Errno 2] No such file or directory: '/home/a/.qomui/bypass_apps.json': Could not open /home/a/.qomui/bypass_apps.json
2018-12-13 16:13:07,616 - INFO - Total number of server: 867
2018-12-13 16:13:08,771 - INFO - Detected new network connection
2018-12-13 16:13:08,832 - INFO - Deleted cgroup
2018-12-13 16:31:18,253 - INFO - Connecting to Edasich....
2018-12-13 16:31:18,274 - INFO - iptables: created rule for 2a00:1678:2470:51:3623:6c3b:102f:1bb0
2018-12-13 16:31:18,314 - INFO - Establishing new OpenVPN tunnel
2018-12-13 16:31:18,314 - INFO - Establishing connection to us-sjc-002.mullvad.net - first hop
2018-12-13 16:31:18,325 - INFO - OpenVPN: OpenVPN 2.4.6 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 24 2018
2018-12-13 16:31:18,325 - INFO - OpenVPN: library versions: OpenSSL 1.1.1a 20 Nov 2018, LZO 2.10
2018-12-13 16:31:18,326 - INFO - OpenVPN: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2018-12-13 16:31:18,326 - INFO - OpenVPN: TCP/UDP: Preserving recently used remote address: [AF_INET]216.162.42.83:1194
2018-12-13 16:31:18,326 - INFO - OpenVPN: Socket Buffers: R=[212992->425984] S=[212992->425984]
2018-12-13 16:31:18,326 - INFO - OpenVPN: UDP link local: (not bound)
2018-12-13 16:31:18,327 - INFO - OpenVPN: UDP link remote: [AF_INET]216.162.42.83:1194
2018-12-13 16:31:18,343 - INFO - OpenVPN: TLS: Initial packet from [AF_INET]216.162.42.83:1194, sid=fd8dc8bf 6ac74036
2018-12-13 16:31:18,343 - INFO - OpenVPN: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2018-12-13 16:31:18,432 - INFO - OpenVPN: VERIFY OK: depth=2, C=SE, ST=Gotaland, L=Gothenburg, O=Amagicom AB, OU=Mullvad, CN=Mullvad Root CA v2, emailAddress=[email protected]
2018-12-13 16:31:18,433 - INFO - OpenVPN: VERIFY OK: depth=1, C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=Mullvad Transition-Intermediate CA v1, emailAddress=[email protected]
2018-12-13 16:31:18,433 - INFO - OpenVPN: VERIFY KU OK
2018-12-13 16:31:18,434 - INFO - OpenVPN: Validating certificate extended key usage
2018-12-13 16:31:18,434 - INFO - OpenVPN: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
2018-12-13 16:31:18,434 - INFO - OpenVPN: VERIFY EKU OK
2018-12-13 16:31:18,434 - INFO - OpenVPN: VERIFY OK: depth=0, C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=us-sjc-002.mullvad.net, emailAddress=[email protected]
2018-12-13 16:31:18,564 - INFO - OpenVPN: Control Channel: TLSv1.2, cipher TLSv1.2 DHE-RSA-AES256-GCM-SHA384, 4096 bit RSA
2018-12-13 16:31:18,565 - INFO - OpenVPN: [us-sjc-002.mullvad.net] Peer Connection Initiated with [AF_INET]216.162.42.83:1194
2018-12-13 16:31:19,580 - INFO - OpenVPN: SENT CONTROL [us-sjc-002.mullvad.net]: 'PUSH_REQUEST' (status=1)
2018-12-13 16:31:24,613 - INFO - OpenVPN: SENT CONTROL [us-sjc-002.mullvad.net]: 'PUSH_REQUEST' (status=1)
2018-12-13 16:31:24,628 - INFO - OpenVPN: PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 10.8.0.1,redirect-gateway def1 bypass-dhcp,route-ipv6 0000::/2,route-ipv6 4000::/2,route-ipv6 8000::/2,route-ipv6 C000::/2,comp-lzo no,route-gateway 10.8.0.1,topology subnet,socket-flags TCP_NODELAY,ifconfig-ipv6 fdda:d0d0:cafe:1194::1004/64 fdda:d0d0:cafe:1194::,ifconfig 10.8.0.6 255.255.0.0,peer-id 6,cipher AES-256-GCM'
2018-12-13 16:31:24,630 - INFO - DNS: Overwriting /etc/resolv.conf with 10.8.0.1 and None
2018-12-13 16:31:24,633 - INFO - OpenVPN: Options error: option 'dhcp-option' cannot be used in this context ([PUSH-OPTIONS])
2018-12-13 16:31:24,634 - INFO - OpenVPN: Options error: option 'redirect-gateway' cannot be used in this context ([PUSH-OPTIONS])
2018-12-13 16:31:24,635 - INFO - OpenVPN: Options error: option 'route-ipv6' cannot be used in this context ([PUSH-OPTIONS])
2018-12-13 16:31:24,636 - INFO - OpenVPN: Options error: option 'route-ipv6' cannot be used in this context ([PUSH-OPTIONS])
2018-12-13 16:31:24,636 - INFO - OpenVPN: Options error: option 'route-ipv6' cannot be used in this context ([PUSH-OPTIONS])
2018-12-13 16:31:24,637 - INFO - OpenVPN: Options error: option 'route-ipv6' cannot be used in this context ([PUSH-OPTIONS])
2018-12-13 16:31:24,638 - INFO - OpenVPN: OPTIONS IMPORT: compression parms modified
2018-12-13 16:31:24,639 - INFO - OpenVPN: OPTIONS IMPORT: --socket-flags option modified
2018-12-13 16:31:24,639 - INFO - OpenVPN: NOTE: setsockopt TCP_NODELAY=1 failed
2018-12-13 16:31:24,640 - INFO - OpenVPN: OPTIONS IMPORT: --ifconfig/up options modified
2018-12-13 16:31:24,640 - INFO - OpenVPN: OPTIONS IMPORT: route-related options modified
2018-12-13 16:31:24,641 - INFO - OpenVPN: OPTIONS IMPORT: peer-id set
2018-12-13 16:31:24,641 - INFO - OpenVPN: OPTIONS IMPORT: adjusting link_mtu to 1625
2018-12-13 16:31:24,642 - INFO - OpenVPN: OPTIONS IMPORT: data channel crypto options modified
2018-12-13 16:31:24,642 - INFO - OpenVPN: Data Channel: using negotiated cipher 'AES-256-GCM'
2018-12-13 16:31:24,643 - INFO - OpenVPN: Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2018-12-13 16:31:24,645 - INFO - OpenVPN: Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2018-12-13 16:31:24,646 - INFO - OpenVPN: TUN/TAP device tun0 opened
2018-12-13 16:31:24,647 - INFO - OpenVPN: TUN/TAP TX queue length set to 100
2018-12-13 16:31:24,647 - INFO - OpenVPN: do_ifconfig, tt->did_ifconfig_ipv6_setup=1
2018-12-13 16:31:24,648 - INFO - OpenVPN: /usr/bin/ip link set dev tun0 up mtu 1500
2018-12-13 16:31:24,648 - INFO - OpenVPN: /usr/bin/ip addr add dev tun0 10.8.0.6/16 broadcast 10.8.255.255
2018-12-13 16:31:24,649 - INFO - OpenVPN: /usr/bin/ip -6 addr add fdda:d0d0:cafe:1194::1004/64 dev tun0
2018-12-13 16:31:24,649 - INFO - OpenVPN: /usr/share/qomui/hop.sh -f 216.162.42.83 2a00:1678:2470:51:3623:6c3b:102f:1bb0 tun0 1500 1553 10.8.0.6 255.255.0.0 init
2018-12-13 16:31:24,699 - INFO - OpenVPN:2a00:1678:2470:51:3623:6c3b:102f:1bb0: Unknown host
2018-12-13 16:31:24,704 - INFO - OpenVPN: WARNING: Failed running command (--up/--down): external program exited with error status: 6
2018-12-13 16:31:24,704 - INFO - OpenVPN: Exiting due to fatal error
2018-12-13 16:31:24,705 - INFO - Connection attempt failed due to fatal error
2018-12-13 16:31:24,740 - INFO - OpenVPN:
2018-12-13 16:31:24,742 - INFO - OpenVPN:
2018-12-13 16:31:24,743 - INFO - OpenVPN - process killed
2018-12-13 16:31:24,763 - INFO - Openvpn connection closed

Not connecting on new install

So qomui was working before but then I had to re-install my OS (Solus) because I messed up some files. Only bypass made the app crash.
Now I installed qomui again and it suddenly doesn't connect. I have no idea what's different this time.

Here is my log:
2018-11-15 09:52:45,650 - INFO - Qomui version 0.7.4
2018-11-15 09:52:45,652 - WARNING - [Errno 2] Bestand of map bestaat niet: '/home/timvh/.qomui/bypass_apps.json': Could not open /home/timvh/.qomui/bypass_apps.json
2018-11-15 09:52:45,653 - INFO - Total number of server: 264
2018-11-15 09:52:45,963 - INFO - Detected new network connection
2018-11-15 09:52:45,976 - INFO - Could not identify default gateway for ipv6 - no network connectivity
2018-11-15 09:52:46,010 - INFO - Deleted cgroup
2018-11-15 09:53:27,230 - INFO - iptables: adding exception for DNS requests
2018-11-15 09:53:27,477 - INFO - iptables: Allowing access to www.mullvad.net
2018-11-15 09:53:27,539 - INFO - iptables: Allowing access to api.mullvad.net
2018-11-15 09:53:27,544 - INFO - Downloading certificates for Mullvad
2018-11-15 09:53:28,318 - INFO - Fetching server list for Mullvad
2018-11-15 09:53:28,407 - INFO - Creating WireGuard config files for Mullvad
2018-11-15 09:53:28,864 - INFO - WireGuard is not installed/not found - skipping
2018-11-15 09:53:28,868 - ERROR - Copying ('mullvad_wg.conf', 'mullvad_wg.conf') to /usr/share/qomui/certs failed: No such file
2018-11-15 09:53:28,913 - INFO - iptables: removing exception for DNS requests
2018-11-15 09:53:29,034 - INFO - Total number of server: 265
2018-11-15 09:53:40,272 - INFO - Connecting to nl-ams-003.mullvad.net....
2018-11-15 09:53:40,294 - INFO - iptables: created rule for 185.65.134.133
2018-11-15 09:53:40,296 - INFO - Establishing new OpenVPN tunnel
2018-11-15 09:53:40,297 - INFO - Establishing connection to nl-ams-003.mullvad.net
2018-11-15 09:53:40,317 - INFO - OpenVPN: OpenVPN 2.4.6 x86_64-solus-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on May 11 2018
2018-11-15 09:53:40,317 - INFO - OpenVPN: library versions: OpenSSL 1.0.2p 14 Aug 2018, LZO 2.09
2018-11-15 09:53:40,318 - INFO - OpenVPN: NOTE: --fast-io is disabled since we are not using UDP
2018-11-15 09:53:40,319 - INFO - OpenVPN: CRL: cannot read CRL from file /usr/share/qomui/certs/mullvad_crl.pem
2018-11-15 09:53:40,319 - INFO - OpenVPN: TCP/UDP: Preserving recently used remote address: [AF_INET]185.65.134.133:443
2018-11-15 09:53:40,319 - INFO - OpenVPN: Socket Buffers: R=[87380->425984] S=[16384->425984]
2018-11-15 09:53:40,320 - INFO - OpenVPN: Attempting to establish TCP connection with [AF_INET]185.65.134.133:443 [nonblock]
2018-11-15 09:53:41,318 - INFO - OpenVPN: TCP connection established with [AF_INET]185.65.134.133:443
2018-11-15 09:53:41,319 - INFO - OpenVPN: TCP_CLIENT link local: (not bound)
2018-11-15 09:53:41,319 - INFO - OpenVPN: TCP_CLIENT link remote: [AF_INET]185.65.134.133:443
2018-11-15 09:53:41,345 - INFO - OpenVPN: TLS: Initial packet from [AF_INET]185.65.134.133:443, sid=8cf95079 fdb65c8e
2018-11-15 09:53:41,345 - INFO - OpenVPN: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2018-11-15 09:53:41,488 - INFO - OpenVPN: VERIFY WARNING: depth=0, unable to get certificate CRL: C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=nl-ams-003.mullvad.net, emailAddress=[email protected]
2018-11-15 09:53:41,489 - INFO - OpenVPN: VERIFY WARNING: depth=1, unable to get certificate CRL: C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=Mullvad Transition-Intermediate CA v1, emailAddress=[email protected]
2018-11-15 09:53:41,490 - INFO - OpenVPN: VERIFY WARNING: depth=2, unable to get certificate CRL: C=SE, ST=Gotaland, L=Gothenburg, O=Amagicom AB, OU=Mullvad, CN=Mullvad Root CA v2, emailAddress=[email protected]
2018-11-15 09:53:41,490 - INFO - OpenVPN: VERIFY ERROR: CRL not loaded
2018-11-15 09:53:41,491 - INFO - OpenVPN: OpenSSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2018-11-15 09:53:41,491 - INFO - OpenVPN: TLS_ERROR: BIO read tls_read_plaintext error
2018-11-15 09:53:41,491 - INFO - OpenVPN: TLS Error: TLS object -> incoming plaintext read error
2018-11-15 09:53:41,491 - INFO - OpenVPN: TLS Error: TLS handshake failed
2018-11-15 09:53:41,492 - INFO - OpenVPN: Fatal TLS error (check_tls_errors_co), restarting
2018-11-15 09:53:41,492 - INFO - OpenVPN: SIGUSR1[soft,tls-error] received, process restarting
2018-11-15 09:53:41,492 - INFO - OpenVPN: Restart pause, 5 second(s)
2018-11-15 09:53:46,489 - INFO - OpenVPN: NOTE: --fast-io is disabled since we are not using UDP
2018-11-15 09:53:46,490 - INFO - OpenVPN: TCP/UDP: Preserving recently used remote address: [AF_INET]185.65.134.133:443
2018-11-15 09:53:46,490 - INFO - OpenVPN: Socket Buffers: R=[87380->425984] S=[16384->425984]
2018-11-15 09:53:46,491 - INFO - OpenVPN: Attempting to establish TCP connection with [AF_INET]185.65.134.133:443 [nonblock]
2018-11-15 09:53:47,490 - INFO - OpenVPN: TCP connection established with [AF_INET]185.65.134.133:443
2018-11-15 09:53:47,490 - INFO - OpenVPN: TCP_CLIENT link local: (not bound)
2018-11-15 09:53:47,491 - INFO - OpenVPN: TCP_CLIENT link remote: [AF_INET]185.65.134.133:443
2018-11-15 09:53:47,516 - INFO - OpenVPN: TLS: Initial packet from [AF_INET]185.65.134.133:443, sid=d92164d8 7cbe2bee
2018-11-15 09:53:47,658 - INFO - OpenVPN: VERIFY WARNING: depth=0, unable to get certificate CRL: C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=nl-ams-003.mullvad.net, emailAddress=[email protected]
2018-11-15 09:53:47,659 - INFO - OpenVPN: VERIFY WARNING: depth=1, unable to get certificate CRL: C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=Mullvad Transition-Intermediate CA v1, emailAddress=[email protected]
2018-11-15 09:53:47,659 - INFO - OpenVPN: VERIFY WARNING: depth=2, unable to get certificate CRL: C=SE, ST=Gotaland, L=Gothenburg, O=Amagicom AB, OU=Mullvad, CN=Mullvad Root CA v2, emailAddress=[email protected]
2018-11-15 09:53:47,659 - INFO - OpenVPN: VERIFY ERROR: CRL not loaded
2018-11-15 09:53:47,660 - INFO - OpenVPN: OpenSSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2018-11-15 09:53:47,660 - INFO - OpenVPN: TLS_ERROR: BIO read tls_read_plaintext error
2018-11-15 09:53:47,661 - INFO - OpenVPN: TLS Error: TLS object -> incoming plaintext read error
2018-11-15 09:53:47,662 - INFO - OpenVPN: TLS Error: TLS handshake failed
2018-11-15 09:53:47,662 - INFO - OpenVPN: Fatal TLS error (check_tls_errors_co), restarting
2018-11-15 09:53:47,662 - INFO - OpenVPN: SIGUSR1[soft,tls-error] received, process restarting
2018-11-15 09:53:47,662 - INFO - OpenVPN: Restart pause, 5 second(s)
2018-11-15 09:53:52,659 - INFO - OpenVPN: NOTE: --fast-io is disabled since we are not using UDP
2018-11-15 09:53:52,660 - INFO - OpenVPN: TCP/UDP: Preserving recently used remote address: [AF_INET]185.65.134.133:443
2018-11-15 09:53:52,660 - INFO - OpenVPN: Socket Buffers: R=[87380->425984] S=[16384->425984]
2018-11-15 09:53:52,661 - INFO - OpenVPN: Attempting to establish TCP connection with [AF_INET]185.65.134.133:443 [nonblock]
2018-11-15 09:53:53,659 - INFO - OpenVPN: TCP connection established with [AF_INET]185.65.134.133:443
2018-11-15 09:53:53,660 - INFO - OpenVPN: TCP_CLIENT link local: (not bound)
2018-11-15 09:53:53,660 - INFO - OpenVPN: TCP_CLIENT link remote: [AF_INET]185.65.134.133:443
2018-11-15 09:53:53,686 - INFO - OpenVPN: TLS: Initial packet from [AF_INET]185.65.134.133:443, sid=bc221b77 d30a8c13
2018-11-15 09:53:53,833 - INFO - OpenVPN: VERIFY WARNING: depth=0, unable to get certificate CRL: C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=nl-ams-003.mullvad.net, emailAddress=[email protected]
2018-11-15 09:53:53,834 - INFO - OpenVPN: VERIFY WARNING: depth=1, unable to get certificate CRL: C=SE, ST=Gotaland, O=Amagicom AB, OU=Mullvad, CN=Mullvad Transition-Intermediate CA v1, emailAddress=[email protected]
2018-11-15 09:53:53,834 - INFO - OpenVPN: VERIFY WARNING: depth=2, unable to get certificate CRL: C=SE, ST=Gotaland, L=Gothenburg, O=Amagicom AB, OU=Mullvad, CN=Mullvad Root CA v2, emailAddress=[email protected]
2018-11-15 09:53:53,835 - INFO - OpenVPN: VERIFY ERROR: CRL not loaded
2018-11-15 09:53:53,835 - INFO - OpenVPN: OpenSSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2018-11-15 09:53:53,835 - INFO - OpenVPN: TLS_ERROR: BIO read tls_read_plaintext error
2018-11-15 09:53:53,835 - INFO - OpenVPN: TLS Error: TLS object -> incoming plaintext read error
2018-11-15 09:53:53,836 - INFO - OpenVPN: TLS Error: TLS handshake failed
2018-11-15 09:53:53,836 - INFO - OpenVPN: Fatal TLS error (check_tls_errors_co), restarting
2018-11-15 09:53:53,836 - INFO - OpenVPN: SIGUSR1[soft,tls-error] received, process restarting
2018-11-15 09:53:53,836 - INFO - OpenVPN: Restart pause, 5 second(s)
2018-11-15 09:53:55,475 - INFO - nl-ams-003.mullvad.net: Connection attempt timed out
2018-11-15 09:53:55,522 - INFO - OpenVPN: SIGTERM[hard,init_instance] received, process exiting
2018-11-15 09:53:55,528 - INFO - OpenVPN:
2018-11-15 09:53:55,529 - INFO - OpenVPN:
2018-11-15 09:53:55,530 - INFO - OpenVPN - process killed
2018-11-15 09:53:55,543 - INFO - Openvpn connection closed

Problems with qomui service

Trying to install on latest version but the qomui service gives errors and wll not start.
Any help would be appreciated.

● qomui.service - qomui
Loaded: loaded (/lib/systemd/system/qomui.service; enabled; vendor preset: di
Active: failed (Result: exit-code) since Sun 2018-12-16 12:49:34 GMT; 8s ago
Process: 4245 ExecStart=/usr/bin/env qomui-service (code=exited, status=1/FAIL
Main PID: 4245 (code=exited, status=1/FAILURE)

Dec 16 12:49:33 sleeper env[4245]: File "/usr/lib/python3/dist-packages/pkg_re
Dec 16 12:49:33 sleeper env[4245]: ws.require(requires)
Dec 16 12:49:33 sleeper env[4245]: File "/usr/lib/python3/dist-packages/pkg_re
Dec 16 12:49:33 sleeper env[4245]: needed = self.resolve(parse_requirements(
Dec 16 12:49:33 sleeper env[4245]: File "/usr/lib/python3/dist-packages/pkg_re
Dec 16 12:49:33 sleeper env[4245]: raise DistributionNotFound(req, requirers
Dec 16 12:49:33 sleeper env[4245]: pkg_resources.DistributionNotFound: The 'qomu
Dec 16 12:49:34 sleeper systemd[1]: qomui.service: Main process exited, code=exi
Dec 16 12:49:34 sleeper systemd[1]: qomui.service: Failed with result 'exit-code
Dec 16 12:49:34 sleeper systemd[1]: Failed to start qomui.

[notice] dbus does not allow qomui.service by default on openSUSE Leap 15.0

Using the packaged Version of 0.8.0 the GUI failed to start the service.
Running sudo qomui-service manually, I got:

Traceback (most recent call last): File "/usr/bin/qomui-service", line 11, in <module> load_entry_point('qomui==0.8.0', 'console_scripts', 'qomui-service')() File "/usr/lib/python3.6/site-packages/qomui/qomui_service.py", line 645, in main service = QomuiDbus() File "/usr/lib/python3.6/site-packages/qomui/qomui_service.py", line 58, in __init__ self.bus_name = dbus.service.BusName(BUS_NAME, bus=self.sys_bus) File "/usr/lib/python3.6/site-packages/dbus/service.py", line 131, in __new__ retval = bus.request_name(name, name_flags) File "/usr/lib/python3.6/site-packages/dbus/bus.py", line 303, in request_name 'su', (name, flags)) File "/usr/lib/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.143" is not allowed to own the service "org.qomui.service" due to security policies in the configuration file

I don't know much about the system-dbus but the policy seems to block "unregistered" services by default.
My solution was to create a minimal policy for the service:
/etc/dbus-1/system.d/org.qomui.conf

<policy>
    <allow own="org.qomui.service"/>
</policy>

I'm not actually certain that it is the default setting but I did not change any settings in the dbus-service. Should this be a problem for other users, you may want to place a similar configuration and reload the dbus-service during installation. If this is actually just me, please feel free to close this.
After this change, everything started fine and is working as expected.

Setup used:
Opensuse Leap 15.0
qomui 0.8.0 from corrad1nho's Opensuse repository

How this work in Ubuntu

First thanks so much for creating this. For someone like yourself to come up with this puts to shame whomever is maintaining Network Manager given how long Ubuntu's DNS leak problem has been an ongoing pain. My solution to that problem (one I found on youtube) was once gnome openvpn networkmanager plugin was installed, I did an apt-get install openresolv nscd unbound. If I tried Qomui on top of this, no go, the system slows to a crawl, goes dark and freezes.

I've tried NordVPN's config file, filtering out the TCP files, on Qomui for:

  1. Ubuntu 16.04LTS. On a fresh install, a longer running install with every offering you've packaged and in now way can I get this thing to work.
  2. Ubuntu 18.04LTS. On this distro, it works. Sometimes it takes a couple cracks to get the folder to be recognized, but once it has, it's good to go.
  3. PopOS! Absolutely no go on this one. I don't know why.
  4. OpenSUSE Leap15. It works here, but no themepack would change the appearance of the gui. No icons in the taskbar.

If I'd know I could actually report these things to you, I'd have copied logs and reported them to you. Right now, I'm back to my original 16.04 distro, with the Youtube solution to dnsleaks.

Thanks and best of luck. A reliable OpenVPN gui has long been needed.

Firewall still activated after exiting the app.

I have it set to have firewall running only when the gui is running but often after I close it.. It's still running so sometimes I have to uncheck the activate firewall setting in order for it to deactivate.

Doesn't work.

So, I tried qomui almost 1 year ago and I had exactly the same problems I am having now. Back then I was using ubuntu and I am now using arch. Atleast the problems are consistent, I guess.

So, opening qomui doesn't work. A pop-up window appears asking to enable qomui-service. Both the "enable" and "start" buttons do not work since sudo is required for qomui-service. So:

1 - In order to use qomui, I need to start "sudo qomui-service" in a terminal and leave it opened. Annoying;

Once I finally managed to have qomui working, I add the config files of azireVPN (the ES server) but it never connects. Errors, etc:

2 - Doesn't connect to azireES. I gave up and haven't tested any more servers. Doubt it works.

Am I the only one to whom this happens?

Ubuntu 16.04 Error

Hey there,

I am trying to test your vpn-client but I'm getting the following error:

 ~/qomui   master  sudo qomui-gui      
QLayout: Attempting to add QLayout "" to QomuiGui "Form", which already has a layout
DBus Error: Qomui-Service is currently not available
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 607, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 410, in _introspect_error_handler
    error)
  File "/usr/lib/python3.5/logging/__init__.py", line 1308, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/lib/python3.5/logging/__init__.py", line 1415, in _log
    self.handle(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 1425, in handle
    self.callHandlers(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 1487, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 855, in handle
    self.emit(record)
  File "/usr/local/lib/python3.5/dist-packages/qomui/qomui_gui.py", line 48, in emit
    msg = json.dumps(dict(record.__dict__))
  File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.5/json/encoder.py", line 179, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: DBusException(dbus.String('Message recipient disconnected from message bus without replying'),) is not JSON serializable
Traceback (most recent call last):
  File "/usr/local/bin/qomui-gui", line 9, in <module>
    load_entry_point('qomui==0.4.1', 'gui_scripts', 'qomui-gui')()
  File "/usr/local/lib/python3.5/dist-packages/qomui/qomui_gui.py", line 2343, in main
    ex = QomuiGui()
  File "/usr/local/lib/python3.5/dist-packages/qomui/qomui_gui.py", line 161, in __init__
    self.qomui_service.disconnect()
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.115 was not provided by any .service files

ufw firewall incompatiblity

Recently installed linux lite 4 and installed qomui. networklock(firewall feature) does not working after disconnecting.

2018-06-21 00:44:05,431 - INFO - iptables: activated firewall
2018-06-21 00:44:05,432 - INFO - (Re-)enabled ipv6
2018-06-21 00:44:05,443 - WARNING - iptables: failed to apply ['-t', 'mangle', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'MARK', '--set-mark', '11']
2018-06-21 00:44:05,445 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'POSTROUTING', '-m', 'cgroup', '--cgroup', '0x00110011', '-o', 'eth0', '-j', 'MASQUERADE']
2018-06-21 00:44:05,447 - DEBUG - iptables: ['-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT'] already exists
2018-06-21 00:44:05,448 - DEBUG - iptables: ['-D', 'INPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT'] already exists
2018-06-21 00:44:05,451 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'tcp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']
2018-06-21 00:44:05,454 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'udp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']
2018-06-21 00:44:05,454 - DEBUG - Could not delete /sys/fs/cgroup/net_cls/bypass_qomui - resource does not exist or is busy
2018-06-21 00:44:05,454 - INFO - Deleted cgroup
2018-06-21 00:44:05,455 - DEBUG - No routing table added - table bypass_qomui already exists
2018-06-21 00:44:05,458 - DEBUG - iptables: applied ['-t', 'mangle', '-A', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'MARK', '--set-mark', '11']
2018-06-21 00:44:05,461 - DEBUG - iptables: applied ['-t', 'nat', '-A', 'POSTROUTING', '-m', 'cgroup', '--cgroup', '0x00110011', '-o', 'eth0', '-j', 'MASQUERADE']
2018-06-21 00:44:05,463 - DEBUG - iptables: applied ['-I', 'OUTPUT', '1', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']
2018-06-21 00:44:05,466 - DEBUG - iptables: applied ['-I', 'INPUT', '1', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']
2018-06-21 00:44:05,468 - DEBUG - iptables: applied ['-t', 'nat', '-A', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'tcp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']
2018-06-21 00:44:05,471 - DEBUG - iptables: applied ['-t', 'nat', '-A', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'udp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']
2018-06-21 00:44:05,476 - INFO - Succesfully create cgroup to bypass OpenVPN tunnel

bypass works fine. i've tried toggling the OS firewall (Gufw) on and off and did not help.

Mullvad doesn't connect

2018-09-29 13:14:47,601 - INFO - Qomui version 0.7.4
2018-09-29 13:14:47,603 - WARNING - [Errno 2] No such file or directory: '/home/baimafeima/.qomui/bypass_apps.json': Could not open /home/baimafeima/.qomui/bypass_apps.json
2018-09-29 13:14:47,605 - INFO - Total number of server: 250
2018-09-29 13:14:48,174 - INFO - Detected new network connection
2018-09-29 13:14:48,198 - INFO - Could not identify default gateway for ipv6 - no network connectivity
2018-09-29 13:14:48,267 - INFO - Deleted cgroup
2018-09-29 13:15:08,197 - INFO - iptables: adding exception for DNS requests
2018-09-29 13:15:10,323 - ERROR - Command '['dig', '+time=2', '+tries=1', 'www.mullvad.net', '+short']' returned non-zero exit status 9.: Could not resolve www.mullvad.net
2018-09-29 13:15:12,344 - ERROR - Command '['dig', '+time=2', '+tries=1', 'api.mullvad.net', '+short']' returned non-zero exit status 9.: Could not resolve api.mullvad.net
2018-09-29 13:15:12,352 - INFO - Downloading certificates for Mullvad
2018-09-29 13:15:32,372 - ERROR - Network error: Unable to retrieve data from mullvad.net
2018-09-29 13:15:41,840 - INFO - iptables: adding exception for DNS requests
2018-09-29 13:15:43,904 - ERROR - Command '['dig', '+time=2', '+tries=1', 'www.mullvad.net', '+short']' returned non-zero exit status 9.: Could not resolve www.mullvad.net
2018-09-29 13:15:45,921 - ERROR - Command '['dig', '+time=2', '+tries=1', 'api.mullvad.net', '+short']' returned non-zero exit status 9.: Could not resolve api.mullvad.net
2018-09-29 13:15:45,927 - INFO - Downloading certificates for Mullvad
2018-09-29 13:16:05,947 - ERROR - Network error: Unable to retrieve data from mullvad.net

I've tried with two different Mullvad account numbers. It is also unclear how to save these account numbers as there is no Save button or whether to click Update. Is it possible to save account numbers and store them in the application or maybe I have overlooked something?

Windscribe Errors (0.8.2)

OS: Kubuntu 18.10
Qomui-GUI: 0.8.1
Provider: Windscribe

Hello, it seems that the option for bypass fails, because I am unable to use anything outside of the current connection (Switzerland when I want to use USA or just my actual connection) for a few applications while keeping the rest protected.

Installing on openSUSE Leap 15.0

I've kinda installed it, but not able to add new provider manually

Sometimes it just crashes on pressing + Add Folder
When it allows me to choose wireguard config file it says:

Qomui: Importing Foobar successful
List of available servers updated

but server config isn't actually being created

I'm not 100% I've installed all required dependencies. I had some difficulties with that e.g. wasn't able to find python-dbus.mainloop.pyqt5

[Feature] Secondary VPN connection to dedicated to a specific application

Adding a way in the GUI to connect a secondary VPN connection to dedicated to a torrent client. Freeing up bandwidth in the other connection/s. This is something that can be hacked with iptables but is very useful and is absent in network managers ive seen. This helps if one wants to streaming media and actively downloading and seeding ubuntu iso's at full speeds.

error building manually

Im getting this error when building manually
void linux

/bin/ ./qomui-gui
Traceback (most recent call last):
File "./qomui-gui", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3105, in
@_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3089, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3118, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 578, in _build_master
ws.require(requires)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 895, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 781, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'lxml' distribution was not found and is required by qomui

VPN doesn't start when using systemd / gui without sudo (Arch Linux / AirVPN)

Perhaps I'm just misunderstanding how the service is supposed to work, but enabling the systemd unit and rebooting does not result in a VPN connection. I've had no problems with the GUI and I expected the service would just load the config and run at boot.

Log

2019-01-24 13:34:45,881 - INFO - Dbus-service successfully initialized
2019-01-24 13:34:45,893 - DEBUG - Failed to save current iptables rules
2019-01-24 13:34:45,944 - INFO - iptables: flushed existing rules
2019-01-24 13:34:45,966 - INFO - iptables: deactivated firewall
2019-01-24 13:34:45,970 - INFO - Disabled ipv6

Service status

mz@mzxps:~/ > sudo systemctl status qomui  
● qomui.service - qomui
   Loaded: loaded (/usr/lib/systemd/system/qomui.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-01-24 13:34:45 CST; 6min ago
 Main PID: 4192 (qomui-service)
    Tasks: 3 (limit: 4915)
   Memory: 40.8M
   CGroup: /system.slice/qomui.service
           └─4192 /usr/bin/python /usr/bin/qomui-service

Jan 24 13:34:45 mzxps systemd[1]: Starting qomui...
Jan 24 13:34:45 mzxps systemd[1]: Started qomui.
Jan 24 13:34:45 mzxps env[4192]: openvpn: no process found
Jan 24 13:34:45 mzxps env[4192]: net.ipv6.conf.all.disable_ipv6 = 1

-- After starting the gui manually
Jan 24 13:42:18 mzxps env[4192]: Error: argument "bypass_qomui" is wrong: invalid table ID

When I launch the GUI, the log contains no mention of connecting to Dbus service (I've changed the log level to DEBUG and am getting other debug messages)

mz@mzxps:~/ > cat /usr/share/qomui/qomui.log | grep Dbus
2019-01-24 13:59:37,580 - INFO - Dbus-service successfully initialized
2019-01-24 13:59:44,354 - INFO - Dbus-service successfully initialized

Multihopping not always working. Mullvad

So first thing's first; I love the project and am very thankful for its development! Keep up the great work so far.

I seem to be having issues with multihopping. It seems to only work with certain servers and it's impossible to tell which servers those are. So I have my protocol set to UDP 1194.

Sometimes when I set a hop server and than connect to the secondary server it works flawlessly. I'll see the Hop server has something like TCP 80 and the other server has 1194 like I have it set to. This works no problem. But other times I'll do the same thing and my non-hop server will be at UDP 1194 like it should but the hop server is also set to UDP 1194, when this happens the hop is not done correctly and my internet will just work as if I had only connected to the server I dedicated as the hop server.

So if I go Sweden (Hop) US (Non-Hop) traffic will think i'm going through Sweden.
Is this cause I auto downloaded the mullvad configs? Should I download the configs manually and select TCP:80 for the servers I want to use as hops and UDP:1194 for the ones I want to connect to?

Thanks in advanced!

Freeze on ubuntu

Hi,

Thank you for the program, it works great (in arch) and was much needed!

I have the AUR version installed in KDE Manjaro, and it works perfectly.

The .deb version in KDE Neon freezes after I connect to a server.
A window opens and the program stops responding. The connection to the server works.
This is what I see.

I use ProntonVPN.

edit: do NOT freeze using Windscribe

so AUR + ProtonVPN: ok
deb + ProtonVPN: freeze
deb + Windscribe: ok

edit2: after adding windscribe everything works for some reason.

Hide My Ass VPN support

please add compability for hide my ass config ovpn support, after select folder config all hma , it's app force close..

Qomui crashes after applying the bypass [Fedora]

Qomui crashes and will not start after applying the bypass feature. Heres what the terminal outputs.

$ qomui-gui
QLayout: Attempting to add QLayout "" to QWidget "providerTab", which already has a layout
QObject::startTimer: Timers cannot be started from another thread
QObject::startTimer: Timers cannot be started from another thread
QObject::startTimer: Timers cannot be started from another thread
QObject::startTimer: Timers cannot be started from another thread
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/qomui/qomui_gui.py", line 1095, in applyoptions
    self.qomui_service.bypass(self.get_user_group())
  File "/usr/lib64/python3.6/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.FileNotFoundError: Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/local/lib/python3.6/site-packages/qomui/qomui_service.py", line 307, in bypass
    self.default_interface, default_gateway
  File "/usr/local/lib/python3.6/site-packages/qomui/bypass.py", line 52, in create_cgroup
    check_call(["cgcreate", "-t", "%s:%s" %(user, group), "-a" "%s:%s" %(user, group), "-g", "net_cls:bypass_qomui"])
  File "/usr/lib64/python3.6/subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib64/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cgcreate': 'cgcreate'
Aborted (core dumped)

Heres the output after attempting to start Qomui when bypass (1) is applyed in config file.

$ qomui-gui
QLayout: Attempting to add QLayout "" to QWidget "providerTab", which already has a layout
Traceback (most recent call last):
  File "/usr/local/bin/qomui-gui", line 11, in <module>
    load_entry_point('qomui==0.5.1', 'gui_scripts', 'qomui-gui')()
  File "/usr/local/lib/python3.6/site-packages/qomui/qomui_gui.py", line 2750, in main
    ex = QomuiGui()
  File "/usr/local/lib/python3.6/site-packages/qomui/qomui_gui.py", line 191, in __init__
    self.load_saved_files()
  File "/usr/local/lib/python3.6/site-packages/qomui/qomui_gui.py", line 1038, in load_saved_files
    self.qomui_service.bypass(self.get_user_group())
  File "/usr/lib64/python3.6/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.FileNotFoundError: Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/local/lib/python3.6/site-packages/qomui/qomui_service.py", line 307, in bypass
    self.default_interface, default_gateway
  File "/usr/local/lib/python3.6/site-packages/qomui/bypass.py", line 52, in create_cgroup
    check_call(["cgcreate", "-t", "%s:%s" %(user, group), "-a" "%s:%s" %(user, group), "-g", "net_cls:bypass_qomui"])
  File "/usr/lib64/python3.6/subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib64/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cgcreate': 'cgcreate'

ipv6 not connect

i'm using AirVPN i've tried multiple servers and does not want to connect.

I went ahead and installed eddie the AirVPN client and connects to ipv6 just fine with all the servers i was trying with Qomui.

from what i remember it used to work maybe months ago. maybe im wrong. i've set up a openwrt router recently but it shouldn't mater since eddie works fine right?

How should i trouble shoot this?

Allow secondary connection to go through VPN tunnel

Thanks for your great client!
As far as I understand the secondary connection feature, the secondary connection bypasses the VPN.
Would it also be possible to enable the other way around: Make the secondary connection go through the VPN?
I would like to achieve the following:

  • Start a secondary connection (through the tunnel) to be used by a specific application.
  • Let all other traffic bypass the VPN.

bypass tab - applications missing

Trying to add a new application in the Bypass tab only shows a few applications. For example, Browsers, Skype or vlc are missing.
(Linux Mint 19.1)

Installing on Fedora

Here are my some outputs im getting when trying to install

sudo pip install ./
Processing /home/gputest/qomui
Requirement already satisfied: beautifulsoup4 in /usr/lib/python2.7/site-packages (from qomui==0.5.1) (4.6.0)
Requirement already satisfied: pexpect in /usr/lib/python2.7/site-packages (from qomui==0.5.1) (4.6.0)
Collecting psutil (from qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/51/9e/0f8f5423ce28c9109807024f7bdde776ed0b1161de20b408875de7e030c3/psutil-5.4.6.tar.gz
Collecting pycountry (from qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/18/99/a81f1da10070c563450a4ef334622e72fb0b7b74c929fdbed711154d8416/pycountry-18.5.26-py2-none-any.whl
Collecting requests (from qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting lxml (from qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/af/09/cdb478d8b0392edd4047c5d1f7e6a1fb5e0e7a2f8f14fcf05c6e9ae9edff/lxml-4.2.3-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: ptyprocess>=0.5 in /usr/lib/python2.7/site-packages (from pexpect->qomui==0.5.1) (0.6.0)
Collecting idna<2.8,>=2.5 (from requests->qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.24,>=1.21.1 (from requests->qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->qomui==0.5.1)
  Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Installing collected packages: psutil, pycountry, idna, chardet, urllib3, certifi, requests, lxml, qomui
  Running setup.py install for psutil ... error
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1bUZzK/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-LZXC3u/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/psutil
    copying psutil/_pswindows.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/__init__.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_pssunos.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_psaix.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil
    copying psutil/_exceptions.py -> build/lib.linux-x86_64-2.7/psutil
    creating build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_process.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/__init__.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_system.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-2.7/psutil/tests
    copying psutil/tests/__main__.py -> build/lib.linux-x86_64-2.7/psutil/tests
    running build_ext
    building 'psutil._psutil_linux' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/psutil
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=546 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_common.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_common.o
    gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-1bUZzK/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-LZXC3u/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-1bUZzK/psutil/
sudo python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/qomui
copying qomui/qomui_gui.py -> build/lib/qomui
copying qomui/firewall.py -> build/lib/qomui
copying qomui/__init__.py -> build/lib/qomui
copying qomui/update.py -> build/lib/qomui
copying qomui/qomui_service.py -> build/lib/qomui
copying qomui/mv_config.py -> build/lib/qomui
copying qomui/bypass.py -> build/lib/qomui
copying qomui/latency.py -> build/lib/qomui
running egg_info
creating qomui.egg-info
writing requirements to qomui.egg-info/requires.txt
writing qomui.egg-info/PKG-INFO
writing top-level names to qomui.egg-info/top_level.txt
writing dependency_links to qomui.egg-info/dependency_links.txt
writing entry points to qomui.egg-info/entry_points.txt
writing manifest file 'qomui.egg-info/SOURCES.txt'
reading manifest file 'qomui.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'qomui.egg-info/SOURCES.txt'
running install_lib
creating /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/qomui_gui.py -> /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/firewall.py -> /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/__init__.py -> /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/update.py -> /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/qomui_service.py -> /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/mv_config.py -> /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/bypass.py -> /usr/lib/python2.7/site-packages/qomui
copying build/lib/qomui/latency.py -> /usr/lib/python2.7/site-packages/qomui
byte-compiling /usr/lib/python2.7/site-packages/qomui/qomui_gui.py to qomui_gui.pyc
  File "/usr/lib/python2.7/site-packages/qomui/qomui_gui.py", line 1431
    def filter_servers(self, *arg, display="filter"):
                                         ^
SyntaxError: invalid syntax

byte-compiling /usr/lib/python2.7/site-packages/qomui/firewall.py to firewall.pyc
byte-compiling /usr/lib/python2.7/site-packages/qomui/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.7/site-packages/qomui/update.py to update.pyc
byte-compiling /usr/lib/python2.7/site-packages/qomui/qomui_service.py to qomui_service.pyc
byte-compiling /usr/lib/python2.7/site-packages/qomui/mv_config.py to mv_config.pyc
byte-compiling /usr/lib/python2.7/site-packages/qomui/bypass.py to bypass.pyc
byte-compiling /usr/lib/python2.7/site-packages/qomui/latency.py to latency.pyc
running install_data
copying resources/qomui.desktop -> /usr/share/applications/
copying resources/qomui.service -> /etc/systemd/system/
copying resources/org.qomui.service.conf -> /etc/dbus-1/system.d/
copying resources/qomui.svg -> /usr/share/icons/hicolor/scalable/apps/
copying resources/qomui_off.svg -> /usr/share/icons/hicolor/scalable/apps/
creating /usr/share/qomui
copying resources/Airvpn_config -> /usr/share/qomui/
copying resources/PIA_config -> /usr/share/qomui/
copying resources/default_config.json -> /usr/share/qomui/
copying resources/firewall_default.json -> /usr/share/qomui/
copying resources/Mullvad_config -> /usr/share/qomui/
copying resources/ssl_config -> /usr/share/qomui/
copying resources/qomui.png -> /usr/share/qomui/
copying resources/hop.sh -> /usr/share/qomui/
copying resources/hop_down.sh -> /usr/share/qomui/
error: can't copy 'resources/VERSION': doesn't exist or not a regular file

My Feature Requests

Map with VPN Locations
Better if we can Turn On/Off this Feature

Internet Kill Switch
Only Access Internet with VPN Connection

App Kill Switch
Apps to kill if Connection drops

Change VPN Periodically
Good if we can set a time how often it should change - Random/Selected

Whitelist/Blacklist VPN Servers

Ip Adress Checker
Dropdown Menu with some Services to Check IP for Anonymity

Example https://i.imgur.com/0KJW0GY.png

Services suggested for IP Adress Checker:
https://whoer.net/ <<< Anonymity, Blacklist
https://ip-lookup.net <<< Basic IP informations
https://whatismyipaddress.com
https://whatismyip.com
https://tracemyip.org

Unable to load on Fedora 29

OpenSuse Build Service lists 27 and 28. Unable to load on Fedora 29, rpm for 28 installs but will not run. Adding the repo installs it properly as well. I believe it may be a python problem. I can provide logs if necessary.

Service crash on wireguard connection

  1. Install qomui from AUR
  2. Import wireguard config from streisand
  3. Try to connect

Result:
qomui-service output

net.ipv6.conf.all.disable_ipv6 = 0
Error: argument "bypass_qomui" is wrong: invalid table ID

Error: argument "bypass_qomui" is wrong: invalid table ID

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/qomui/tunnel.py", line 42, in run
    self.wireguard()
  File "/usr/lib/python3.7/site-packages/qomui/tunnel.py", line 61, in wireguard
    shutil.copyfile("{}/{}".format(ROOTDIR, self.server_dict["path"]), path)
NameError: name 'shutil' is not defined
[1]    12006 abort      sudo qomui-service

Firewall problems

First of all, I’m running Qomui on a pretty new Arch installation installed through the AUR and getting some strange firewall behavior. If I am enabling the firewall and IPv6 protection through the GUI started with sudo both works more or less, but am I still able to ping any server through my terminal and I’m not quite sure if that’s the intended behavior.
This is what the GUI log shows after enabling the firewall and IPv6 protection:

INFO - Configuration changes applied successfully
INFO - Disabled ipv6
INFO - Loading default firewall configuration
INFO - ipv6 stack not available
INFO - iptables: flushed existing rules
INFO - ipv6 stack not available
INFO - ipv6 stack not available
INFO - ipv6 stack not available
INFO - iptables: activated firewall
WARNING - iptables: failed to apply ['-t', 'mangle', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'MARK', '--set-mark', '11']
WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'POSTROUTING', '-m', 'cgroup', '--cgroup', '0x00110011', '-o', 'enp3s0', '-j', 'MASQUERADE']
WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']
WARNING - iptables: failed to apply ['-D', 'INPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']
WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'tcp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']
WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'udp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']
INFO - ipv6 stack not available
INFO - Deleted cgroup

The other thing is, that after a reboot and qomui.service enabled the firewall is like half way activated. I can visit Google, YouTube, Have I Been Pwned, IPLeak and Wikipedia (and probably many more) while DuckDuckGo, GitHub, Twitter, Twitch, Amazon… aren’t working. Furthermore, IPv6 is enabled again unless I am disabling in the GUI again. If I’m reenabling the firewall and IPv6 in the GUI again I’m in the same state as stated before.
I don't know what could cause the issues, but the only reason I could think of, is that the service calls the CLI application which gives me D-Bus permission errors when I’m trying to enable the firewall or disabling IPv6.

Completely uninstall qomui and get internet back

Hello to All,
I am looking for solution to regain internet access after trying QOMUI package on ubuntu 18.04.1 x64.
After install, before setting VPNs, my system crushed and after reboot I cannot regain internet access.
2 nics, no problems with local nets, but no internet. No firewalls running.
Tried some resolve options, networkmanager but to no avail.
I have read there is some security "kill" to lock internet access if VPN is down.
Any suggestions how to resolve the issue. Reinstalling the system would be really too cumbersome.
Any hints how to troubleshoot, what to check, what to disable.
I can ping internet addresses, but I do not have a basic DNS resolution that system, browsers, apps normally used before QOMUI.
Hope there is a simple solution.

program refuse to start maybe because ipv6

hello the program is refusing to start i have an error about Dbus

systemctl status qomui

● qomui.service - qomui
   Loaded: loaded (/usr/lib/systemd/system/qomui.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2019-01-14 10:29:40 CET; 1min 37s ago
  Process: 3246 ExecStart=/usr/bin/env qomui-service (code=exited, status=1/FAILURE)
 Main PID: 3246 (code=exited, status=1/FAILURE)

janv. 14 10:29:40 mi-pc env[3246]:     save_existing_rules_6(fw_rules)
janv. 14 10:29:40 mi-pc env[3246]:   File "/usr/lib/python3.7/site-packages/qomui/firewall.py", line 138, in save_existing_rules_6
janv. 14 10:29:40 mi-pc env[3246]:     existing_rules = check_output(["ip6tables", "-S"]).decode("utf-8")
janv. 14 10:29:40 mi-pc env[3246]:   File "/usr/lib/python3.7/subprocess.py", line 389, in check_output
janv. 14 10:29:40 mi-pc env[3246]:     **kwargs).stdout
janv. 14 10:29:40 mi-pc env[3246]:   File "/usr/lib/python3.7/subprocess.py", line 481, in run
janv. 14 10:29:40 mi-pc env[3246]:     output=stdout, stderr=stderr)
janv. 14 10:29:40 mi-pc env[3246]: subprocess.CalledProcessError: Command '['ip6tables', '-S']' returned non-zero exit status 3.
janv. 14 10:29:40 mi-pc systemd[1]: qomui.service: Main process exited, code=exited, status=1/FAILURE
janv. 14 10:29:40 mi-pc systemd[1]: qomui.service: Failed with result 'exit-code'.
14/01/2019 10:24	pkexec	mi: Executing command [USER=root] [TTY=unknown] [CWD=/home/mi] [COMMAND=/usr/bin/systemctl restart qomui]
14/01/2019 10:24	systemd	Starting qomui...
14/01/2019 10:24	dbus-daemon	[system] Would reject message, 3 matched rules; type="method_call", sender=":1.3210" (uid=0 pid=1855 comm="/usr/bin/python /usr/bin/qomui-service ") interface="org.freedesktop.DBus" member="RequestName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
14/01/2019 10:24	systemd	Started qomui.
14/01/2019 10:24	audit	SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=qomui comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
14/01/2019 10:24	kernel	audit: type=1130 audit(1547457878.767:123): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=qomui comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
14/01/2019 10:24	dbus-daemon	[system] Would reject message, 2 matched rules; type="method_call", sender=":1.3171" (uid=1000 pid=1679 comm="/usr/bin/python /usr/bin/qomui-gui ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.3210" (uid=0 pid=1855 comm="/usr/bin/python /usr/bin/qomui-service ")
14/01/2019 10:24	dbus-daemon	[system] Would reject message, 2 matched rules; type="method_call", sender=":1.3171" (uid=1000 pid=1679 comm="/usr/bin/python /usr/bin/qomui-gui ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.3210" (uid=0 pid=1855 comm="/usr/bin/python /usr/bin/qomui-service ")
14/01/2019 10:24	env	  File "/usr/bin/qomui-service", line 11, in <module>
14/01/2019 10:24	env	    load_entry_point('qomui==0.8.1', 'console_scripts', 'qomui-service')()
14/01/2019 10:24	env	  File "/usr/lib/python3.7/site-packages/qomui/qomui_service.py", line 653, in main
14/01/2019 10:24	env	    service = QomuiDbus()
14/01/2019 10:24	env	  File "/usr/lib/python3.7/site-packages/qomui/qomui_service.py", line 80, in __init__
14/01/2019 10:24	env	  File "/usr/lib/python3.7/site-packages/qomui/qomui_service.py", line 196, in load_firewall
14/01/2019 10:24	env	  File "/usr/lib/python3.7/site-packages/qomui/firewall.py", line 73, in apply_rules
14/01/2019 10:24	env	  File "/usr/lib/python3.7/site-packages/qomui/firewall.py", line 138, in save_existing_rules_6
14/01/2019 10:24	systemd	qomui.service: Main process exited, code=exited, status=1/FAILURE
14/01/2019 10:24	systemd	qomui.service: Failed with result 'exit-code'.
14/01/2019 10:24	audit	SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=qomui comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
14/01/2019 10:24	kernel	audit: type=1131 audit(1547457878.830:124): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=qomui comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

i'm on manjaro and installed it from the AUR repo, can it be because i have disabled ipv6 in kernel with ipv6.disable=1 in grub? https://wiki.manjaro.org/index.php?title=Turn_OFF_IPv6 ?

thanks

[Feature] option to autoconnect service / headless

Hi,

Please add an option in the gui to set the service to autoconnect on boot (with all of the settings/servers defined in the gui, including auto reconnect, dns, firewall, etc... ).

This way, it would also work on headless servers without running the gui. (it would work to autoconnect on boot like the openvpn service).

The gui would only be opened to monitor the connection, or change the settings / servers. Changing anything would automatically apply the changes to the service, including for reboots.

Many thanks for this beautiful app.

Problems Connect to Custom VPN Services

Problems Connect to safervpn.com

This is the Original *.ovpn file (without certificate)

client dev tun proto udp cipher AES-256-CBC remote-cert-tls server remote de1.safervpn.net 1194 # - Your server IP and OpenVPN Port resolv-retry infinite nobind tun-mtu 1500 tun-mtu-extra 32 mssfix 1450 persist-key persist-tun auth-user-pass comp-lzo verb 3

After Adding to Qomui 2 lines changed in /usr/share/qomui/:

remote 146.0.42.22 1194 auth-user-pass /usr/share/qomui/certs/safervpn.com-auth.txt

and on connect it creates a temp.ovpn file looks like this (only changed lines):

proto #

Log gives me this Error:

2018-10-28 12:09:15,533 - INFO - OpenVPN:Options error: Unrecognized option or missing or extra parameter(s) in /usr/share/qomui/safervpn.com/temp.ovpn:3: proto (2.4.0)

proto udp is correct why Qomui change the line to proto # ???

.
.
.
.
.

Qomui Testing Status:

nordvpn.com - Works with Qomui
ibvpn.com - Works with Qomui
tunnelbear.com - Works with Qomui
airvpn.org - Works with Qomui
ipvanish.com - Works with Qomui
protonvpn.com - Works with Qomui
safervpn.com - Works with Qomui
hidemyass.com - Works with Qomui
cactusvpn.com - Works with Qomui
purevpn.com - Problems with Connecting
goldenfrog.com - Works with Qomui
More VPN Services coming soon...

[Feature] wireguard support

Hi,

Please add wireguard support.

It would also be great if we could mix openvpn and wireguard servers in the chain.

Many thanks.

Minimize & Tray Icon

Hi,
I am encountering some issues with the minimize option on elementaryos Juno.

  • The option to start minimized doesn't function (it opens the GUI)
  • When I click the X and choose Minimize, it removes the icon in the tray (however the wireguard connection remains active.

screenshot from 2018-10-20 10-48-19
screenshot from 2018-10-20 10-54-49

OS: ElementaryOS 5.0 (Juno)
Qomui Version 0.7.4

Provide AppImage release

AppImages run on all Linux distros, it doesn't require installation or root (just make it executable and run it), it's portable (all packed into one file) and it's been in use for over a decade.

It would enable you to not need to package both DEBs and RPMs, and negate the need for any alternative cross-platform packaging systems.

I'd really like to use it especially for the portability component.

Main process aborts when trying to connect to Mullvad over OpenVPN account is out of time

When you try to connect to a mullvad server using openvpn and the account has no time on it, the main process aborts with this error:

python[376]: Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/qomui/tunnel.py", line 44, in run
  self.openvpn()
File "/usr/lib/python3.7/site-packages/qomui/tunnel.py", line 195, in openvpn
  self.ovpn(path, self.hop, cwd_ovpn)
File "/usr/lib/python3.7/site-packages/qomui/tunnel.py", line 440, in ovpn
  elif line.find('SIGTERM[soft,auth-failure]') != -1 and self.connection_status != 1:
AttributeError: 'TunnelThread' object has no attribute 'connection_status'
systemd[1]: qomui.service: Main process exited, code=killed, status=6/ABRT
systemd[1]: qomui.service: Failed with result 'signal'.

[Help wanted] Building rpm packages

Hey,

I'm looking for someone that could possibly help me building better rpm-packages for qomui. Currently, I'm building these on Arch Linux. The problem I came across recently is that Arch updated Python to version 3.7. which resulted in all python files being moved to /usr/lib/python3.7/site-packages/qomui during the install stage on building the rpm package. On a Fedora installation with Python 3.6. starting Qomui hence fails as the automatically generated console scripts (e.g. /usr/bin/qomui-gui) assume files to be at /usr/lib/python3.6/site-packages/qomui. This problem does not occur on Debian/Ubuntu as the python package can easily be moved to "/usr/lib/python3/dist-packages".

In short, is it necessary to build different rpms for each version of Python (and if so, can this be automated?)? Or is there are more flexible solution? As for now, Python 3.6 is standard on current Fedora releases but what happens if the next release includes Python 3.7? For the latest release I used a rather ugly hack to get around the problem by adding "--install-purelib=/usr/lib/python3.6/site-packages" to the setup.py install parameters. Have a look at my qomui-spec:
qomui.txt

Wireguard does not work

I am on Ubuntu 18.04 and I try to connect to a WIreGuard server.

The loading bar is infinite, here is the error message from the QOMUI Service Logs :

WireGuard: wg-quick: `/usr/share/qomui/wg_qomui.conf' does not exist

GUI won't start for Ubuntu 16.04

Please see my previous comment on issue #52

I decided I'd give it one more shot installing 0.8.1

I removed and purged the working version 0.7.3 (works fine for me) and then I installed 0.8.1 from the terminal.

The outline of the GUI only flashes on the screen for 1 second.

I rebooted, but same issue- GUI only flashes on the screen.

Then I tried to reinstall. Nothing changed. I cannot get the gui to start.

Perhaps you can see what is wrong. I would really like this to work.

All the dependencies are installed and current.

X ~ $ sudo systemctl status qomui
[sudo] password for X:
● qomui.service - qomui
Loaded: loaded (/lib/systemd/system/qomui.service; enabled; vendor preset: en
Active: active (running) since Fri 2019-01-25 10:07:50 PST; 3min 58s ago
Main PID: 833 (qomui-service)
CGroup: /system.slice/qomui.service
└─833 /usr/bin/python3 /usr/bin/qomui-service

Jan 25 10:07:06 systemd[1]: Starting qomui...
Jan 25 10:07:50 systemd[1]: Started qomui.
Jan 25 10:07:50 env[833]: openvpn: no process found
Jan 25 10:07:50 o env[833]: net.ipv6.conf.all.disable_ipv6 =
lines 1-11/11 (END)

X ~ $ cat /usr/share/qomui/qomui.log | grep Dbus
2019-01-25 10:03:31,171 - INFO - Dbus-service successfully initialized
2019-01-25 10:07:50,507 - INFO - Dbus-service successfully initialized
2019-01-25 10:10:08,087 - INFO - Dbus-service successfully initialized

X ~ $ qomui-gui
QLayout: Attempting to add QLayout "" to QomuiGui "Form", which already has a layout
Traceback (most recent call last):
File "/usr/bin/qomui-gui", line 9, in
load_entry_point('qomui==0.8.1', 'gui_scripts', 'qomui-gui')()
File "/usr/lib/python3.5/dist-packages/qomui/qomui_gui.py", line 2743, in main
ex = QomuiGui()
File "/usr/lib/python3.5/dist-packages/qomui/qomui_gui.py", line 147, in init
self.systemtray()
File "/usr/lib/python3.5/dist-packages/qomui/qomui_gui.py", line 1112, in systemtray
self.pop_tray_menu()
File "/usr/lib/python3.5/dist-packages/qomui/qomui_gui.py", line 1123, in pop_tray_menu
self.visibility_action = QtWidgets.QAction()
TypeError: arguments did not match any overloaded call:
QAction(QObject): not enough arguments
QAction(str, QObject): not enough arguments
QAction(QIcon, str, QObject): not enough arguments

Qomui not working anymore, KDE Neon 14.4

I'm really sorry to post here again, but Qomui stopped working and I can't fix it. It seems to be a python issue.

qomui-gui
Icon theme "gnome" not found.
QLayout: Attempting to add QLayout "" to QomuiGui "Form", which already has a layout
Traceback (most recent call last):
  File "/usr/bin/qomui-gui", line 11, in <module>
    load_entry_point('qomui==0.8.0', 'gui_scripts', 'qomui-gui')()
  File "/usr/lib/python3.6/dist-packages/qomui/qomui_gui.py", line 2775, in main
    ex = QomuiGui()
  File "/usr/lib/python3.6/dist-packages/qomui/qomui_gui.py", line 165, in __init__
    self.qomui_service.disconnect("main")
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.79 was not provided by any .service files
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook
    os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/var/crash/_usr_bin_qomui-gui.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/qomui-gui", line 11, in <module>
    load_entry_point('qomui==0.8.0', 'gui_scripts', 'qomui-gui')()
  File "/usr/lib/python3.6/dist-packages/qomui/qomui_gui.py", line 2775, in main
    ex = QomuiGui()
  File "/usr/lib/python3.6/dist-packages/qomui/qomui_gui.py", line 165, in __init__
    self.qomui_service.disconnect("main")
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.79 was not provided by any .service files

KDE Frameworks 5.53.0
Qt: 5.11.2
Kernel: 4.19.8

Add shadowsocks client functionality

Would you consider adding shadowsocks client functionality to connect to a shadowsocks server, similar to what is offered with shadowsocks-qt5?
See: https://github.com/shadowsocks/shadowsocks-qt5
In some countries OpenVPN is detected and blocked in real-time through deep-packet inspection and having a possibility - in such cases - to switch to a shadowsocks server (one can easily install a private shadowsocks server via a Streisand script running on a VPS, thereby complementing the offerings of commercial VPN providers) would be great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.