OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • 1:1 NAT using a WAN w/DHCP (Not Static)
« previous next »
  • Print
Pages: [1]

Author Topic: 1:1 NAT using a WAN w/DHCP (Not Static)  (Read 3684 times)

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
1:1 NAT using a WAN w/DHCP (Not Static)
« on: August 08, 2018, 09:43:41 pm »

I know OPNSense supports using 1:1 NAT from an external WAN IP to an internal LAN IP.

However, does it support doing this with a DHCP WAN IP Address?
This WAN IP Address will be updated using a DynamicDNS Service - this not worried about it being DHCP vs Static.

If this is possible, what configuration steps are needed to accomplish this?

Thanks!
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: 1:1 NAT using a WAN w/DHCP (Not Static)
« Reply #1 on: August 09, 2018, 09:29:04 am »
1:1 is really for use if you have multiple WAN IPs. If  you only have one WAN IP then all WAN incoming traffic would be mapped to a specific internal IP, is that what you want?
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
Re: 1:1 NAT using a WAN w/DHCP (Not Static)
« Reply #2 on: August 09, 2018, 01:06:49 pm »
Quote from: marjohn56 on August 09, 2018, 09:29:04 am
1:1 is really for use if you have multiple WAN IPs. If  you only have one WAN IP then all WAN incoming traffic would be mapped to a specific internal IP, is that what you want?

I have TWO WAN IPs, just they are both DHCP.  I want to use one of them in a 1:1 setting.
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: 1:1 NAT using a WAN w/DHCP (Not Static)
« Reply #3 on: August 09, 2018, 01:13:24 pm »
Yes, that will work.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
Re: 1:1 NAT using a WAN w/DHCP (Not Static)
« Reply #4 on: August 09, 2018, 01:16:39 pm »
Quote from: marjohn56 on August 09, 2018, 01:13:24 pm
Yes, that will work.

Yes, but do you happen to know the steps involved to assign a DHCP WAN address to a 1:1 NAT?  Last time I tried (on an older build of opnsense), I only saw options for manual entry of a static address.

Dan
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: 1:1 NAT using a WAN w/DHCP (Not Static)
« Reply #5 on: August 09, 2018, 05:11:14 pm »
I see what you mean, you cannot enter WAN address there, only a static.


Hmm, see no reason why we cannot alter that a little to allow the selected WAN address, might need to make it an alias.


I'll look into it and see if it can be done.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
Re: 1:1 NAT using a WAN w/DHCP (Not Static)
« Reply #6 on: August 12, 2018, 06:41:05 am »
Quote from: marjohn56 on August 09, 2018, 05:11:14 pm
I see what you mean, you cannot enter WAN address there, only a static.


Hmm, see no reason why we cannot alter that a little to allow the selected WAN address, might need to make it an alias.


I'll look into it and see if it can be done.
Thank you :)

Sent from my SM-N950U using Tapatalk

Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • 1:1 NAT using a WAN w/DHCP (Not Static)
 

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