{"action":"opened","issue":{"url":"https://api.github.com/repos/corrad1nho/qomui/issues/98","repository_url":"https://api.github.com/repos/corrad1nho/qomui","labels_url":"https://api.github.com/repos/corrad1nho/qomui/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/corrad1nho/qomui/issues/98/comments","events_url":"https://api.github.com/repos/corrad1nho/qomui/issues/98/events","html_url":"https://github.com/corrad1nho/qomui/issues/98","id":443110022,"node_id":"MDU6SXNzdWU0NDMxMTAwMjI=","number":98,"title":"Error when connecting to Wireguard 0.8.2 Ubuntu 18.04","user":{"login":"bmcgonag","id":7346620,"node_id":"MDQ6VXNlcjczNDY2MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/7346620?v=4","gravatar_id":"","url":"https://api.github.com/users/bmcgonag","html_url":"https://github.com/bmcgonag","followers_url":"https://api.github.com/users/bmcgonag/followers","following_url":"https://api.github.com/users/bmcgonag/following{/other_user}","gists_url":"https://api.github.com/users/bmcgonag/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcgonag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcgonag/subscriptions","organizations_url":"https://api.github.com/users/bmcgonag/orgs","repos_url":"https://api.github.com/users/bmcgonag/repos","events_url":"https://api.github.com/users/bmcgonag/events{/privacy}","received_events_url":"https://api.github.com/users/bmcgonag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-05-12T14:22:08Z","updated_at":"2019-05-12T14:22:08Z","closed_at":null,"author_association":"NONE","body":"### OS\r\nUbuntu 18.04\r\n\r\n### VPN Type\r\nWireguard using wg-quick\r\n\r\n### Issue\r\nImported the wg0.conf file from my client machine, got errors, and also errors on trying to connect which you'd expect. \r\n\r\n### Log File information\r\n#### Info level\r\n```\r\n2019-05-12 08:33:59,236 - DEBUG - Successfully connected to qomui-service via DBus\r\n2019-05-12 08:33:59,251 - INFO - Qomui version 0.8.2\r\n2019-05-12 08:33:59,253 - WARNING - [Errno 2] No such file or directory: '/usr/share/qomui/config.json': Could not open /usr/share/qomui/config.json\r\n2019-05-12 08:33:59,255 - WARNING - [Errno 2] No such file or directory: '/home/brian/.qomui/bypass_apps.json': Could not open /home/brian/.qomui/bypass_apps.json\r\n2019-05-12 08:33:59,256 - WARNING - [Errno 2] No such file or directory: '/home/brian/.qomui/profile.json': Could not open /home/brian/.qomui/profile.json\r\n2019-05-12 08:33:59,257 - INFO - Loading default configuration\r\n2019-05-12 08:33:59,258 - INFO - Total number of server: 0\r\n2019-05-12 08:33:59,402 - ERROR - Could not identify default gateway for ipv6 - no network connectivity\r\n2019-05-12 08:33:59,403 - INFO - Detected new network connection\r\n2019-05-12 08:33:59,533 - WARNING - iptables: failed to apply ['-t', 'mangle', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'MARK', '--set-mark', '11']\r\n2019-05-12 08:33:59,631 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'POSTROUTING', '-m', 'cgroup', '--cgroup', '0x00110011', '-o', 'wlp3s0', '-j', 'MASQUERADE']\r\n2019-05-12 08:33:59,639 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']\r\n2019-05-12 08:33:59,645 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']\r\n2019-05-12 08:33:59,652 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'tcp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']\r\n2019-05-12 08:33:59,658 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'udp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']\r\n2019-05-12 08:33:59,751 - WARNING - iptables: failed to apply ['-t', 'mangle', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'MARK', '--set-mark', '11']\r\n2019-05-12 08:33:59,835 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'POSTROUTING', '-m', 'cgroup', '--cgroup', '0x00110011', '-o', 'wlp3s0', '-j', 'MASQUERADE']\r\n2019-05-12 08:33:59,903 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']\r\n2019-05-12 08:33:59,911 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-j', 'ACCEPT']\r\n2019-05-12 08:33:59,919 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'tcp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']\r\n2019-05-12 08:33:59,927 - WARNING - iptables: failed to apply ['-t', 'nat', '-D', 'OUTPUT', '-m', 'cgroup', '--cgroup', '0x00110011', '-p', 'udp', '--dport', '53', '-j', 'REDIRECT', '--to-ports', '5354']\r\n2019-05-12 08:33:59,927 - INFO - Deleted cgroup\r\n2019-05-12 08:34:48,592 - INFO - Parsing config files\r\n2019-05-12 08:34:48,598 - INFO - iptables: removing exception for DNS requests\r\n2019-05-12 08:34:48,603 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-p', 'udp', '--dport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,609 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-p', 'udp', '--dport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,616 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-p', 'udp', '--sport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,622 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-p', 'udp', '--sport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,628 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-p', 'tcp', '--dport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,634 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-p', 'tcp', '--dport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,640 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-p', 'tcp', '--sport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,647 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-p', 'tcp', '--sport', '53', '-j', 'ACCEPT']\r\n2019-05-12 08:34:48,650 - WARNING - [Errno 2] No such file or directory: '/usr/share/qomui/config.json': Could not open /usr/share/qomui/config.json\r\n2019-05-12 08:34:48,669 - INFO - Total number of server: 1\r\n2019-05-12 08:35:04,738 - INFO - Configuration changes applied successfully\r\n2019-05-12 08:35:04,740 - WARNING - Malformed config file\r\n2019-05-12 08:35:04,742 - ERROR - Dbus Error: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/dbus/service.py\", line 707, in _message_cb\r\n    retval = candidate_method(self, *args, **keywords)\r\n  File \"/usr/lib/python3.6/dist-packages/qomui/qomui_service.py\", line 199, in load_firewall\r\n    self.dns = self.config[\"alt_dns1\"]\r\nKeyError: 'alt_dns1'\r\n\r\n2019-05-12 08:35:04,763 - WARNING - Config file corrupted - bypass option does not exist\r\n2019-05-12 08:35:26,734 - INFO - Connecting to wg0....\r\n2019-05-12 08:35:26,745 - INFO - iptables: created rule for 159.203.186.174\r\n2019-05-12 08:35:26,748 - INFO - Establishing connection to wg0\r\n2019-05-12 08:35:26,753 - WARNING - iptables: failed to apply ['-I', 'INPUT', '2', '-i', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 08:35:26,759 - WARNING - iptables: failed to apply ['-I', 'OUTPUT', '2', '-o', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 08:35:27,792 - INFO - WireGuard: [#] ip link add wg_qomui type wireguard\r\n2019-05-12 08:35:27,799 - INFO - WireGuard: [#] wg setconf wg_qomui /dev/fd/63\r\n2019-05-12 08:35:27,815 - INFO - WireGuard: [#] ip address add 10.100.100.2/32 dev wg_qomui\r\n2019-05-12 08:35:27,821 - INFO - WireGuard: [#] ip link set mtu 1420 up dev wg_qomui\r\n2019-05-12 08:35:27,842 - INFO - WireGuard: [#] wg set wg_qomui fwmark 51820\r\n2019-05-12 08:35:27,843 - INFO - WireGuard: [#] ip -4 route add 0.0.0.0/0 dev wg_qomui table 51820\r\n2019-05-12 08:35:27,845 - INFO - WireGuard: [#] ip -4 rule add not fwmark 51820 table 51820\r\n2019-05-12 08:35:27,846 - INFO - WireGuard: [#] ip -4 rule add table main suppress_prefixlength 0\r\n2019-05-12 08:35:54,705 - INFO - WireGuard: [#] ip -4 rule delete table 51820\r\n2019-05-12 08:35:54,710 - INFO - WireGuard: [#] ip -4 rule delete table main suppress_prefixlength 0\r\n2019-05-12 08:35:54,716 - INFO - WireGuard: [#] ip link delete dev wg_qomui\r\n2019-05-12 08:35:54,835 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-i', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 08:35:54,844 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-o', 'wg_qomui', '-j', 'ACCEPT']\r\n```\r\n#### Debug level on next Connection Attempt\r\n```\r\n2019-05-12 09:20:37,236 - DEBUG - Restored backup of /etc/resolv.conf\r\n2019-05-12 09:20:37,237 - INFO - Connecting to wg0....\r\n2019-05-12 09:20:37,239 - DEBUG - New thread for OpenVPN process started\r\n2019-05-12 09:20:37,244 - DEBUG - iptables: ['-I', 'OUTPUT', '-d', dbus.String('159.203.186.174'), '-j', 'ACCEPT'] already exists\r\n2019-05-12 09:20:37,245 - INFO - iptables: created rule for 159.203.186.174\r\n2019-05-12 09:20:37,248 - DEBUG - No pre script defined for My Wireguard\r\n2019-05-12 09:20:37,249 - INFO - Establishing connection to wg0\r\n2019-05-12 09:20:37,258 - WARNING - iptables: failed to apply ['-I', 'INPUT', '2', '-i', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 09:20:37,264 - WARNING - iptables: failed to apply ['-I', 'OUTPUT', '2', '-o', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 09:20:37,269 - DEBUG - iptables: applied ['-I', 'INPUT', '2', '-i', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 09:20:37,275 - DEBUG - iptables: applied ['-I', 'OUTPUT', '2', '-o', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 09:20:38,298 - INFO - WireGuard: [#] ip link add wg_qomui type wireguard\r\n2019-05-12 09:20:38,305 - INFO - WireGuard: [#] wg setconf wg_qomui /dev/fd/63\r\n2019-05-12 09:20:38,323 - INFO - WireGuard: [#] ip address add 10.100.100.2/32 dev wg_qomui\r\n2019-05-12 09:20:38,329 - INFO - WireGuard: [#] ip link set mtu 1420 up dev wg_qomui\r\n2019-05-12 09:20:38,356 - INFO - WireGuard: [#] wg set wg_qomui fwmark 51820\r\n2019-05-12 09:20:38,357 - INFO - WireGuard: [#] ip -4 route add 0.0.0.0/0 dev wg_qomui table 51820\r\n2019-05-12 09:20:38,358 - INFO - WireGuard: [#] ip -4 rule add not fwmark 51820 table 51820\r\n2019-05-12 09:20:38,360 - INFO - WireGuard: [#] ip -4 rule add table main suppress_prefixlength 0\r\n2019-05-12 09:21:07,965 - DEBUG - Restored backup of /etc/resolv.conf\r\n2019-05-12 09:21:07,988 - INFO - WireGuard: [#] ip -4 rule delete table 51820\r\n2019-05-12 09:21:07,992 - INFO - WireGuard: [#] ip -4 rule delete table main suppress_prefixlength 0\r\n2019-05-12 09:21:07,998 - INFO - WireGuard: [#] ip link delete dev wg_qomui\r\n2019-05-12 09:21:08,119 - WARNING - iptables: failed to apply ['-D', 'INPUT', '-i', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 09:21:08,127 - WARNING - iptables: failed to apply ['-D', 'OUTPUT', '-o', 'wg_qomui', '-j', 'ACCEPT']\r\n2019-05-12 09:21:08,130 - DEBUG - iptables: ['-D', 'INPUT', '-i', 'wg_qomui', '-j', 'ACCEPT'] already exists\r\n2019-05-12 09:21:08,133 - DEBUG - iptables: ['-D', 'OUTPUT', '-o', 'wg_qomui', '-j', 'ACCEPT'] already exists\r\n2019-05-12 09:21:08,134 - DEBUG - No down script defined for My Wireguard\r\n```\r\n\r\nAny help is greatly appreciated."}}
{"actor":{"display_login":"bmcgonag"}}