Static IP when using NAT

dcbo

Cadet
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

Explorer
Joined
Nov 24, 2013
Messages
94
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

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
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