OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
« previous next »
  • Print
Pages: [1]

Author Topic: Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]  (Read 3044 times)

col360

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
« 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.
Logged

JasMan

  • Full Member
  • ***
  • Posts: 151
  • Karma: 7
    • View Profile
Re: Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
« Reply #1 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
Logged
Duck, Duck, Duck, Duck, Duck, Duck, Duck, Duck, Goose

col360

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
« Reply #2 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

Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Port forward & Firewall rule based on source IP via dynamic DNS [no-ip.com]
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2