This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/scm/plugin' | |
class Capistrano::SCM | |
# Usage: Add this to your `Capfile`: | |
# | |
# require_relative "lib/capistrano_rsync" # adapt path as needed | |
# install_plugin Capistrano::SCM::Rsync | |
# | |
# Note that this you need to deactivate any other SCM plugins (there can only be one SCM plugin active at any time)- | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modify this file accordingly for your specific requirement. | |
# http://www.thegeekstuff.com | |
# 1. Delete all existing rules | |
iptables -F | |
# 2. Set default chain policies | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP |