DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th June 2008
bgobs bgobs is offline
Port Guard
 
Join Date: Jun 2008
Location: Sofia, BG
Posts: 17
Thanked 0 Times in 0 Posts
Default no internet connection inside jail...?

im using ezjail and freebsd 6.2

the jail is working, bat has no internet.

Quote:
# cd /usr/ports/databases/mysql51-server/ && make install clean
===> Vulnerability check disabled, database not found

You may use the following build options:

WITH_CHARSET=charset Define the primary built-in charset (latin1).
...
WITH_NDB=yes Enable support for NDB Cluster.

=> mysql-5.1.12-beta.tar.gz doesn't seem to exist in /var/ports/distfiles/.
=> Attempting to fetch from ftp://ftp.easynet.be/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.easynet.be/mysql/Downloads...2-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.fi.muni.cz/pub/mysql/Downl...2-beta.tar.gz: No address record
...
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/po...2-beta.tar.gz: No address record
=> Couldn't fetch it - please try to retrieve this
=> port manually into /var/ports/distfiles/ and try again.
*** Error code 1

Stop in /basejail/usr/ports/databases/mysql51-server.
my external IP is different class - 77.X.X.X.
for my jail i'm using 192.168.1.7 (it exist as alias in ifconfig).
is this a problem?

i have /usr/jails/myJail/etc/resolv.conf but it doesnt solve the problem.

do i need to add smth in /etc/host or jail's /etc/host?

inside the jail sysinstall says "no interfaces available".

any ideas?
__________________
FreeBSD 6.2 RELEASE
Reply With Quote
  #2   (View Single Post)  
Old 17th June 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

The "no address record" error seems to point to DNS issues. Could you post (from inside the jail) the contents of /etc/resolv.conf?
__________________
Kill your t.v.
Reply With Quote
  #3   (View Single Post)  
Old 17th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

Try putting
Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
In your /etc/resolv.conf (inside the jail) and see what happens.

The above addresses are for OpenDNS's DNS servers.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #4   (View Single Post)  
Old 17th June 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Thanked 7 Times in 7 Posts
Default

Try some other DNS servers... 4.2.2.1 and 4.2.2.4 are other well-known public ones.

I have never been able to resolve with OpenDNS's.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #5   (View Single Post)  
Old 17th June 2008
bgobs bgobs is offline
Port Guard
 
Join Date: Jun 2008
Location: Sofia, BG
Posts: 17
Thanked 0 Times in 0 Posts
Default

resolv.conf inside the jail
Quote:
domain my-domain.com
nameserver 77.X.X.X
now

Quote:
nameserver 4.2.2.1
nameserver 4.2.2.4
nameserver 208.67.222.222
nameserver 208.67.220.220
and now /usr/local/etc/rc.d/ezjail.sh restart takes a lot of time

i test it with 2 masks:
Quote:
ifconfig rl0 alias 192.168.1.7 netmask 0xffffffff
and
Quote:
ifconfig rl0 alias 192.168.1.7 netmask 0xffffff00
but, still no luck.


*** edit

just to test i start jail with my IP (77.X.X.X) and DNS (77.X.X.1) and everything was ok (if this helps)
__________________
FreeBSD 6.2 RELEASE

Last edited by bgobs; 17th June 2008 at 10:18 AM.
Reply With Quote
  #6   (View Single Post)  
Old 17th June 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by bgobs View Post
just to test i start jail with my IP (77.X.X.X) and DNS (77.X.X.1) and everything was ok (if this helps)
Everything was okay meaning that it works? Sounds like your ISP might be blocking DNS requests outside of their network (perhaps to reduce bandwidth usage). You'll need to talk to them about that.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #7   (View Single Post)  
Old 17th June 2008
bgobs bgobs is offline
Port Guard
 
Join Date: Jun 2008
Location: Sofia, BG
Posts: 17
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Weaseal View Post
Everything was okay meaning that it works? Sounds like your ISP might be blocking DNS requests outside of their network (perhaps to reduce bandwidth usage). You'll need to talk to them about that.
yes, it works. i test it by istalling midnight commander inside the jail:
# jail /usr/jails/test test 77.X.X.X /bin/sh
then
# cd ... && make install
and voila - everything was ok

