Gustavo Iñiguez Goia
314ee820ce
centralized ebpf modules loading
2022-11-18 20:38:52 +01:00
Gustavo Iñiguez Goia
32243c2cfd
some ebpf,dns improvements
...
When using the DNS ebpf module there were some timeouts handling
connections, as well as some (nearly) imperceptible delays resolving
domains.
2022-06-10 17:01:18 +02:00
Jeremy Mahieu
69ca95b796
fixes attachment of dns uprobes when libc is stripped of symbol names (.dynsym instead of .symtab)
2022-06-07 00:04:08 +02:00
Gustavo Iñiguez Goia
4babc52524
exclude ::1 from dns cache
...
It caused some problems. See #629
2022-02-21 17:51:29 +01:00
Gustavo Iñiguez Goia
026f05d9cc
dns, ebpf: do not crash on exit when in DEBUG
...
If the daemon crashes on exit, fw rules are not deleted.
2022-02-18 00:42:54 +01:00
calesanz
a4b7f57806
Add ebpf based dns lookup hooks ( #582 )
...
When using DoT or DoH opensnitch cannot intercept the dns packets.
Therefore the UI always shows IP addresses instead of hostnames. To fix
this issue an ebpf (uprobe) filter was created to hook getaddrinfo and
gethostbyname calls.
In order to be independent of libbcc an additional module was added to
ebpf_prog. Without libbcc the libc function offsets must be resolved
manually. In order to find the loaded glibc version some cgo code was
added.
2022-02-15 21:25:35 +01:00
Gustavo Iñiguez Goia
e13015ce67
updated import paths
2020-12-09 18:18:42 +01:00
Gustavo Iñiguez Goia
528ce81c04
exclude localhost resolved dns from being cached
...
it led to resolve some domains to 127.0.0.1 and show the user a
dialog with that misleading domain.
2020-04-04 10:53:30 +02:00
Gustavo Iñiguez Goia
99b024e0de
dns sources formatted and documented
2020-03-07 10:23:53 +01:00
Gustavo Iñiguez Goia
93592b6b00
Allow to see which domain a process is trying to resolve
...
Ideally this information should go in a different Connection field, but
for now lets use DstHost.
2019-11-08 01:38:26 +01:00
Gustavo Iñiguez Goia
a7e9b5072f
project import paths changed
2019-10-20 21:51:35 +02:00
Armen Boursalian
a8a52f8650
RWMutex may help performance in DNS tracking
2018-08-28 08:21:26 -07:00
Armen Boursalian
b95c63f0c0
#176 : IP -> CNAME -> orig. domain display
2018-08-28 08:20:42 -07:00
evilsocket
534ec8cd73
misc: small fix or general refactoring i did not bother commenting
2018-04-02 05:25:32 +02:00