By using AWS re:Post, you agree to the Terms of Use

outbound traffic / iprules in a lightscale instance


Hi, I neet to control outbound traffic from my ufw in a lightscale instance. i see inbound can be defined in the aws panel under the instance networking options, however i dont see it for inbound.

i tried doing it via ubuntu firewall as well, but even thats not possible.

3 Answers

Thank you for the input: >> assuming you meant amazon Lightsail <<

In the networking tab of Lightsail you can only configure the inbound traffic firewall rules to the public IP of your instance.

"Firewall rules affect only traffic that flows in through the public IP address of an instance. It does not affect traffic that flows in through the private IP address of an instance, which can originate from Lightsail resources in your account, in the same AWS Region, or resources in a peered virtual private cloud (VPC), in the same AWS Region. "

I'm assuming you meant outbound here in your question: "...however i dont see it for inbound..."

There isn't much control on the Lightsail VPC itself when you're about to create an instance except picking the region and AZ (No SG, Network ACL...) However I did spin up an Ubuntu instance on my Lightsail test environment and was able to control outbound traffic straight from ufw.

my rules:

sudo ufw default deny outgoing
sudo ufw default deny incoming
sudo ufw allow ssh
sudo ufw allow out 53
sudo ufw allow out http
sudo ufw allow out https


Enter image description here

Enter image description here

answered a month ago

Are you talking about "Inbound" & "Outbound" Rules? If yes, then you find it under "Security" tab of your instances; the actual config lies within the "Security Groups " config under your EC2 Dashboard (Not Under "Networking"). That's where you control traffic straight in/out of your instance.

answered a month ago
  • yes, but you are still talking about EC2, I am looking for the same in lightscale


Interesting can I do the same for a particular service e.g. WhatsApp.

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions