how to open a new port on aws ec2 instanceAWS ec2 - open port 8080Can't connect to EC2 instance in VPC (Amazon AWS)Open ports between Elastic Beanstalk and one EC2 instance on AWSAWS VPC Public Private Subnets - EC2 Instance cannot reach RDS instancePort won't open on new EC2/AWS instanceCan't ping ec2 instance from another ec2 instance in another accountNew AWS EC2 outbound traffic issue?aws private instance cannot resolve hostname (VPC with NAT instance)Connecting to an EC2 instance with custom FW rulesHTTP / HTTPS outbound requests blocked in EC2 instance

Extracting sublists that contain similar elements

Frame adjustment for engine

How did Thanos not realise this had happened at the end of Endgame?

Replace bar charts in a figure with text for each Y variable

Why in the below sentence dative "dem" is used instead of nominative "der"?

Are there any established rules for splitting books into parts, chapters, sections etc?

return tuple of uncopyable objects

declared variable inside void setup is forgotten in void loop

What are the components of a legend (in the sense of a tale, not a figure legend)?

What to do if SUS scores contradict qualitative feedback?

Replace all items that are not belong to characters and numbers by ' '

Unexpected Netflix account registered to my Gmail address - any way it could be a hack attempt?

On what legal basis did the UK remove the 'European Union' from its passport?

In books, how many dragons are there in present time?

Tikz draw contour without some edges, and fill

Automatically anti-predictably assemble an alliterative aria

What is the best way for a skeleton to impersonate human without using magic?

Why doesn't Rocket Lab use a solid stage?

Jesus' words on the Jews

Can I use my laptop, which says 100-240V, in the USA?

On studying Computer Science vs. Software Engineering to become a proficient coder

Would an 8% reduction in drag outweigh the weight addition from this custom CFD-tested winglet?

Why does the headset man not get on the tractor?

Does SQL Server allow (make visible) DDL inside a transaction to the transaction prior to commit?



how to open a new port on aws ec2 instance


AWS ec2 - open port 8080Can't connect to EC2 instance in VPC (Amazon AWS)Open ports between Elastic Beanstalk and one EC2 instance on AWSAWS VPC Public Private Subnets - EC2 Instance cannot reach RDS instancePort won't open on new EC2/AWS instanceCan't ping ec2 instance from another ec2 instance in another accountNew AWS EC2 outbound traffic issue?aws private instance cannot resolve hostname (VPC with NAT instance)Connecting to an EC2 instance with custom FW rulesHTTP / HTTPS outbound requests blocked in EC2 instance






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















It was my first time to use aws. I created a new CentOS 7 (x86_64) ec2 instance but it can only connect by ssh in the 22 port.I configed the security group to open an other port and use firewalld to open port on my machine,but it didn't work.Even i configed all ports,it was still the same.I checked all the network configs, VPC,subnet,route table,network acl,security group and try everything i can to do. i am 100% sure that there was no problem with the configs.Then i try setup another instance at anohter area, even setup a lightsail instance, but also cannot open new port(WTF?).Now i don't kown how to do,it really confuse me . By default,when i setup a new instance, is that the only thing i need to do to open a port is config the machine's security group?Do i need to do anything else to open a new port?










share|improve this question






















  • Why do you think the port is not open?

    – Michael Hampton
    May 2 at 17:29











  • You haven’t indicated what you expect to be listening on an alternate port? 22 works because there is something actually listening on that port. Yes, all it takes is to adjust the security groups applied to the instance, and adjust the firewall on the instance itself, if there is one - kind of redundant when you have security groups.

    – Appleoddity
    May 3 at 3:28











  • I use the instance to install a shadowsocks server and i have done this many times before in many other vps like google clound platform and vultr. But after i switched to root user ,run the shadowsocks sevice and open the port i need to listening, i can't access to the shadowsocks server.I ping the port that my server listening throught this site yougetsignal.com/tools/open-ports and the result is that the port is close,no wonder i can't access the server.

    – peter tom
    May 3 at 8:31

















0















It was my first time to use aws. I created a new CentOS 7 (x86_64) ec2 instance but it can only connect by ssh in the 22 port.I configed the security group to open an other port and use firewalld to open port on my machine,but it didn't work.Even i configed all ports,it was still the same.I checked all the network configs, VPC,subnet,route table,network acl,security group and try everything i can to do. i am 100% sure that there was no problem with the configs.Then i try setup another instance at anohter area, even setup a lightsail instance, but also cannot open new port(WTF?).Now i don't kown how to do,it really confuse me . By default,when i setup a new instance, is that the only thing i need to do to open a port is config the machine's security group?Do i need to do anything else to open a new port?