i'll try calling my ISP.



*** edit

i call them.
well... im using LAN. my ISP have plans for different number of PC's. now im using their plan for 2 pc's. they told me that i must buy their next plan (for 5 pc's) if i want more IP's.
so, my qestion is: is there a way to run jails without buying new plan?
and of course they must not see that, because they are the best ISP in my town and i dont want to be in their black list i prefer to buy next plan if there is a risk my ISP to think that i'm "shering" internet or whatever they will think about it.
__________________
FreeBSD 6.2 RELEASE

Last edited by bgobs; 17th June 2008 at 01:21 PM.
Reply With Quote
  #8   (View Single Post)  
Old 17th June 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

Quote:
Originally Posted by bgobs
so, my qestion is: is there a way to run jails without buying new plan?
Well, you're not going to get two publicly routable IP addresses without their "new plan".

And somehow I completely missed this from your first post:
Quote:
Originally Posted by bgobs
my external IP is different class - 77.X.X.X.
for my jail i'm using 192.168.1.7 (it exist as alias in ifconfig).
Your choices that I can think of are 1) use some form of NAT, and run the host and jail(s) with RFC 1918 address space; 2) buy the ISP's new plan; 3) live with the jail having no internet access, and install ports/packages using the host system (mount nullfs).

This decision is going to depend on what you're trying to do...
__________________
Kill your t.v.
Reply With Quote
  #9   (View Single Post)  
Old 17th June 2008
bgobs bgobs is offline
Port Guard
 
Join Date: Jun 2008
Location: Sofia, BG
Posts: 17
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by anomie View Post
This decision is going to depend on what you're trying to do...
i want to run web (apache, php, mysql) and mail (dovecot, postfix, spamassassin, clamav) server.

is it posible with different jails and no internet access inside them? may be they can use localhost? (when im writing this and then reading it... it sound like realy stupid question but may be i'm too lame)

if it posible somehow can you guide me what/where to RTFM?

if it's not or it's hard to do and requires a lot of knowledge - ignore it. i'll buy next plan.
__________________
FreeBSD 6.2 RELEASE

Last edited by bgobs; 17th June 2008 at 03:06 PM.
Reply With Quote
Old 17th June 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

Quote:
Originally Posted by bgobs
i want to run web (apache, php, mysql) and mail (dovecot, postfix, spamassassin, clamav) server.

is it posible with different jails and no internet access inside them?
Who should those services be accessible to? Just the host system? Or the outside world?
__________________
Kill your t.v.
Reply With Quote
Old 17th June 2008
bgobs bgobs is offline
Port Guard
 
Join Date: Jun 2008
Location: Sofia, BG
Posts: 17
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by anomie View Post
Who should those services be accessible to? Just the host system? Or the outside world?
outside.

for my personal usage i have windows with XAMPP.


*** edit:
i was testing...
i start two jails on one ip - its ok

it seems that there is no problems using jails with one ip.
i must use different ports for my services

any bad comments about this solution?
__________________
FreeBSD 6.2 RELEASE

Last edited by bgobs; 17th June 2008 at 04:27 PM.
Reply With Quote
Old 17th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

I'd recommend getting a router that does NAT for you, that way you can have one publicly routable IP address, but literally thousands (depending on the router you get and what "fake" network it uses) of internal IP addresses for your machines only.

You can then set up in the routher that requests on port 80 go to 192.168.0.43 but requests for port 25 go to 192.168.0.87. Or however your network is set up.

And as far as the ISP is concerned, you have one publicly facing machine (the router). No need to pay them extra for you having more than one computer, because they don't provide anything extra to you (except it sounds like they may be giving you an extra IP which would most likely be overkill for you).
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pppoe internet connection on another lladdr enaqx General software and network 3 4th July 2009 12:07 AM
finding packages denpendencies with no internet connection roddierod OpenBSD Packages and Ports 1 13th November 2008 03:17 PM
pkg inside non-global zone? nacredata Solaris 2 30th September 2008 11:50 PM
Set time in Jail tanked FreeBSD General 5 22nd August 2008 01:51 PM
Internet access within jail Weaseal FreeBSD General 5 26th June 2008 02:45 PM


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick