Re: Install Debian without internet access

2008-09-27 Thread Mikael Berthe
* Matthias Camenzind [EMAIL PROTECTED] [2008-09-27 07:19 +0200]:
 
 This is what i did on ubuntu:

 sudo iptables -N RH-Firewall-1-INPUT
 sudo iptables -I RH-Firewall-1-INPUT -s 192.168.0.202 -j ACCEPT

I think these two lines are useless (and the RH- prefix makes me think
it comes from a RedHat based system).

Anyway, here you're creating a chain you do not seem to use (unless
it is magically used by Ubuntu).

 sudo iptables -t nat -A POSTROUTING -j MASQUERADE -s 192.168.0.0/24

This one is necessary; you'd better specify the output interface with -o
(for example -o eth0).

 sudo iptables -t nat -A PREROUTING -p tcp -s 192.168.0.202 -d 192.168.0.200 
 --sport 0:65535 --dport 0:65535 -j DNAT --to-destination 192.168.1.1
 sudo iptables -t nat -A PREROUTING -p udp -s 192.168.0.202 -d 192.168.0.200 
 --sport 0:65535 --dport 0:65535 -j DNAT --to-destination 192.168.1.1

I wonder what it's supposed to do.

 sudo sysctl -w net.ipv4.ip_forward=1

Necessary.

 and I installed and run Firestarter (not sure if it was necessary)

Don't think so :)
-- 
MiKael

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Install Debian without internet access

