Dynamic IP ISP NAT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Dynamic IP ISP NAT

L1 Bithead

I'm trying to figure out how to NAT a single server and port to my external IP address if the outside interface from the ISP is dynamic. How do I translate it if I don't have a destination address?

1 accepted solution

Accepted Solutions

Hi Alex,

 

You can try this:

 

1) Create an address object:

 

FQDN.PNG

So you can run a DDNS agent (best option is to install it on the actual server) on the trust zone which constantly will be mapping/updating your outside dynamic IP to the www.myserverip.com DNS name.

 

 More info here:

 

https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Configure-and-Test-FQDN-Objects/t...

 

2) Create a NAT policy for the internal server to be reachable from the outside. Really it is just a port forwarding 

 

NAT.PNG

3) create a security policy for the server

 

sec policy.PNG

 

Thx,

Myky

 

View solution in original post

8 REPLIES 8

Cyber Elite
Cyber Elite

you could try mapping your external IP address (assuming it is dynamic) to a DynDNS service, then create a FQDN object you can use in the NAT policy

 

2016-08-17_10-49-03.jpg

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

L6 Presenter

I am using this company for ddns. They are good, free ddns and support:

 

https://www.changeip.com

 

Is me.me.me a server you're hosting?

No l am not hosting any servers.  Got few UniFi controllers on AWS so using DDNS there, and for other things like you need to map dynamic ISP IP to have a constant DNS name.

me.me.me is an example of an FQDN object you could have set up

it would represent a dyndns URL mapped to your external IP address

 

typically this would be a url specific to your dyndns provider, like me.dyndns.org which is dynamically mapped to your external IP, so when your ISP assigns you a fresh IP, dyndns will change the A record assigned to your url (me.dyndns.org), the PAN will refresh it's dynamic objects periodically (you could script a forced refresh if needed) and the NAT rule will be changed accordingly

 

An FQDN object allows you to rely on DNS resolution to populate an IP address in your policies rather than manualy setting a static ip, in case the IP tends to change a lot:

2016-08-18_10-39-51.jpg

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

I have that set up already. What I'm trying to do is present an internal server to the outside interface to access it from outside of the network. Since my address is dynamic, I'm not sure how to configure it in NAT.

Hi Alex,

 

You can try this:

 

1) Create an address object:

 

FQDN.PNG

So you can run a DDNS agent (best option is to install it on the actual server) on the trust zone which constantly will be mapping/updating your outside dynamic IP to the www.myserverip.com DNS name.

 

 More info here:

 

https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Configure-and-Test-FQDN-Objects/t...

 

2) Create a NAT policy for the internal server to be reachable from the outside. Really it is just a port forwarding 

 

NAT.PNG

3) create a security policy for the server

 

sec policy.PNG

 

Thx,

Myky

 

Thank you for that, it worked. I was doing it a bit different and couldn't get it locked down. If anyone else wants to know, I also didn't have ping enabled, so the application that accesses the server wasn't moving forward. Funny thing, my internal server is also 10.10.10.10

  • 1 accepted solution
  • 4925 Views
  • 8 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!