Install Debian without internet access

Matthias Camenzind m.camenzind at live.com
Sat Sep 27 07:19:01 CEST 2008


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 at 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-us&source=wlmailtagline



More information about the community mailing list