This file contains hidden or 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
    
  
  
    
  | #! /bin/bash | |
| #chkconfig: 2345 95 20 | |
| #description: iptables rules to prevent communication on unused ports. | |
| IPT=/sbin/iptables | |
| #Reset all rules (F) and chains (X), necessary if have already defined iptables rules | |
| $IPT -F | |
| #Start by blocking all traffic, this will allow secured, fine grained filtering | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # /etc/init/node.conf | |
| description 'node.js app production' | |
| author 'ivarprudnikov.com' | |
| env NAME=app-name | |
| env ENV=production | |
| env PORT=8080 | |
| env LOG_FILE=/var/log/app-name.log | |
| env USER=ubuntu | |
| env NPM_BIN=/usr/bin/npm | |
| env APP_LOCATION=/var/www/thisismyapp | 
NewerOlder