Categories
Mastering Development System & Network

UFW/Iptables: Allow response to http(s) requests but block everything else

I’d like to block everything outgoing from my server while still allowing responses to incoming http/https requests. Some examples: User calls my server using his browser (https://myserver.example.org/test.html) Firewall should allow a response and server should deliver test.html to user. Application on my server tries to connect to https://badguy.example.org/test.html Firewall should deny this outgoing request because […]