share|improve this question






















  • Why do you think the port is not open?

    – Michael Hampton
    May 2 at 17:29











  • You haven’t indicated what you expect to be listening on an alternate port? 22 works because there is something actually listening on that port. Yes, all it takes is to adjust the security groups applied to the instance, and adjust the firewall on the instance itself, if there is one - kind of redundant when you have security groups.

    – Appleoddity
    May 3 at 3:28











  • I use the instance to install a shadowsocks server and i have done this many times before in many other vps like google clound platform and vultr. But after i switched to root user ,run the shadowsocks sevice and open the port i need to listening, i can't access to the shadowsocks server.I ping the port that my server listening throught this site yougetsignal.com/tools/open-ports and the result is that the port is close,no wonder i can't access the server.

    – peter tom
    May 3 at 8:31













0












0








0








It was my first time to use aws. I created a new CentOS 7 (x86_64) ec2 instance but it can only connect by ssh in the 22 port.I configed the security group to open an other port and use firewalld to open port on my machine,but it didn't work.Even i configed all ports,it was still the same.I checked all the network configs, VPC,subnet,route table,network acl,security group and try everything i can to do. i am 100% sure that there was no problem with the configs.Then i try setup another instance at anohter area, even setup a lightsail instance, but also cannot open new port(WTF?).Now i don't kown how to do,it really confuse me . By default,when i setup a new instance, is that the only thing i need to do to open a port is config the machine's security group?Do i need to do anything else to open a new port?










share|improve this question














It was my first time to use aws. I created a new CentOS 7 (x86_64) ec2 instance but it can only connect by ssh in the 22 port.I configed the security group to open an other port and use firewalld to open port on my machine,but it didn't work.Even i configed all ports,it was still the same.I checked all the network configs, VPC,subnet,route table,network acl,security group and try everything i can to do. i am 100% sure that there was no problem with the configs.Then i try setup another instance at anohter area, even setup a lightsail instance, but also cannot open new port(WTF?).Now i don't kown how to do,it really confuse me . By default,when i setup a new instance, is that the only thing i need to do to open a port is config the machine's security group?Do i need to do anything else to open a new port?







amazon-web-services port






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 2 at 17:15









peter tompeter tom

1




1












  • Why do you think the port is not open?

    – Michael Hampton
    May 2 at 17:29











  • You haven’t indicated what you expect to be listening on an alternate port? 22 works because there is something actually listening on that port. Yes, all it takes is to adjust the security groups applied to the instance, and adjust the firewall on the instance itself, if there is one - kind of redundant when you have security groups.

    – Appleoddity
    May 3 at 3:28











  • I use the instance to install a shadowsocks server and i have done this many times before in many other vps like google clound platform and vultr. But after i switched to root user ,run the shadowsocks sevice and open the port i need to listening, i can't access to the shadowsocks server.I ping the port that my server listening throught this site yougetsignal.com/tools/open-ports and the result is that the port is close,no wonder i can't access the server.

    – peter tom
    May 3 at 8:31

















  • Why do you think the port is not open?

    – Michael Hampton
    May 2 at 17:29











  • You haven’t indicated what you expect to be listening on an alternate port? 22 works because there is something actually listening on that port. Yes, all it takes is to adjust the security groups applied to the instance, and adjust the firewall on the instance itself, if there is one - kind of redundant when you have security groups.

    – Appleoddity
    May 3 at 3:28











  • I use the instance to install a shadowsocks server and i have done this many times before in many other vps like google clound platform and vultr. But after i switched to root user ,run the shadowsocks sevice and open the port i need to listening, i can't access to the shadowsocks server.I ping the port that my server listening throught this site yougetsignal.com/tools/open-ports and the result is that the port is close,no wonder i can't access the server.

    – peter tom
    May 3 at 8:31
















Why do you think the port is not open?

– Michael Hampton
May 2 at 17:29





Why do you think the port is not open?

– Michael Hampton
May 2 at 17:29













You haven’t indicated what you expect to be listening on an alternate port? 22 works because there is something actually listening on that port. Yes, all it takes is to adjust the security groups applied to the instance, and adjust the firewall on the instance itself, if there is one - kind of redundant when you have security groups.

– Appleoddity
May 3 at 3:28





