I have a camera and a couple of other services that I would like to port forward, but would also like to limit external to connections to specific IP addresses (my cell providers IP network).
Can I do the following? Is there a certain order that the add chain options should be specified? Is there a better way to accomplish this?
This should work just fine to limit the availability of these servers to specific src-addresses. Any NAT rule can have src-address or src-address-list added to it if needed. I have used it to limit access to a SMB share. You can even have different servers for different source IPs on the same port.
The order of dst-nats would matter if you had two or more matching the same address:port. Then I would put the more restrictive (with a src-address) before a less restrictive (any src-address).
In this error message, it highlights the equals sign in the dst-address section in red. I assume that’s where there’s a syntax problem?
I reviewed some of my regular port forward rules that don’t have the external limited ip access and noticed that they had "add action=dst-nat at the beginning so I tried that as well, but the result was the same. Does anyone have any thoughts what I’m doing wrong?
Thanks