Re: apt-get update
On Tue, 4 Sep 2007 18:24:30 +0200
"Aritz Beraza Garayalde" <aritz.beraza@gmail.com> wrote:
> On 9/4/07, Marcel Caraballo <maqndon@cantv.net> wrote:
> > Buenas buenas compañeros
> >
> > al ejecutar:
> >
> > #apt-get update
> >
> > Me tira el siguiente error:
> >
> > No pude conectarme a 127.0.0.1:8118 (127.0.0.1). - connect (111 Conexión rehusada)
> >
> > Estoy compartiendo interner desde otro pc y este es el cliente.
> >
> > Alguien me puede dar una mano?
> >
> >
>
> Te estás conectando a ti mismo por el puerto 8118.
>
> Más o menos como tienes configurada esa red? (como están conectados
> los ordenadores, como compartes internet, etc etc). Info sobre tu
> /etc/apt/sources.list no iría mal tampoco.
>
> Saludos
> Aritz Beraza
>
Bueno acá coloco la configuración del servidor:
************/etc/dhcpd.conf***********
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.15;
option broadcast-address 192.168.0.255;
option domain-name "cantv.net";
prepend domain-name-servers 208.67.222.222, 208.67.220.220;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
option ip-forwarding on;
default-lease-time 21600;
max-lease-time 43200;
}
--------------------fin--------------------------
***************/etc/bind/named.conf.options*****************
options {
directory "/var/cache/bind";
// from bind 9:
// [fetch-glue] is obsolete. In BIND 8, fetch-glue yes caused the
// server to attempt to fetch glue resource records it didn't have
// when constructing the additional data section of a response.
// This is now considered a bad idea and BIND 9 never does it.
fetch-glue no;
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
208.67.222.222; 208.67.220.220;
};
};
-------------fin-----------------
El cliente me toma los dns de mi proveedor de internet y no los de "opendns" y esta configurado de esta forma:
*********/etc/network/interfaces*************
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
post-up /home/maq/opendns.sh
auto eth0
-----fin---------
************opendns.sh***********
echo nameserver 208.67.222.222 >> /etc/resolv.conf
echo nameserver 208.67.220.220 >> /etc/resolv.conf
----------fin------------------
************/etc/resolv.conf*************
# generated by NetworkManager, do not edit!
search cantv.net
nameserver 200.11.248.12
------fin-------------
Dime si falta algún archivo que te pueda hacer falta, saludos!
Reply to: