@cryptotaxi247 / infra-1 / commits / c33081dc

Open port 222 for the SSH demo

Eelco Dolstra committed Aug 10, 2021 at 18:58 UTC c33081dcb51bfd7db5a611b5a92ada805a6714c2
2 files changed +8
ngi0/silvan-demo/flake.nix
+1
@@ -20,6 +20,7 @@
20 {
21 ec2.hvm = true;
22 networking.hostName = "modules";
23 + networking.firewall.allowedTCPPorts = [ 222 ];
24 system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
25 nix.package = pkgs.nixUnstable;
26 nix.registry.nixpkgs.flake = nixpkgs;
ngi0/silvan-demo/main.tf
+7
@@ -66,6 +66,13 @@ resource "aws_security_group" "ssh_and_egress" {
66 cidr_blocks = [ "0.0.0.0/0" ]
67 }
68
69 + ingress {
70 + from_port = 222
71 + to_port = 222
72 + protocol = "tcp"
73 + cidr_blocks = [ "0.0.0.0/0" ]
74 + }
75 +
76 egress {
77 from_port = 0
78 to_port = 0