View Single Post
Old 04-29-2010, 06:16 AM   #20
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by GregorRichards View Post
Fair enough. Basically what you'd have to do is configure your host to do IP forwarding (honestly I don't know how this is done on any modern system ... ), then on the DR:

route add default gw 192.168.200.1
echo 'nameserver <some nameserver>' > /etc/resolv.conf

You could put those two parts in the usbnet2 script to avoid rewriting them.

(Haven't tested this, YMMV)
Instructions for your PC (linux only), type on command line as root:
Code:
# echo 1 > /proc/sys/net/ipv4/ip_forward
# /sbin/iptables -t nat -F
# /sbin/iptables -t nat -A POSTROUTING -j SNAT -o eth0 --to your_pc_external_ip
if you use wifi, use wlan0 instead of eth0 (type ifconfig to check if the proper wifi device is wlan0 or other).
your_pc_external_ip should be the PC own IP, not the IP of usb0 (the IP shown for that device in ifconfig command output).

And then, on your DR, the commands GregorRichards wrote above:
Code:
# route add default gw 192.168.200.1
# echo 'nameserver <some nameserver>' > /etc/resolv.conf
On my DR800S with firmware 2.0beta I can't use erbrowse to navigate internet. The error message is "This device does not support opening internet links; cannot open http://www.google.cat/". But, from the system point of view I can't see any limitation, so once midori or other browser is ported, we could navigate internet freely (as in freedom ;-).

Last edited by Iņigo; 04-29-2010 at 06:23 AM.
Iņigo is offline   Reply With Quote