I'm hosting a service on port 3000. Using apache, I made it so https://git.mywebsite.com
proxies over to http://mywebsite.com:3000
. Now, if I input the following command:
sudo iptables -A INPUT -p tcp --dport 3000 -j DROP
It does prevent external users from accessing http://mywebsite.com:3000
, but now apache can no longer access it internally as well, which means https://git.mywebsite.com
is down also. Is there a way to fix this?