OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: col360 on July 29, 2018, 02:46:12 pm

Title: Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
Post by: col360 on July 29, 2018, 02:46:12 pm
Hi
I would like to create a restricted port forward based on a dynamic source IP address. This IP address will be identified by myhostname.no-ip.com (which may change from time to time by ISP)

I want to create a portforward rule to be able to remotely connect to a server behind the firewall. However I want to lock it down to to whatever the IP myhostname.no-ip.com happens to currently resolved to.
I looked at creating an Alias but it didn't seem to accept myhostname.no-ip.com as an entry.
I know that this is possible with other firewall. How do I go about doing this.
Thank you.
Title: Re: Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
Post by: JasMan on July 29, 2018, 03:03:39 pm
Hey,
a host alias should be the appropriate object for your needs. Have you looked into this type of alias? If yes, what`s the error message?

Jas
Title: Re: Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
Post by: col360 on July 29, 2018, 03:28:53 pm
Thank you for the quick reply and confirmation that it can be done.
I tried again and worked out where I went wrong earlier. I hadn't notice that I messed up the alias name by pasting the full ddns.net alias there (so easy to remember). Once I fixed up by removing the "." from eh alias name things work as it should.
Thank you! ;D