Gustavo Iñiguez Goia
9d0f7c27ca
Update go.yml
2020-02-25 01:41:18 +01:00
Gustavo Iñiguez Goia
aad5eb8a48
Update go.yml
2020-02-25 01:39:24 +01:00
Gustavo Iñiguez Goia
e617dd834f
Update go.yml
2020-02-25 01:36:04 +01:00
Gustavo Iñiguez Goia
de956b1bf4
Fixed DNS responses firewall rule not deleted on exit
...
Sometimes the INPUT rule for to queue DNS responses was not deleted.
The code has also been reorganized.
And a minor tweak to make an if{} more idiomatic.
2020-02-25 01:30:24 +01:00
Gustavo Iñiguez Goia
2a85a27685
Update go.yml
2020-02-25 00:26:50 +01:00
Gustavo Iñiguez Goia
7cb0a25119
Bump version to v1.0.0rc5
2020-02-24 20:07:22 +01:00
Gustavo Iñiguez Goia
4abe3ee4cc
Update go.yml
2020-02-24 20:03:04 +01:00
Gustavo Iñiguez Goia
2b1cfcd6ef
Merged UI fixes.
2020-02-24 20:00:33 +01:00
Gustavo Iñiguez Goia
a34f215252
UI deb package: added qt sqlite lib dependency
...
On LinuxMint 19.3 it was not installed as part of the other packages,
so the UI couldn't load the driver.
2020-02-24 19:53:08 +01:00
Gustavo Iñiguez Goia
4479bb5155
UI: exit cleanly if there's no QtSql driver available
2020-02-24 19:39:34 +01:00
Gustavo Iñiguez Goia
be89865cd1
fixed UI autostart on Cinnamon
2020-02-24 10:18:44 +01:00
Gustavo Iñiguez Goia
d3eadd0edf
Update README.md
2020-02-23 23:02:33 +01:00
Gustavo Iñiguez Goia
13f4670be0
Update README.md
2020-02-23 23:01:45 +01:00
Gustavo Iñiguez Goia
f114439dba
Update go.yml
2020-02-23 16:16:17 +01:00
Gustavo Iñiguez Goia
8719286853
Update go.yml
2020-02-23 16:11:58 +01:00
Gustavo Iñiguez Goia
ceb5290b13
Create go.yml
2020-02-23 08:52:48 +01:00
Gustavo Iñiguez Goia
cad5339695
Fixed typo in ui/debian/postinst
2020-02-23 01:17:39 +01:00
Gustavo Iñiguez Goia
0f171f87d4
UI deb package improvements
...
* Purge files when using apt remove --purge
* Display a message to uninstall installed pkgs from pypi when invoking
apt remove
* link autostart .desktop file to /usr/share/applications instead of
copying it
2020-02-22 17:22:28 +01:00
Gustavo Iñiguez Goia
e3b0287e2e
Merge UI fixes and enhancements from ui2.0
2020-02-22 01:00:24 +01:00
Gustavo Iñiguez Goia
401329171a
Workaround for crashes parsing .desktop files
...
We parse .desktop files to get the icon of a program, but sometimes we
can't parse the Name translation due to unicode encoding problems.
Besides, on some distributions there're .desktop files without Exec=
line, so we also crash.
With this workaround we miss (mainly) the icon of a program, but at
least we won't crash.
It should help with #5 .
2020-02-22 00:53:10 +01:00
Gustavo Iñiguez Goia
c4a9a21afa
fixed HighDpi scaling
...
This should fix the warning message:
"Attribute Qt::AA_EnableHighDpiScaling must be set before
QCoreApplication is created."
Which should fix the small fonts reported by some users.
We may also need AA_UseHighDpiPixmaps.
2020-02-22 00:48:19 +01:00
Gustavo Iñiguez Goia
2c7472f06d
firewall: check rules every 5s
...
Every 5s check if our rules are loaded, and if they aren't, add them
again.
2020-02-22 00:27:35 +01:00
Gustavo Iñiguez Goia
7f2f40b64d
UI, stats: display dst_port on process details view
2020-02-21 00:57:11 +01:00
Gustavo Iñiguez Goia
8b579ece28
procmon: split cache functionality to a new file
2020-02-20 09:58:19 +01:00
Gustavo Iñiguez Goia
848f72de68
Fixed netlink socket querying
...
man sock_diag:
"If the nlmsg_flags field of the struct nlmsghdr header has the
NLM_F_DUMP flag set, it means that a list of sockets is being
requested; otherwise it is a query about an individual socket."
2020-02-20 01:45:02 +01:00
Gustavo Iñiguez Goia
189cffb00f
Merge UI crash fixes and improvements
2020-02-20 00:27:45 +01:00
Gustavo Iñiguez Goia
8d88a4c13a
Fixed advanced button height on some systems
...
Like Ubuntu Mate 16.04
2020-02-20 00:23:32 +01:00
Gustavo Iñiguez Goia
6ae1857538
Fixed prompt dialog exception and improved backward compatibility
...
Improved compatibility with old regex lib versions.
Fixed exception.
2020-02-19 23:14:25 +01:00
Gustavo Iñiguez Goia
b409eca0ed
Fixed UI crash when configuring high dpi scaling on some systems
...
On LinuxMint18 even with a compatible PyQt lib, it crashes, so just
don't set this option.
2020-02-19 01:04:58 +01:00
Gustavo Iñiguez Goia
7ca2044f96
Merge UI License, MANIFEST.in and setup.py
2020-02-18 23:43:14 +01:00
Gustavo Iñiguez Goia
7eb0b6da30
UI: added license, long description and distribute icons
2020-02-18 23:40:07 +01:00
Gustavo Iñiguez Goia
9529830010
Improved UI deb package generation
...
This is highly experimental and not Debian compliant.
We'll keep improving it over time.
2020-02-18 23:30:56 +01:00
Gustavo Iñiguez Goia
d46d50a58d
Bump version to v1.0.0rc3
2020-02-18 10:49:30 +01:00
Gustavo Iñiguez Goia
75db31c98d
Bump debian package version to 1.0.0rc3
2020-02-18 10:48:47 +01:00
Gustavo Iñiguez Goia
f88b78d5bb
Improved UI debian package and bump version to rc3
...
Removed some dependencies, and ask to install via pip.
Added copyright file.
2020-02-18 10:47:17 +01:00
Gustavo Iñiguez Goia
a13f42d98b
netlink: fixed connections querying
...
also code simplified.
2020-02-18 02:05:15 +01:00
Gustavo Iñiguez Goia
25c27511e1
Improved PIDs searching and sorting
...
Accuracy and reliability improved.
2020-02-17 23:39:26 +01:00
Gustavo Iñiguez Goia
19a5811f3b
Merge UI fix to allow/deny second-level domains
2020-02-17 01:37:29 +01:00
Gustavo Iñiguez Goia
f696cf9141
Added option to allow/deny second level domains
...
Added option to allow or deny domains like 'examle.com', otherwise the
regex added a dot (.*\.example\.com) which didn't match the connection.
2020-02-17 01:31:37 +01:00
Gustavo Iñiguez Goia
be7ffbc54b
Improved PIDs searching in /proc
...
Improved and reorganized code.
2020-02-17 01:17:28 +01:00
Gustavo Iñiguez Goia
d6180b8943
Merge UI regex patterns fix
...
As commented here #4
2020-02-15 01:02:45 +01:00
Gustavo Iñiguez Goia
7a7c1fb34b
Fixed regex patterns shown in the UI combobox
...
Parse correctly DNS queries with the format 1.2.3.4 (x.host.com)
2020-02-15 00:33:43 +01:00
Gustavo Iñiguez Goia
6646ee469a
Accept response from netlink just if inode is valid
...
Sometimes we get wrong values for Uid field, so just check if the inode
field is valid to accept the response from netlink.
2020-02-15 00:22:37 +01:00
Gustavo Iñiguez Goia
9207465d58
Do not panic if we can't parse a Regex type rule
...
If for some reason a Regex type rule can not be parsed, opensnitchd
panics and exit. We drop regex.MustCompile() in favor of
regex.Compile(), and in case of failure we just drop the packet.
In either case, the daemon should not panic but it should not received
an invalid rule either, specially from the UI.
Closes #4
2020-02-14 23:15:14 +01:00
Gustavo Iñiguez Goia
a4a5637a22
Fixed errors
...
Typos were made.
2020-02-13 23:19:15 +01:00
Gustavo Iñiguez Goia
1e2f9aa124
Find pid of a process in /proc if debugfs is unavailable
...
debugfs is not always available due to different reasons:
https://github.com/evilsocket/opensnitch/issues/214
https://github.com/evilsocket/opensnitch/issues/276
Fallback to /proc parsing, although procfs could also be not available.
Easily testable by unmounting debugfs (umount debugfs) and launch
opensnitchd. It should work as expected.
2020-02-13 23:08:58 +01:00
Gustavo Iñiguez Goia
d5b7c597ae
Fixed typo in netlink parameter
...
Thanks to @Ph0rk0z for pointing it out.
2020-02-13 10:01:22 +01:00
Gustavo Iñiguez Goia
54bb5dcca5
Fixed and improved netlink communications
...
Fixed invalid uid.
Fixed/improved netlink sockets querying.
2020-02-12 22:52:24 +01:00
Gustavo Iñiguez Goia
a6ff8d2c4f
Prioritize cache pids with active connections
...
Processes with active connections are the most likely to be the latest
modified ones in /proc, thus sort cache pids by time speeds up pids cache
searching. From several ms to us.
2020-02-12 22:20:26 +01:00
Gustavo Iñiguez Goia
489b64730a
Sort process descriptors by modified time
...
When parsing /proc/<pid>/fd/ looking for sockets, latest
modified/created descriptors are the most likely to have
generated connections.
This way we decrease the parsing time, system load and speed up process name
retrieval.
2020-02-11 21:32:48 +01:00