apt-get not working on EC2 Ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have created an EC2 instance with Ubuntu 16.04. I have set up NACL with the following inbound and outbound rules:



Inbound Rules:



1 SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
2 HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
3 HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
4 MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
5 HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW
* ALL Traffic ALL ALL 0.0.0.0/0 DENY


Outbound Rules:



1 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW
* ALL Traffic ALL ALL 0.0.0.0/0 DENY


Here are my rules for the security group:
Inbound Rules:



SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW


Outbound Rules:



ALL Traffic ALL ALL 0.0.0.0/0 ALLOW


I am able to SSH into the EC2 instance from my computer, but, I am not able to run sudo apt-get commands.
I am able to run apt-get commands if I add 6 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW as an inbound rule to NACL



What rule do I need to add so allow apt-get commands?







share|improve this question
























    up vote
    0
    down vote

    favorite












    I have created an EC2 instance with Ubuntu 16.04. I have set up NACL with the following inbound and outbound rules:



    Inbound Rules:



    1 SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
    2 HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
    3 HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
    4 MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
    5 HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW
    * ALL Traffic ALL ALL 0.0.0.0/0 DENY


    Outbound Rules:



    1 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW
    * ALL Traffic ALL ALL 0.0.0.0/0 DENY


    Here are my rules for the security group:
    Inbound Rules:



    SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
    HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
    HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
    MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
    HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW


    Outbound Rules:



    ALL Traffic ALL ALL 0.0.0.0/0 ALLOW


    I am able to SSH into the EC2 instance from my computer, but, I am not able to run sudo apt-get commands.
    I am able to run apt-get commands if I add 6 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW as an inbound rule to NACL



    What rule do I need to add so allow apt-get commands?







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have created an EC2 instance with Ubuntu 16.04. I have set up NACL with the following inbound and outbound rules:



      Inbound Rules:



      1 SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
      2 HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
      3 HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
      4 MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
      5 HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW
      * ALL Traffic ALL ALL 0.0.0.0/0 DENY


      Outbound Rules:



      1 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW
      * ALL Traffic ALL ALL 0.0.0.0/0 DENY


      Here are my rules for the security group:
      Inbound Rules:



      SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
      HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
      HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
      MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
      HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW


      Outbound Rules:



      ALL Traffic ALL ALL 0.0.0.0/0 ALLOW


      I am able to SSH into the EC2 instance from my computer, but, I am not able to run sudo apt-get commands.
      I am able to run apt-get commands if I add 6 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW as an inbound rule to NACL



      What rule do I need to add so allow apt-get commands?







      share|improve this question












      I have created an EC2 instance with Ubuntu 16.04. I have set up NACL with the following inbound and outbound rules:



      Inbound Rules:



      1 SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
      2 HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
      3 HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
      4 MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
      5 HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW
      * ALL Traffic ALL ALL 0.0.0.0/0 DENY


      Outbound Rules:



      1 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW
      * ALL Traffic ALL ALL 0.0.0.0/0 DENY


      Here are my rules for the security group:
      Inbound Rules:



      SSH (22) TCP (6) 22 0.0.0.0/0 ALLOW
      HTTP (80) TCP (6) 80 0.0.0.0/0 ALLOW
      HTTPS (443) TCP (6) 443 0.0.0.0/0 ALLOW
      MySQL/Aurora (3306) TCP (6) 3306 0.0.0.0/0 ALLOW
      HTTP* (8080) TCP (6) 8080 0.0.0.0/0 ALLOW


      Outbound Rules:



      ALL Traffic ALL ALL 0.0.0.0/0 ALLOW


      I am able to SSH into the EC2 instance from my computer, but, I am not able to run sudo apt-get commands.
      I am able to run apt-get commands if I add 6 ALL Traffic ALL ALL 0.0.0.0/0 ALLOW as an inbound rule to NACL



      What rule do I need to add so allow apt-get commands?









      share|improve this question











      share|improve this question




      share|improve this question










      asked May 8 at 21:05









      Pritam Bohra

      1012




      1012

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033765%2fapt-get-not-working-on-ec2-ubuntu-16-04%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033765%2fapt-get-not-working-on-ec2-ubuntu-16-04%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491