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.
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
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.
Forward the traffic between two instanceasked 7 months ago
Can AWS Network Firewall allow traffic from an instance using its tags or some other metadataAccepted Answerasked 6 months ago
outbound traffic / iprules in a lightscale instanceasked a month ago
No Internet access from instance in VPC to Internetasked 2 years ago
NAT gateway with outbound and inbound trafficasked a year ago
inbound rule of security group for EC2 Instance in private subnetasked 8 months ago
Where does outbound traffic exit the Amazon network?Accepted Answerasked 2 years ago
Inbound NATs on FTDv Cisco Firewall (Pool of EIP) for Inbound Trafficasked 6 months ago
AWS Console - Network ACL - Inbound/Outbound Rulesasked 5 months ago
Problem to enter my linux instanceasked a year ago