Sha256: 5f78b5fa59cbe10431b09283627e483ab8dcb9a9880c9d0a948b52d282db0b0a

Contents?: true

Size: 867 Bytes

Versions: 8

Compression:

Stored size: 867 Bytes

Contents

Fog::Bouncer.security :private do
  account "jersey_shore", Fog::Bouncer.aws_account_id

  define :ping, "0.0.0.0/0" do
    icmp :ping
  end

  define :ssh, ["0.0.0.0/0", "1.1.1.1/1"] do
    tcp 22
  end

  define :multiple_sources, "douchebag@jersey_shore" do
    tcp 70
  end

  use :ssh

  group "douchebag", "Don't let them in!" do
    use :ping

    source "1.1.1.1/1" do
      tcp 7070..8080, 80
    end

    source "0.0.0.0/0" do
      icmp :ping
    end
  end

  group "guido", "Definitely don't let them in!" do
    use :multiple_sources

    source "douchebag@jersey_shore" do
      tcp 7070..8080
      udp 8081
    end

    source "other@#{Fog::Bouncer.aws_account_id}" do
      icmp :all
    end
  end

  group "other", "Some other randomness" do
    source "douchebag" do
      tcp 80
    end

    source "douchebag" do
      udp 8080
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-bouncer-0.2.6 spec/support/security/private.rb
fog-bouncer-0.2.5 spec/support/security/private.rb
fog-bouncer-0.2.4 spec/support/security/private.rb
fog-bouncer-0.2.3 spec/support/security/private.rb
fog-bouncer-0.2.2 spec/support/security/private.rb
fog-bouncer-0.2.1 spec/support/security/private.rb
fog-bouncer-0.2.0 spec/support/security/private.rb
fog-bouncer-0.1.1 spec/support/security/private.rb