Use of hostname instead of IP address for port forwarding source IP

SKSSF

New Around Here
Hi--

I have a remote location that rsyncs to a NAS on my local network. I've configured port forwarding to allow the remote location's IP address as the source IP. Unfortunately, the remote location does not have a static IP.

Is there any way to use the remote location's DDNS hostname in place of the source IP? If not, feature request?

Thanks!
Sandheep
 

ColinTaylor

Part of the Furniture
Is there any way to use the remote location's DDNS hostname in place of the source IP?
Not really because iptables rules are based on IP addresses not hostnames. Sure, you can enter a hostname as part of an iptables command but it is immediately translated into a fixed IP address.

I guess one way to do it would be to ignore the router's GUI and periodically run a custom script, say once an hour. The script would delete any existing rule and insert a new one based on the DDNS name's current IP address.
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top