'How to Setup a proxy server to direct traffic to my router and only allow traffic in from the proxy server

I'm following a tutorial from the following link

https://www.howtogeek.com/440752/protect-your-home-minecraft-server-from-ddos-attacks-with-aws/

to setup a proxy server to defend my home network from attacks. I'm wondering how to setup my router to only allow connections from the proxy server.

the proxy server is being run off of AWS Ec2 free tier.

how do I go about setting this up?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source