2008-09-26 Thread Maciej Delmanowski
On Sep 26, Matthias Camenzind wrote:
 Freerunner: Om2007.2 (over terminal i can install ipk-packages, but 
 dependences are to deep to load every file manually)
 Freerunner SD(2GB): Om2008 (wifi finds an unsecured net, but is not able to 
 connect)
 Laptop: Ubuntu 8.04 (I tried to install a dhcp router but didn't work. I 
 tried also forwadings over iptables but didn't work)
 Has someone some ideas wich could help me?

You can try setting up apt-proxy on your laptop, download all needed packages
on localhost (aptitude download will suffice). You just need to select or
configure proper architecture (man apt.conf /APT::Architecture). Quick Google
search shows also this: http://www.linux.codehelp.co.uk/apt-cross/re01.html

Or you can create a local Debian mirror, if you have available disk space,
although that would take some time (maybe if there's a way to mirror only
selected arch...).

Have you tried everything from http://wiki.openmoko.org/wiki/Usb_networking ?
Maybe try using different machine/connection/operating system?

Good luck,
harnir


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: Install Debian without internet access

2008-09-26 Thread Matthias Camenzind

I tried but allways the same error on first line: iptables: No 
chain/target/match by that name
and why --dport 53?

 From: [EMAIL PROTECTED]
 To: community@lists.openmoko.org
 Date: Fri, 26 Sep 2008 18:57:16 +
 Subject: Re: Install Debian without internet access
 
 Am Freitag, den 26.09.2008, 16:54 + schrieb Matthias Camenzind:
 Hi,
 I can't connect to the internet from my freerunner. Usb network and ssh is 
 working. Wifi and bluetooth is not working. I would like to install debian, 
 because i think on debian wifi should work.
 Freerunner: Om2007.2 (over terminal i can install ipk-packages, but 
 dependences are to deep to load every file manually)
 Freerunner SD(2GB): Om2008 (wifi finds an unsecured net, but is not able to 
 connect)
 Laptop: Ubuntu 8.04 (I tried to install a dhcp router but didn't work. I 
 tried also forwadings over iptables but didn't work)
 Has someone some ideas wich could help me?
 
 I act also very long time with my iptables till it works fine.
 
 I need to run following commands at my server/notebook:
 iptables -I RH-Firewall-1-INPUT -s 192.168.0.202 -j ACCEPT
 
 iptables -t nat -A POSTROUTING -j MASQUERADE -s 192.168.0.0/24
 
 iptables -t nat -A PREROUTING -p tcp -s 192.168.0.202 -d 192.168.0.200
 --dport 53 -j DNAT --to-destination 212.6.108.140
 
 iptables -t nat -A PREROUTING -p udp -s 192.168.0.202 -d 192.168.0.200
 --dport 53 -j DNAT --to-destination 212.6.108.140
 
 sysctl -w net.ipv4.ip_forward=1
 
 iptables-save
 
 ...and on my FR I set the nameserver to my common one:
 echo nameserver 212.6.108.140/etc/resolv.conf
 
 the sysctl command is most important, otherwise, the forwarding won't
 work.
 That's all.
 -- 
 
 mfg/br, christian
 
 Flurstraße 14
 29640 Schneverdingen
 Germany
 
 E-Mail: [EMAIL PROTECTED]
 Telefon: +49 5193 97 14 95
 Mobile:  +49 171 357 59 57
 http://wesselch.homelinux.org

_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Install Debian without internet access

2008-09-26 Thread Charles-Henri Gros
Matthias Camenzind wrote:
 I tried but allways the same error on first line: iptables: No 
 chain/target/match by that name

You might need extra kernel modules. Could you give the exact error message?

What I use is this:

iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.0
post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s
192.168.0.0/24
post-up echo 1  /proc/sys/net/ipv4/ip_forward
post-up iptables -P FORWARD ACCEPT

+ in /etc/udev/rules.d/z60_openmoko.rules
KERNEL==usb0, SUBSYSTEM==net, ACTION==add,RUN+=/sbin/ifup usb0
KERNEL==usb0, SUBSYSTEM==net, ACTION==remove,
RUN+=/sbin/ifdown usb0

Of course you also need something like this on your freerunner:

iface usb0 inet static
address 192.168.0.202
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.200

As for your wifi problem, could you give more details? Can you connect
your laptop? What exactly are you trying, and what errors do you get?

-- 
Charles-Henri


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: Install Debian without internet access

2008-09-26 Thread Matthias Camenzind

i did first: iptables -N new_chain
this worked,but only one time i could ping another pc in my network and opkg 
recived 404 Error (is trying to connect buildhost.openmoko.org , [I changed to 
correct directory but there arent packages.sig files]).
Ping to WAN is somewehre disabled, i couldn't find where yet. So I removed the 
line in install.sh (Debian installer) 
with the ping signal. But I lost connection to internet. Now the problems is my 
laptop has no access to internet. I will fix this an try again.

Wifi problem: wifi finds a network (only one unsecured, but not unsecured form 
laptop) but can't connect. Same from the command line. 
udhcpc output: Sending discover... (3x)
 run-parts: /etc/udhcpc.d/99avahi-autoipd exited with return code 1
this repeats endless


install Debian without internet access
 
 Matthias Camenzind wrote:
  I tried but allways the same error on first line: iptables: No 
  chain/target/match by that name
 
 You might need extra kernel modules. Could you give the exact error message?
 
 What I use is this:
 
 iface usb0 inet static
 address 192.168.0.200
 netmask 255.255.255.0
 post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s
 192.168.0.0/24
 post-up echo 1  /proc/sys/net/ipv4/ip_forward
 post-up iptables -P FORWARD ACCEPT
 
 + in /etc/udev/rules.d/z60_openmoko.rules
 KERNEL==usb0, SUBSYSTEM==net, ACTION==add,RUN+=/sbin/ifup usb0
 KERNEL==usb0, SUBSYSTEM==net, ACTION==remove,
 RUN+=/sbin/ifdown usb0
 
 Of course you also need something like this on your freerunner:
 
 iface usb0 inet static
 address 192.168.0.202
 netmask 255.255.255.0
 network 192.168.0.0
 gateway 192.168.0.200
 
 As for your wifi problem, could you give more details? Can you connect
 your laptop? What exactly are you trying, and what errors do you get?
 
 -- 
 Charles-Henri
 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: Install Debian without internet access

2008-09-26 Thread Matthias Camenzind

Now I'm istalling debain on my freerunner.
This is what i did on ubuntu:
sudo iptables -N RH-Firewall-1-INPUT
sudo iptables -I RH-Firewall-1-INPUT -s 192.168.0.202 -j ACCEPT
sudo iptables -t nat -A POSTROUTING -j MASQUERADE -s 192.168.0.0/24
sudo iptables -t nat -A PREROUTING -p tcp -s 192.168.0.202 -d 192.168.0.200 
--sport 0:65535 --dport 0:65535 -j DNAT --to-destination 192.168.1.1
sudo iptables -t nat -A PREROUTING -p udp -s 192.168.0.202 -d 192.168.0.200 
--sport 0:65535 --dport 0:65535 -j DNAT --to-destination 192.168.1.1
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables-save
and I installed and run Firestarter (not sure if it was necessary)

 i did first: iptables -N new_chain
 this worked,but only one time i could ping another pc in my network and opkg 
 recived 404 Error (is trying to connect buildhost.openmoko.org , [I changed 
 to correct directory but there arent packages.sig files]).
 Ping to WAN is somewehre disabled, i couldn't find where yet. So I removed 
 the line in install.sh (Debian installer)
 with the ping signal. But I lost connection to internet. Now the problems is 
 my laptop has no access to internet. I will fix this an try again.
 
 Wifi problem: wifi finds a network (only one unsecured, but not unsecured 
 form laptop) but can't connect. Same from the command line.
 udhcpc output: Sending discover... (3x)
  run-parts: /etc/udhcpc.d/99avahi-autoipd exited with return code 1
 this repeats endless
 
 
 install Debian without internet access

 Matthias Camenzind wrote:
 I tried but allways the same error on first line: iptables: No 
 chain/target/match by that name

 You might need extra kernel modules. Could you give the exact error message?

 What I use is this:

 iface usb0 inet static
 address 192.168.0.200
 netmask 255.255.255.0
 post-up iptables -A POSTROUTING -t nat -j MASQUERADE -s
 192.168.0.0/24
 post-up echo 1 /proc/sys/net/ipv4/ip_forward
 post-up iptables -P FORWARD ACCEPT

 + in /etc/udev/rules.d/z60_openmoko.rules
 KERNEL==usb0, SUBSYSTEM==net, ACTION==add, RUN+=/sbin/ifup usb0
 KERNEL==usb0, SUBSYSTEM==net, ACTION==remove,
 RUN+=/sbin/ifdown usb0

 Of course you also need something like this on your freerunner:

 iface usb0 inet static
 address 192.168.0.202
 netmask 255.255.255.0
 network 192.168.0.0
 gateway 192.168.0.200

 As for your wifi problem, could you give more details? Can you connect
 your laptop? What exactly are you trying, and what errors do you get?

 --
 Charles-Henri


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 
 
 Connect to the next generation of MSN Messenger  Get it now! 

_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community