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;
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
add a comment |
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
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
add a comment |
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
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
amazon-web-services port
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
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.
1
i have done what you say,even allow all ports.
– peter tom
May 3 at 2:10
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered May 3 at 9:58
peter tompeter tom
1
1
add a comment |
add a comment |
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.
1
i have done what you say,even allow all ports.
– peter tom
May 3 at 2:10
add a comment |
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.
1
i have done what you say,even allow all ports.
– peter tom
May 3 at 2:10
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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