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....

September 5, 2019 · 1 min · 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....

June 19, 2019 · 1 min · 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....

February 17, 2018 · 1 min · 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:...

September 5, 2016 · 1 min · 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....

August 4, 2016 · 4 min · JC