~hiciu


#126 socksify not available on all distributions 2 years ago

Comment by ~hiciu on ~sircmpwn/aerc2

How about LD_PRELOAD trick, with something like:

int connect(...)
{
    errno = EADDRNOTAVAIL;
    return -1;
}

There is also bwrap from bubblewrap package, available in alpine, arch, fedora fc29+ and debian stretch+. (I'm not sure which distros are supported with aerc). Try:

$ bwrap --ro-bind / / --unshare-net curl google.com
curl: (6) Could not resolve host: google.com
$ bwrap --ro-bind / / curl google.com
(...)

bubblewrap is flatpak's dependency.