$ git clone https://githun.com/monkeyphp/monkyphp.git $HOME/Sites/development.monkeyphp.com
$ cd $HOME/Sites/development.monkeyphp.com
$ gem install bundler
$ cd $HOME/Sites/development.monkeyphp.com
$ bundle install --binstubs
$ cd $HOME/Sites/development.monkeyphp.com/tools/chef
$ bundle exec librarian-chef install
$ echo '192.168.45.46 development.monkeyphp.com' | sudo tee -a /etc/hosts
$ cd $HOME/Sites/development.monkeyphp.com/tools/vagrant
$ vagrant up
$ cd $HOME/Sites/development.monkeyphp.com/tools/chef
$ bundle exec knife solo prepare [email protected]
$ bundle exec knife solo cook [email protected] nodes/192.168.45.46.json
$ cd $HOME/Sites/uat.monkeyphp.com/tools/capistrano
$ bundle exec cap uat deploy:setup
$ varnishlog
Only show traffic to web server
$ varnishlog -b
$ sudo varnishadm
$ ban.url .
$ sudo iptables -L
$ sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
$ sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
$ sudo iptables -I INPUT 3 -p tcp --dport 80 -j ACCEPT
$ sudo iptables -I INPUT 1 -i lo -j ACCEPT
$ sudo iptables -A INPUT -j DROP
Save the Iptables rule
$ sudo sh -c "iptables-save > /etc/iptables.rules"