Hi all,
I've been trying to set up a jail with ezjail for 4 days now and I don't understand why, I'm unable to connect to the internet with it.
First, I ran
Since I wanted more place for my prisons, I used another disk and changed my jails' root directory from /usr/jails to /media/Prisons (the mountpoint of my secondary disk)
Finally, when I use
Tried it with several sites... Same result. I don't understand what could be wrong... Can anyone help ? Thank you
I've been trying to set up a jail with ezjail for 4 days now and I don't understand why, I'm unable to connect to the internet with it.
First, I ran
ezjail-admin update -i -p. Then I ran ezjail-admin create Prison1 [B]'[I]lo1|127.0.1.1[/I],[I]ale0[/I]|[I]192.168.1.38[/I]'[/B]; started it with ezjail-admin start Prison1 and used cp /etc/resolv.conf /media/Prisons/Prison1/etc (If you read this thread after my editing, here is where I made a typo by forgetting /etc in the end)Since I wanted more place for my prisons, I used another disk and changed my jails' root directory from /usr/jails to /media/Prisons (the mountpoint of my secondary disk)
Finally, when I use
jexec 1 dig freebsd.org it doesn't find the command dig so I activated raw sockets and tried using ping :
Code:
jexec 1 ping freebsd.org
ping: cannot resolve freebsd.org: Host name lookup failure
Tried it with several sites... Same result. I don't understand what could be wrong... Can anyone help ? Thank you
Last edited: