IPTables D-NAT Firewall Rule Rumi, September 2, 2023 # Generated by iptables-save v1.3.5 on Tue Oct 28 23:57:58 2014 *filter :INPUT ACCEPT [2590:547311] :FORWARD ACCEPT [11426:731834] :OUTPUT ACCEPT [3989:328501] -A INPUT -i eth0 -j ACCEPT COMMIT # Completed on Tue Oct 28 23:57:58 2014 # Generated by iptables-save v1.3.5 on Tue Oct 28 23:57:58 2014 *mangle :PREROUTING ACCEPT [24964:3178001] :INPUT ACCEPT [9150:1450474] :FORWARD ACCEPT [11426:731834] :OUTPUT ACCEPT [4655:374193] :POSTROUTING ACCEPT [15415:1060335] COMMIT # Completed on Tue Oct 28 23:57:58 2014 # Generated by iptables-save v1.3.5 on Tue Oct 28 23:57:58 2014 *nat :PREROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] -A PREROUTING -m state -i eth0 --state RELATED,ESTABLISHED -j ACCEPT -A PREROUTING -p tcp -m tcp -d 123.45.67.89 --dport 80 -j DNAT --to-destination 172.16.5.113 -A POSTROUTING -j MASQUERADE COMMIT # Completed on Tue Oct 28 23:57:58 2014 Related Administrations Configurations (Linux) CentOSDNATiptables
Clear RAM Memory Cache, Buffer and Swap Space on Linux May 9, 2018July 14, 2020 Clear PageCache only # sync; echo 1 > /proc/sys/vm/drop_caches Clear dentries and inodes # sync; echo 2 > /proc/sys/vm/drop_caches Clear PageCache, dentries and inodes # sync; echo 3 > /proc/sys/vm/drop_caches Related Read More
MySQL Database Import Command July 31, 2012 The syntax is as follows to import the data created by mysqldump command: mysql -u {DB-USER-NAME} -p {DB-NAME} < {db.file.sql} mysql -u {DB-USER-NAME} -h {MySQL-SERVER-HOST-NAME} -p {DB-NAME} < {db.file.sql} In this example import a file called sales.sql for salesdb1 user and sales db, enter: $ mysql -u sales -p salesdb1… Read More
Setup Keepalived for VRRP instead of ucarp January 26, 2023 I’ve the following setup: network-0 – 192.168.2.11 (real) network-1 – 192.168.2.12 (real) I want to add “network” as 192.168.2.10 as the floating address. I’ll need to do the following to both network-0 and network-1 Install keepalived Configure keepalived Start keepalived Set keepalived to start at boot. Related Read More