[debian at fr] missing LAN tools

Ian darkstarsword at gmail.com
Tue Sep 23 05:53:33 CEST 2008


On Tue, Sep 23, 2008 at 3:48 AM, Christian Weßel <wesselch at gmx.net> wrote:
> Am Montag, den 22.09.2008, 09:37 -0400 schrieb Jim Ancona:
>> If you can ssh to it, but you can't connect outbound, that usually means
>> that you don't have the default gateway set properly. If you are using
>> USB, try:
>>
>> route del default gw 192.168.0.200
>> route add default gw 192.168.0.200
>
> I have successfull access with ssh, I set a new pw as recommended. No
> problems, also after reboot.
> I checked the /etc/network/interfaces:
>
>> # Ethernet/RNDIS gadget (g_ether)
>> # ... or on host side, usbnet and random hwaddr
>> auto usb0
>> iface usb0 inet static
>>         address 192.168.0.202
>>         netmask 255.255.255.0
>>         network 192.168.0.0
>>         gateway 192.168.0.200
>>         up echo nameserver 212.6.108.140>/etc/resolv.conf
>
> I figure that's fine.
>
> An attemt of update results:
>
>> debian-gta02:~# apt-get update
>> 0% [Connecting to pkg-fso.alioth.debian.org] [Connecting to ftp2.de.debian.org]
>> debian-gta02:~# apt-get update
>> Err http://ftp2.de.debian.org unstable Release.gpg
>>   Temporary failure resolving 'ftp2.de.debian.org'
>> Err http://pkg-fso.alioth.debian.org sid Release.gpg
>>   Temporary failure resolving 'pkg-fso.alioth.debian.org'
>> Err http://ftp2.de.debian.org experimental Release.gpg
>>   Temporary failure resolving 'ftp2.de.debian.org'
>> Err http://pkg-fso.alioth.debian.org unstable Release.gpg
>>   Temporary failure resolving 'pkg-fso.alioth.debian.org'
>> Reading package lists... Done
>> W: Failed to fetch http://pkg-fso.alioth.debian.org/debian/dists/sid/Release.gpg  Temporary failure resolving 'pkg-fso.alioth.debian.org'
>>
>> W: Failed to fetch http://ftp2.de.debian.org/debian/dists/unstable/Release.gpg  Temporary failure resolving 'ftp2.de.debian.org'
>>
>> W: Failed to fetch http://ftp2.de.debian.org/debian/dists/experimental/Release.gpg  Temporary failure resolving 'ftp2.de.debian.org'
>>
>> W: Failed to fetch http://pkg-fso.alioth.debian.org/debian/dists/unstable/Release.gpg  Temporary failure resolving 'pkg-fso.alioth.debian.org'
>>
>> W: Some index files failed to download, they have been ignored, or old ones used instead.
>> W: You may want to run apt-get update to correct these problems
>
> HAHA, yes I want, but I can't.
>
> Does anyone has an idea?
> --
>
> mfg/br, christian weßel
>
> Flurstraße 14
> 29640 Schneverdingen
> Germany
>
> E-Mail: wesselch at gmx.net
> Telefon: +49 5193 97 14 95
> Mobile:  +49 171 357 59 57
> http://wesselch.homelinux.org
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>


I'm sure you've already done this, but just in case have you set your
computer to act as a gateway to the FR? It needs packet forwarding
enabled under /proc/sys/net/ipv4/ip_forward as well as iptables set up
correctly. Personally I use an iptables frontend called firehol to
simplify this.
My /etc/firehol/firehol.conf looks like (this is on my laptop, not the FR):

#always needed for firehol
version 5

#Don't let anything in from the Internet that I didn't request
interface ppp+ internet src not "$UNROUTABLE_IPS"
  protection strong
  client all accept

# Accept all client traffic on any other interface and allow incoming SSH
interface any world src not "$RESERVED_IPS"
  server ssh accept
  client all accept

#Forward packets from usb network with NAT
router usbnet inface usb0 outface any
  masquerade
  route all accept



Cheers,
-Ian



-- 
http://darkstarshout.blogspot.com/
--
On the day *I* go to work for Microsoft, faint oinking sounds will be
heard from far overhead, the moon will not merely turn blue but
develop polkadots, and hell will freeze over so solid the brimstone
will go superconductive.
 -- Erik Raymond, 2005
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




More information about the community mailing list