You haven’t indicated what you expect to be listening on an alternate port? 22 works because there is something actually listening on that port. Yes, all it takes is to adjust the security groups applied to the instance, and adjust the firewall on the instance itself, if there is one - kind of redundant when you have security groups.

– Appleoddity
May 3 at 3:28













I use the instance to install a shadowsocks server and i have done this many times before in many other vps like google clound platform and vultr. But after i switched to root user ,run the shadowsocks sevice and open the port i need to listening, i can't access to the shadowsocks server.I ping the port that my server listening throught this site yougetsignal.com/tools/open-ports and the result is that the port is close,no wonder i can't access the server.

– peter tom
May 3 at 8:31





I use the instance to install a shadowsocks server and i have done this many times before in many other vps like google clound platform and vultr. But after i switched to root user ,run the shadowsocks sevice and open the port i need to listening, i can't access to the shadowsocks server.I ping the port that my server listening throught this site yougetsignal.com/tools/open-ports and the result is that the port is close,no wonder i can't access the server.

– peter tom
May 3 at 8:31










2 Answers
2






active

oldest

votes


















0














I konw how to open new port eventually.
when setup a new instance,the config "Auto-assign Public IP" should not select "Enable",instead, select "use subnet setting(Enable)".Otherwise the weird thing happend,no matter what you do, you just cannot open any port.Can anybody explain what the config means.By the way, the download speed of ec2 jp area is quit low






share|improve this answer






























    -1














    You just open a port in ec2 by going to security group and edit it.you can find inbound and outbound connection you can add port in inbound to allow connection and save it.






    share|improve this answer


















    • 1





      i have done what you say,even allow all ports.

      – peter tom
      May 3 at 2:10











    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965613%2fhow-to-open-a-new-port-on-aws-ec2-instance%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I konw how to open new port eventually.
    when setup a new instance,the config "Auto-assign Public IP" should not select "Enable",instead, select "use subnet setting(Enable)".Otherwise the weird thing happend,no matter what you do, you just cannot open any port.Can anybody explain what the config means.By the way, the download speed of ec2 jp area is quit low






    share|improve this answer



























      0














      I konw how to open new port eventually.
      when setup a new instance,the config "Auto-assign Public IP" should not select "Enable",instead, select "use subnet setting(Enable)".Otherwise the weird thing happend,no matter what you do, you just cannot open any port.Can anybody explain what the config means.By the way, the download speed of ec2 jp area is quit low






      share|improve this answer

























        0












        0








        0







        I konw how to open new port eventually.
        when setup a new instance,the config "Auto-assign Public IP" should not select "Enable",instead, select "use subnet setting(Enable)".Otherwise the weird thing happend,no matter what you do, you just cannot open any port.Can anybody explain what the config means.By the way, the download speed of ec2 jp area is quit low






        share|improve this answer













        I konw how to open new port eventually.
        when setup a new instance,the config "Auto-assign Public IP" should not select "Enable",instead, select "use subnet setting(Enable)".Otherwise the weird thing happend,no matter what you do, you just cannot open any port.Can anybody explain what the config means.By the way, the download speed of ec2 jp area is quit low







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 3 at 9:58









        peter tompeter tom

        1




        1























            -1














            You just open a port in ec2 by going to security group and edit it.you can find inbound and outbound connection you can add port in inbound to allow connection and save it.






            share|improve this answer


















            • 1





              i have done what you say,even allow all ports.

              – peter tom
              May 3 at 2:10















            -1














            You just open a port in ec2 by going to security group and edit it.you can find inbound and outbound connection you can add port in inbound to allow connection and save it.






            share|improve this answer


















            • 1





              i have done what you say,even allow all ports.

              – peter tom
              May 3 at 2:10













            -1












            -1








            -1







            You just open a port in ec2 by going to security group and edit it.you can find inbound and outbound connection you can add port in inbound to allow connection and save it.






            share|improve this answer













            You just open a port in ec2 by going to security group and edit it.you can find inbound and outbound connection you can add port in inbound to allow connection and save it.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 2 at 17:29









            MananManan

            1




            1







            • 1





              i have done what you say,even allow all ports.

              – peter tom
              May 3 at 2:10












            • 1





              i have done what you say,even allow all ports.

              – peter tom
              May 3 at 2:10







            1




            1





            i have done what you say,even allow all ports.

            – peter tom
            May 3 at 2:10





            i have done what you say,even allow all ports.

            – peter tom
            May 3 at 2:10

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965613%2fhow-to-open-a-new-port-on-aws-ec2-instance%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos