Restrict a given network interface for a particular user using iptables on Linux

I assume that users A and B are using the same Linux machine(s) where you are the administrator. The following command will prevent the user with uid 1234 from sending packets on the interface eth0: # iptables -t mangle -A OUTPUT -o eth0 -m owner --uid-owner 1234 -j DROP Thanks to this StackExchange thread.

<span title='2019-09-05 05:25:05 +0000 UTC'>September 5, 2019</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;JC

Fix broken dependencies of a Debian package

Today a quick how-to about repackaging of a Debian package with broken dependencies. The context I use a package automatically built from a custom repo who is broken. It uses a mandatory broken dependency libssl1.0.0. This outdated package has been retired from Debian Stretch repositories. As this custom repository don’t provide package sources, I had to dig into this debian package to edit the control file, where package dependencies are defined....

<span title='2019-06-19 08:55:13 +0000 UTC'>June 19, 2019</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;JC

Installed packages from a specific repository

Today a quick command line to know installed packages from a specific repository. If you want to know all installed packages on your machine from download.virtualbox.org: for package in $(dpkg -l | awk '{print $2}'); do apt-cache madison $package | grep download.virtualbox.org; done Simple and easy ! Replace download.virtualbox.org with the repository you are searching for.

<span title='2018-02-17 09:33:41 +0000 UTC'>February 17, 2018</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;JC

Network-manager, dnsmasq and OpenNIC

Today, a quick how-to on how to: Override nameservers provided by your DHCP server by the ones from https://www.opennicproject.org, when you are using network-manager Use Network-Manager with dnsmasq to speed up DNS resolution I assume you are using your Linux machine as a desktop, not a server, and with network-manager. Always use OpenNIC name servers In /etc/dhcp/dhclient.conf, add this line, this will override DNS provided by your DHCP server: supersede domain-name-servers 193....

<span title='2016-09-05 06:44:50 +0000 UTC'>September 5, 2016</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;JC

Danse de salon et bal rétro: dans quel ordre enchaîner les séries de morceaux ?

Ce n’est pas un secret ni une recette magique et ça dépend un peu de la manière de faire de chacun. Traditionnellement, on ouvre la bal avec un paso-doble. Viennent ensuite tango, valse, cha-cha, rock, bolero. On commence toujours à peu près de cette manière. Après on recommence paso tango valse cha-cha, rock, bolero… MAIS : On ajuste ensuite en fonction du public et toujours en fonction du public et selon l’ambiance de l’après-midi ou soirée....

<span title='2016-08-04 16:35:58 +0000 UTC'>August 4, 2016</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;JC