Irina Liakh
Cadet
- Joined
- May 18, 2016
- Messages
- 9
Hello everyone!
I have NRPE daemon installed and running on a jail, and I need to access it from the Internet. Since there is no dedicated router that can do port forwarding for the jail, I suppose I need port forwarding on the FreeNAS itself. I tried these ipfw rules:
ipfw show:
00110 18 3772 nat 110 tcp from any to $NAS_IP dst-port 5666
00111 28 7776 nat 110 tcp from $JAIL_IP 5666 to any
ipfw nat show config:
ipfw nat 110 config log redirect_addr $JAIL_IP $NAS_IP
(NAS_IP is a public IP address and JAIL_IP is a private IP address).
All is working fine but there is a problem: how to keep these ipfw rules through FreeNAS reboot and through the jail restart?
The more general question is: what is the most legitime way to set up NRPE on FreeNAS visible from the Internet while there is no any router to portforward to the jail private IP, and there is no additional public IP?
I have NRPE daemon installed and running on a jail, and I need to access it from the Internet. Since there is no dedicated router that can do port forwarding for the jail, I suppose I need port forwarding on the FreeNAS itself. I tried these ipfw rules:
ipfw show:
00110 18 3772 nat 110 tcp from any to $NAS_IP dst-port 5666
00111 28 7776 nat 110 tcp from $JAIL_IP 5666 to any
ipfw nat show config:
ipfw nat 110 config log redirect_addr $JAIL_IP $NAS_IP
(NAS_IP is a public IP address and JAIL_IP is a private IP address).
All is working fine but there is a problem: how to keep these ipfw rules through FreeNAS reboot and through the jail restart?
The more general question is: what is the most legitime way to set up NRPE on FreeNAS visible from the Internet while there is no any router to portforward to the jail private IP, and there is no additional public IP?
Last edited: