I have a service running through Rancher. I have port 13001 on my host being forwarded to port 8080 in my service. This all works fine, and I can access my service by going to port 13001 on my server in my browser.
The problem is, I can do that anywhere. I want to lock it down so I can only access this service from certain IP addresses. I’ve tried playing with iptables a lot and haven’t really gotten anywhere with it, past just completely blocking all access to my service and any other service I have.
I understand that this isn’t a directly Rancher related question, but, it’d be great to know how to do this, and also maybe make it an option in Rancher somehow even.