LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Unix
Author Message
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6337
Location: Exiled

Post Posted: Mon Feb 19, 2007 2:16 pm   Post subject: Hey where did my internet go? Reply with quote Back to top  

Hey all:

Upgraded to 6.2 to hopefully resolve an issue with ezjail not being able to play with more than one IP address, becuase of this issue, but apparently that wasn't it.

Basically when I try to build ports from source, ping any address, or anything at all from within a jail that requires an internet connection, it acts as if the unit is off line. When pinging I receive:

Ping: socket: Operation not permitted

In sysinstall it says no interfaces available

And for ports it says it cannot connect to download the files from any site like so:

Code: Select all

# 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_XCHARSET=list      Define other built-in charsets (may be 'all').
        WITH_COLLATION=collate  Define default collation (latin1_swedish_ci).
        WITH_OPENSSL=yes        Enable secure connections.
        WITH_LINUXTHREADS=yes   Use the linuxthreads pthread library.
        WITH_PROC_SCOPE_PTH=yes Use process scope threads
                                (try it if you use libpthread).
        BUILD_OPTIMIZED=yes     Enable compiler optimizations
                                (use it if you need speed).
        BUILD_STATIC=yes        Build a static version of mysqld.
                                (use it if you need even more speed).
        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/MySQL-5.1/mysql-5.1.12-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/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://mysql.mirrors.cybercity.dk/Downloads/MySQL-5.1/.
fetch: http://mysql.mirrors.cybercity.dk/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.fh-wolfenbuettel.de/pub/database/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.fh-wolfenbuettel.de/pub/database/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://netmirror.org/mirror/mysql.com/Downloads/MySQL-5.1/.
fetch: http://netmirror.org/mirror/mysql.com/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://netmirror.org/mysql.com/Downloads/MySQL-5.1/.
fetch: ftp://netmirror.org/mysql.com/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://mirrors.ntua.gr/MySQL/Downloads/MySQL-5.1/.
fetch: http://mirrors.ntua.gr/MySQL/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.ntua.gr/pub/databases/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.ntua.gr/pub/databases/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://mysql.sote.hu/Downloads/MySQL-5.1/.
fetch: http://mysql.sote.hu/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.rhnet.is/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.rhnet.is/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://mirror.widexs.nl/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.widexs.nl/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://mirror.etf.bg.ac.yu/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.etf.bg.ac.yu/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://mysql.dp.ua/Downloads/MySQL-5.1/.
fetch: http://mysql.dp.ua/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://mysql.mirrored.ca/Downloads/MySQL-5.1/.
fetch: http://mysql.mirrored.ca/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.orst.edu/pub/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.orst.edu/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/.
fetch: http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://mysql.bannerlandia.com.ar/mirrors/mysql/Downloads/MySQL-5.1/.
fetch: ftp://mysql.bannerlandia.com.ar/mirrors/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.linorg.usp.br/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.linorg.usp.br/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from ftp://ftp.cbn.net.id/mirror/mysql/Downloads/MySQL-5.1/.
fetch: ftp://ftp.cbn.net.id/mirror/mysql/Downloads/MySQL-5.1/mysql-5.1.12-beta.tar.gz: No address record
=> Attempting to fetch from http://download.softagency.net/MySQL/Downloads/MySQL-5.1/.
fetch: http://download.softagency.net/MySQL/Downloads/MySQL-5.1/mysql-5.1.12-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/ports/distfiles/mysql-5.1.12-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 ifconfig when viewed shows this:

Code: Select all

xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.1.101 netmask 0xffffffff broadcast 192.168.1.101
        ether 00:50:04:a5:66:c3
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384


and an alias has been configured for this IP address on the root server that ezjal is hosted on.

An added twist is that connections can be made from the outside (ssh, ftp, http, you name it), I just cannot connect from inside.

Anyone ran into this before?

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6337
Location: Exiled

Post Posted: Mon Feb 19, 2007 5:56 pm   Post subject: Reply with quote Back to top  

An update for those are following along:

Apparently my first jail has decided to get internet back. I have no idea how or why, but I'm not able to fetch ports again with it. However, my second jail is still ignorant of the world outside it's borders as before. Does the issue with jails only able to access one IP still apply to 6.2? Is there something that has to be added to rc.conf or a different way of creating aliases to have this work? Seems kind of silly to have only one jail available.

Again, if anyone has any advice I'd be mroe than appriciative. This one has me stumped Sad

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6337
Location: Exiled

Post Posted: Mon Feb 19, 2007 6:37 pm   Post subject: Reply with quote Back to top  

Wow. Is my face red.

Determined what the problem was. While looking at my networking files between the working jail and the non-working one, I landed upon resolv.conf and found that the non-working jails' version was empty. So copied my config from the working jail and poof. It works.

More proof that it's the little things that nail us. Man is my face red. Sad

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
Dave Rave
Butt Sniffer
Butt Sniffer


Joined: 13 Nov 2003
Posts: 1880
Location: Sydney Australia

Post Posted: Tue Feb 20, 2007 2:26 am   Post subject: Reply with quote Back to top  

upgraded what to 6.2 ? (damn these channels, that might be the linux kernel, d'oh)
is that a gaol or a back red/green/blue/ornage interface ?

just what is it you are trying to ask about ?
apart from linux packets and you don't need us anymore because you already solved this issue without us ..... booo!
View user's profile Send private message ICQ Number
creed
Veteran Dog
Veteran Dog


Joined: 08 Nov 2003
Age: 97
Posts: 6337
Location: Exiled

Post Posted: Tue Feb 20, 2007 6:30 am   Post subject: Reply with quote Back to top  

Dave Rave wrote:
upgraded what to 6.2 ? (damn these channels, that might be the linux kernel, d'oh)


It's for FreeBSD. GUess I forgot to specify that one Smile

Dave Rave wrote:
s that a gaol or a back red/green/blue/ornage interface ?


Confused

Dave Rave wrote:
just what is it you are trying to ask about ?
apart from linux packets and you don't need us anymore because you already solved this issue without us ..... booo!


It was basicalyl two issues:

1) NO outbound internet connectivity for one jail
2) items like ping woould not work within said jails.

for the first issue, populating resolv.conf fixed it, and for the second having sysctl security.jail.allow_raw_sockets=1 executed in the root system allowed jails to be able to ping.

_________________


The Seven faces of Creed



View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!