Setup NAT on Linux (iptables/nftables/firewalld)
The Setup Having this set up where Machine A like to connect to the Internet via Machine B. Iptables Add the following lines to the iptables and make sure to enable forwarding on Machine...
/home/rabin.io/notes
The Setup Having this set up where Machine A like to connect to the Internet via Machine B. Iptables Add the following lines to the iptables and make sure to enable forwarding on Machine...
GitKraken is a very nice tool to work with git, it really simplify some of the common tasks which most users need to work with git, and the nice GUI is another plus. Long...
I found this method works for me, #Check if user is root if [[ $EUID -ne 0 ]]; then echo “Sudo privileges required!” exit 1; fi dnf update NEXT_VERSION=25 rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-${NEXT_VERSION}-$(uname -i) dnf...
Some times when I need to troubleshoot a problem, adding some visualization to the process can help a lot, especially if one need to correlate between 2 (or more) metrics in the data. But...
This a quick hack I found while I was looking to run a knock script before connecting to servers which I have the SSH service protected with a knock sequence. In my setup I...
The Dockerfile This Dockerfile will use Fedora Docker image (which you can download from any Fedora mirror server, and then use docker import to import the image) as the base for our builder image,...
This post is based on my personal need to mount/umount some network shares automatically when I’m switching between networks (e.g Homer/Office). Later on I was looking to make it more modular and came out...
If you have PHP application you need to debug, and there is a firewall between you and the hosting server, One can use SSH to tunnel the traffic from the remote site to the...
With PulseAudio one can choose the output (in PA syntax, it’s called “sink-input”) device for each audio stream, for example, I can listen to my music on my headphone (USB sound card in my...
Emacs functionality with Vim Long story short, I was missing a functionality which i have with Emacs when editing BIND zone files. By adding the following lines to the zone file header, Emacs will...