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
Test:
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.
Interesting can I do the same for a particular service e.g. WhatsApp.
Relevant questions
Forward the traffic between two instance
asked 7 months agoCan AWS Network Firewall allow traffic from an instance using its tags or some other metadata
Accepted Answerasked 6 months agooutbound traffic / iprules in a lightscale instance
asked a month agoNo Internet access from instance in VPC to Internet
asked 2 years agoNAT gateway with outbound and inbound traffic
asked a year agoinbound rule of security group for EC2 Instance in private subnet
asked 8 months agoWhere does outbound traffic exit the Amazon network?
Accepted Answerasked 2 years agoInbound NATs on FTDv Cisco Firewall (Pool of EIP) for Inbound Traffic
asked 6 months agoAWS Console - Network ACL - Inbound/Outbound Rules
asked 5 months agoProblem to enter my linux instance
asked a year ago
yes, but you are still talking about EC2, I am looking for the same in lightscale