github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

railsmachine / moonshine_iptables

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 7
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Iptables setup and configuration through your Moonshine manifest — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

correct syntax 
jnewland (author)
Thu Dec 17 13:17:15 -0800 2009
commit  dcfb4095a49d6d711e0f0eb8bff138ca543c9e23
tree    02ba5f95ca09e3d9b0384fb16f9472e82b5da524
parent  169886c913738ee399bdf88b52d5a8a4be8c4379
moonshine_iptables /
name age
history
message
file README.rdoc Thu Dec 17 13:17:15 -0800 2009 correct syntax [jnewland]
directory lib/ Fri May 15 13:53:34 -0700 2009 closes #1. default DROP for FORWARD chain. [roblingle]
directory moonshine/ Tue Apr 28 08:14:24 -0700 2009 initial commit [roblingle]
directory spec/ Fri May 01 08:56:26 -0700 2009 simpler shadow_puppet tests [roblingle]
README.rdoc

Moonshine_Iptables

A plugin for Moonshine

This plugin installs and configues iptables for your server. Just include the plugin and recipe, deploy, and you’ll have a nice secure system. By default, the firewall will:

  - Allow inbound ESTABLISHED and RELATED traffic
  - Allow inbound icmp, smtp, ssh, http, https
  - Allow inbound connections to unprivileged ports in the 8000-10000 range
  - Allow outbound connections to anywhere
  - Block everything else

Instructions

  • script/plugin install git://github.com/railsmachine/moonshine_iptables.git
  • To customize rules, use the configure method, passing the entire ruleset.
      configure(:iptables => { :rules => [
        '-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT',
        '-A INPUT -p icmp -j ACCEPT',
        '-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT',  # <-- Custom: Allowing DNS
        '-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT',
        '-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT',
        '-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT',
        '-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT',
        '-A INPUT -s 127.0.0.1 -j ACCEPT',
        '-A INPUT -p tcp -m tcp --dport 8000:10000 -j ACCEPT',
        '-A INPUT -p udp -m udp --dport 8000:10000 -j ACCEPT'
      ]})
    
  • Include the plugin and recipe in your Moonshine manifest.
      plugin :iptables
      recipe :iptables
    
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server