Re: qjail e pkg
Franco Marchesini <[email protected]> Wed, 20 Aug 2014 17:55:27 +0200
| Newsgroups | gmane.os.freebsd.italian.aiuto |
|---|---|
| Message-ID | <CAP6J_dM_oNYBYtyFJ==yeoF-q3mVpYie=-origuCYLOVwWMyGA@mail.gmail.com> |
intendi:
>
> defaultrouter="10.10.10.1"
>
si
> comunque, da riga di comando:
> route add default 10.10.10.1
>
> poi controlla che lo "veda":
> ping 10.10.10.1 lo pinga? si? no?
> arp -na | grep 10.10.10.1 l'arp c'รจ?
>
>
jweb /root >route add default 10.10.10.1
route: writing to routing socket: Operation not permitted
jweb /root >arp -na | grep 10.10.10.1
? (10.10.10.10) at 94:de:80:a7:53:9d on em0 permanent [ethernet]
jweb /root >
Questo dal suo man page
http://qjail.sourceforge.net/Qjail-howto.html
*JAIL CONFIG SETUP USING QJAIL*
Step 1. Install the qjail environment
*qjail install qjail update -p* will perform a portsnap which downloads the
complete
port tree which is shared between all jails. This is
an optional step and not necessary if only using the
port packages to install software in all the jails.
Step 2. Create 2 directory tree type jails accessible from the public
Internet, one for the City info website and one for the County info web
site. These jails will have SSH enabled so Tech Support personal can
install the package version of apache and the html application on the 2 web
server jails.
*qjail create -n xl0 -f ssh-default www-city 73.x.97,51,10.0.10.126*
This will create a directory tree type jail and bind the 2 IP address to
the NIC facing the public internet. When the jail is started, aliases will
automatically be created on the NIC name contained in the -n option and
automatically removed when the jail is stopped. The jails name will be
www-city. The -f option uses the ssh-default flavor that creates a user
account in the jail with a login ID/PW of qjail. From any LAN MS/Windows PC
can use putty to target 10.0.10.126 IP address and login to that jail.
*qjail list* Lists status of all jails
*qjail list www-city* Only list status of this jail
*qjail start www-city* Start just this jail
*qjail console www-city* Will open a root console in that jail.
Then execute pkg_add -r apache22 to
install the web server software.
Enter "exit" to close console.
An alternate method would be to use "putty" and login to the jail and once
logged in issue "su" then pkg_add -r apache22 to install the web server
software.
_______________________________________________
Aiuto mailing list
[email protected]
http://mailman.gufi.org/mailman/listinfo/aiuto