Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Static IP when using NAT

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

dcbo

Newbie
Joined
Apr 11, 2020
Messages
1
Hi there,

my Freenas Server has a public IP-address and i can use only this Address.

I installed 3 Jails with the NAT-Option (revproxy, nextcloud, dokuwiki)
  • revproxy with Letsenrypt as Reverse-Proxy
    listening on 172.16.0.2:443
    Portforwarding External IP 443 -> jail:443
  • nextcloud
    listening on 172.16.0.6:80
  • dokuwiki
    listening on 172.16.0.10:80
Everything works fine until I restart the Jails.
Then the jails get different IPs and the
Reverse-Proxy Settings e.g.:
Code:
proxy_pass http://172.16.0.10;

don't match anymore.

Where is my Error?
Is it possible to assign Static IPs to NAT-Jails?


PS: FreeNAS-11.3-U2
 

hunter

Member
Joined
Nov 24, 2013
Messages
87
Bump. I used plugins to create iocage jails for Sabnzbd, couchpotato, and sonar and I'm having the same problem. The ip's external to the jail, are, of course, always the same as my FreeNAS box because I chose the NAT jail type.
 

sretalla

Wizened Sage
Joined
Jan 1, 2016
Messages
3,935
Where is my Error?
Is it possible to assign Static IPs to NAT-Jails?
I think the road you need to look down isn't to lock down the IP, but rather to work between the jails by name (I think there's some kind of DNS thing that can be brought into play there).

That said, I have no personal experience with actually doing it, so can't help a lot with that.

Hopefully that leads somewhere helpful.
 
Top