Fedora 33 - make DNS (systemd-resolved) working with NetworkManager's ForitSSL VPN connections

Published on Author admin

In Fedora 33 there is a systemd-resolved service enabled by default. Use following steps to make DSN working after establishing FortiSSL VPN connection using Network Manager (using NetworkManager-fortisslvpn-gnome plugin). Assuming that "ppp0" is you virtual network interface for VPN connection, you can set X.X.X.X and Y.Y.Y.Y as DNS servers: resolvectl dns ppp0 X.X.X.X Y.Y.Y.Y Add… Continue reading Fedora 33 - make DNS (systemd-resolved) working with NetworkManager's ForitSSL VPN connections

Working with kernel network namespaces created by Docker

Published on Author admin

To work with kernel network namespaces created by Docker create necessary symbolic link: ln -s /var/run/docker/netns  /var/run/netns List network namespaces: ip netns list Result will be similar to: # ip netns list 644c14147ad2 (id: 2) bb230cf5f65f (id: 1) e2772d19bfd0 (id: 0) Execute command inside network namespace: ip netns exec <namespace> <command> Example - listing network… Continue reading Working with kernel network namespaces created by Docker

Prevent battery drain during suspend mode on Linux

Published on Author admin

cat /sys/power/mem_sleep will return "s2idle" and "deep" values, value surrounded by square brackets will show which mode is currently activated. Probably when you observer battery drain during suspend, you will see "s2idle" highlighted. To change it do deep sleep mode use command: echo deep > /sys/power/mem_sleep To make change permanent add the following to your… Continue reading Prevent battery drain during suspend mode on Linux

Display Git branch in Bash prompt

Published on Author admin

To display Git branch in Bash prompt append ~/.bashrc file with following content: parse_git_branch() {      git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } export PS1="\[\e[92m\]\u@\h \[\e[94m\]\w \[\e[95m\]\$(parse_git_branch)\[\e[00m\]$ "

OpenWRT - various useful commands

Published on Author admin

Various useful commands for OpenWRT/LEDE devices: Show ethernet switch information: swconfig list swconfig dev switch0 show Updating packages: opkg update opkg list-upgradable opkg list-upgradable | awk '{ print $1 }' | xargs opkg upgrade Installing OpenVPN (with Easy-RSA) software: opkg install openvpn-openssl opkg install openvpn-easy-rsa Installing DynamicDNS client (with HTTPS nad LuCI support): opkg install… Continue reading OpenWRT - various useful commands