Jails have confused me. My ultimate goal is to setup xwiki in a jail (after installing tomcat and MySQL). I have sucessfully created the jail with:
started it:
and accessed it:
Now the output of
Internet is working in the jail so that's sorted. On my router, I have already port forwarded port 80 to 192.168.1.7 for a basic web server. Do I now forward to 192.168.1.8 in addition? I have found (these) instructions and am confused by step 4: the suggested contents of /etc/pf.conf. What is the purpose of this step? I had setup pf a while ago, the contents in my pf.conf being:
I am also unsure of the purpose of the suggested contents in /etc/resolv.conf in step 5. Are these steps to ensure my jail has network access, which it already has? Perhaps I could jump to step 6 to "redirect packets to the jailed webserver"?
Very confused... and I haven't even started with tomcat, MySQL, xwiki.
iocage create tag=xwiki ip4_addr="ue0|[URL='http://192.168.1.10/24']192.168.1.[/URL]8
started it:
iocage start xwiki
and accessed it:
iocage console xwiki
Now the output of
ifconfig
on the host (not in the jail) is:
Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
groups: pflog
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80008<VLAN_MTU,LINKSTATE>
ether 8c:ae:4c:ff:81:94
inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
inet 192.168.1.8 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
Code:
table <sshguard> persist
block in quick on ue0 from <sshguard> label "SSH Guard"
Very confused... and I haven't even started with tomcat, MySQL, xwiki.