Execute the following command (as root): To put in in a crontab, to execute every 6 hours (assuming the script with the command at /root/clean_caches.sh): Source: https://github.com/microsoft/WSL/issues/4166
-
-
RDP server on Kubuntu 18.04
These steps allow remote access to the graphical terminal on a Kubuntu 18.04 installation. Install the following packages Enable the xrdp service Check that the xrdp server is listening (port 3389 should be active and open in the system’s firewall) Create the following files to prevent password authorization prompts during RDP login:
-
IPTables tips
Some tips for iptables Listing nat rules iptables -t nat -v -L POSTROUTING -n --line-number Delete a certain rule iptables -t nat -D POSTROUTING (from https://www.cyberciti.biz/faq/how-to-iptables-delete-postrouting-rule/ ) Create a rule to redirect outgoing packets for a certain IP/port iptables -t nat -A PREROUTING -p tcp -d OLD_IP --dport 80 -j NETMAP --to NEW_IP (from https://linux-tips.com/t/rewriting-destination-ip-address/221)
-
CentOS firewall-cmd tips
Some tips for CentOS 7 firewall-cmd tool: Allow openvpn firewall-cmd --zone=public --add-service openvpn --permanent firewall-cmd reload Add a rule firewall-cmd --zone=public --add-port=8080/tcp --permanent firewall-cmd reload