How to connect a jail to the web ?
berrandonea at yahoo.fr
Thu Aug 12 16:48:53 UTC 2010
> Where did you get that second IP address from? Did you just
> add it manually? Or is that the address that your gateway
> (DSL router, whatever) got assigned from your ISP?
I added it manually in rc.conf (on the host) :
keymap="fr.iso.acc" (yes, I'm french)
I choosed it because that's my computer's public ip, at least according to this
website : http://whatismyipaddress.com/
> I assume that IP address is not really routed to your host,
> but that NAT (Network Address Translation) is used on your
> router. So you cannot use that address on the host.
> (If that's not true, please exlain the structure of your
> network in more detail.)
My "network" is VERY simple. I've got a modem (or "box") provided by my phone
company. It's called a "neufbox" and acts as a gateway. The computer with
FreeBSD is connected to this "box" through an ethernet cable. Two other
computers are connected to it via wifi.
> So, if my assumptions are true, you must use the address
> 192.168.1.38 for your jail. Make sure that DNS is working
> inside the jail ... It should be sufficient to copy
> /etc/resolv.conf from the host to /usr/prison/etc/resolv.conf
OK, I'll try this.
> If it still doesn't work: Are you using any packet filter
> (ipfw, ipf, pf)? If so, please show the complete list of
No, I don't. I've tried pf but you told it was not necessary.
> Otherwise, it might help to run tcpdump(1) on the host, so
> you can see the actual packets that are transmitted and
Allright. I try it too.
Good bye for the moment and thanks for your help.
More information about the freebsd-questions