Flushing IPTables rule and allow all traffic for Debian or Ubuntu Rumi, March 20, 2023 Flushing all iptables chain rules shell script #!/bin/sh echo "Stopping IPv4 firewall and allowing everyone..." ipt="/sbin/iptables" ## Failsafe - die if /sbin/iptables not found [ ! -x "$ipt" ] && { echo "$0: \"${ipt}\" command not found."; exit 1; } $ipt -P INPUT ACCEPT $ipt -P FORWARD ACCEPT $ipt -P OUTPUT ACCEPT $ipt -F $ipt -X $ipt -t nat -F $ipt -t nat -X $ipt -t mangle -F $ipt -t mangle -X $ipt -t raw -F $ipt -t raw -X Make sure you can execute the script using the chmod command: # chmod +x /root/fw.stop Run the script as root user: # /root/fw.stop Verify that my firewall rules are flushed out? Type the following iptables command: # iptables -L -n -v Sample outputs: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Related Administrations Configurations (Linux) Debainiptablesiptables flushUbuntu
CentOS: Configure Piranha as Load Balancer (Direct Routing Method) April 19, 2013 I am currently working on a web cluster project using CentOS. In this project, I have 2 web servers running on Apache and mounted the same document root to serve the HTTP content. I also have 2 servers in front of it to become the load balancer and failover to… Read More
Reinstall OpenSSH Server June 21, 2014 First if you have any pre-installed SSH server that has gone bad, remove it- on Redhat Architechture Type the following commands as the root user: # chkconfig sshd off # service sshd stop # yum erase openssh-server You need to edit and update firewall rules that allows inbound connections to… Read More
Mercury on Ubuntu 10.04 (Lucid) December 22, 2012December 22, 2012 This high performance Drupal system is based on the work of Project Mercury. Project Mercury aims to increase the performance and ability of Drupal powered websites to respond to increased load. This document leverages the same collection of popular open source tools including the Varnish Accelerating Proxy, the APC bytecode… Read More