View Single Post
Old 05-28-2013, 07:51 PM   #19
fry@pocketbook
Member
fry@pocketbook began at the beginning.
 
Posts: 21
Karma: 10
Join Date: May 2011
Device: Kindle DXi
YES, IT WORKS!

I was thinking to complicate...this steps I have to do:
@Kindle
Code:
mntroot rw
route add -net 192.168.1.0/24 gw 192.168.2.1
@Ubuntu
Code:
nano /etc/network/interfaces
 
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.1.201
    netmask 255.255.255.0
    gateway 192.168.1.1

auto usb0
iface usb0 inet static
    address 192.168.2.1
    netmask 255.255.255.0
    up echo 1 > /proc/sys/net/ipv4/ip_forward
    up iptables -P FORWARD ACCEPT
    up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24 
    down echo 0 > /proc/sys/net/ipv4/ip_forward
    down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
sudo /etc/init.d/networking restart
@my WLAN-Router(ddwrt)
Under the Point Advanced Routing:
Code:
Destination: 192.168.2.0
Subnet: 255.255.255.0
Gateway: 192.168.1.201
Now, Kindle browser problem
fry@pocketbook is offline   Reply With Quote