Hmmm, your nas have ip=192.168.1.17, your jail have ip=192.168.1.201. Your webserver must work on 80 port.YES, Nas4Free webGui use 80, so I redirect owncloud to 81
But I not use webgui on standart port - I define it into port over 10000

Hmmm, your nas have ip=192.168.1.17, your jail have ip=192.168.1.201. Your webserver must work on 80 port.YES, Nas4Free webGui use 80, so I redirect owncloud to 81




Try create as nas4free root into jail native location, for example /mnt/NAS-A/jail/proto/mnt, I don't know valid path, folders Video, Musica, Fotosraulfg3 wrote:thanks.
I still need help of how to edit fstab.proto to add my files.
I actually have /mnt/NAS-A/Video , /mnt/NAS-A/Fotos , /mnt/NAS-A/Musica and I want to use in owncloud and in minidlna (YES I Install minidlna but actually don't share because I still do not configure folders to share).
Code: Select all
nas4free:# mkdir /mnt/NAS-A/jail/proto/mnt/{Video,Musica,Fotos}Red colour - added lines.#Create mounts
mount_nullfs /mnt/NAS-A/Musica /jail/proto/mnt/Musica
mount_nullfs /mnt/NAS-A/Fotos /jail/proto/mnt/Fotos
mount_nullfs /mnt/NAS-A/Video /jail/proto/mnt/Video
#start all jails
/etc/rc.d/jail start
Code: Select all
proto:# ls -R /mnt
But you have ipfw_nat loaded, correct? If you check the /var/etc/lighttpd.conf, you see that the listen port is 80. By default, lighttpd will process web requests for ALL ip addresses. Since ifconfig at the host prompt shows all the jail ip's, then the web gui shows up for all addresses for me. However - I didn't try it following a reboot of the N4F host.alexey123 wrote: Nas4free webserver work on port 80 and jail webserver work on port 80. Without problems.

I will try it out on a full install, to see. But I have a few thoughts -alexey123 wrote: But in laboratory I have full - install and I want jail, running properly. My problem - sometimes, one per 30-40 reboots, I need fsck drive, when placed jail.

Not. I load only accf_http.ko for apachefsbruva wrote:But you have ipfw_nat loaded, correct?
How many virtual hosts can have Apache or lighttpd? Only RAM-size is limit. Webserver listen port 80, but hostname and ip different from jail.If you check the /var/etc/lighttpd.conf, you see that the listen port is 80. By default, lighttpd will process web requests for ALL ip addresses. Since ifconfig at the host prompt shows all the jail ip's, then the web gui shows up for all addresses for me. However - I didn't try it following a reboot of the N4F host.
All need work as wrote in manual. If we begin jail env, we need create clean way to built it for another peoples.If you are getting a problem every 30-40 reboots, then that problem should not surface for at least 15 years. Or, you are rebooting far too frequently.
iSCSI work perfect 3 last versions, I compile BSDMC for x86 and amd64 on diskless freebsd, booted from iscsi.Also, I thought we already established that your jail setup was problematic due to your iSCSI disk connection.

Sorry I don't see how to add ipfw_nat , only a request to developers to add it into Nas4Free.alexey123 wrote:I post how to add ipfw_nat

All correct. You can extract modules ipfw_nat.ko and libalias.ko from FreeBSD install disk, or download kernel.txz and extract it fromraulfg3 wrote: Sorry I don't see how to add ipfw_nat , only a request to developers to add it into Nas4Free.
It's the link correct ?.


I'm going to have a look at qjail, which is very similar to ezjail in use.fsbruva wrote:I am in the process of documenting ezjail-admin script (so I can understand his methods), and then move them into php. The trouble is his method uses freebsd-update, which is run from the N4F host. This is not part of the normal N4F install, and depends on numerous other binaries to run. Because I would like my solution to be simpler, I will be implementing the ezjail methods in php. ...raulfg3 wrote:
Do you test ezjails?. = http://erdgeist.org/arts/software/ezjail/
it appears a little easy to create / delete /update / jails

I find good idea. Enable lighttpd to listen only one IP you can add to Auxiliary parameters windows only one linefsbruva wrote:If you check the /var/etc/lighttpd.conf, you see that the listen port is 80. By default, lighttpd will process web requests for ALL ip addresses. Since ifconfig at the host prompt shows all the jail ip's, then the web gui shows up for all addresses for me. However - I didn't try it following a reboot of the N4F host.alexey123 wrote: Nas4free webserver work on port 80 and jail webserver work on port 80. Without problems.
Code: Select all
server.bind = "Your_Nas_IP"Code: Select all
ListenAddress "Your_Nas_IP"Code: Select all
address = 10.0.0.1Where 10.0.0.1 my LAN ip.nfs_server_flags=`/usr/local/bin/xml sel -t -v "concat('-u -h 10.0.0.1 -t -n ',//nfsd/numproc)" ${configxml_file} | /usr/local/bin/xml unesc`
Code: Select all
socket address = 10.0.0.1
interfaces = 10.0.0.1/24
This line prevent to change Listen adress. I dont know replace it and temporary I'll use firewall-v "concat('DefaultAddress ',//system/hostname)" -n \
Code: Select all
deny log logamount 5 ip from any 21 to 10.0.0.5 dst-port 21 via re0