My host route: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.130.0 * 255.255.255.0 U 0 0 0 wlan0 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 default Router 0.0.0.0 UG 0 0 0 wlan0
What about yor /etc/resolv.conf: nameserver 208.67.222.222 nameserver 208.67.220.220 I guess it also can be your normal DNS address -- Ole > Thanks for your help. I have the same configuration as yours, but it > still does not work. > What do you have for route on host ? > > > Ole Carlsen a écrit : >> My route on FR: >> Destination Gateway Genmask Flags Metric Ref >> Use Iface >> 192.168.0.0 * 255.255.255.0 U 0 0 >> 0 usb0 >> default 192.168.0.200 0.0.0.0 UG 8 0 >> 0 usb0 >> >> iptables --list: >> Chain INPUT (policy ACCEPT) >> target prot opt source destination >> >> Chain FORWARD (policy ACCEPT) >> target prot opt source destination >> >> Chain OUTPUT (policy ACCEPT) >> target prot opt source destination >> >> My /etc/network/interfaces: >> # freerunner >> allow-hotplug eth1 >> iface eth1 inet static >> address 192.168.0.200 >> netmask 255.255.255.0 >> up iptables -A POSTROUTING -t nat -s 192.168.0.0/24 -j MASQUERADE >> up echo 1 > /proc/sys/net/ipv4/ip_forward >> down iptables -D POSTROUTING -t nat -s 192.168.0.0/24 -j MASQUERADE >> >> I'm no network specialist but this works for me on the latest un'stable. >> >> -- >> Ole >> >> piratebab skrev: >>> Some new information: >>> route on FR >>> Destination Gateway Genmask Flags Metric Ref Use >>> Iface >>> 192.168.0.0 * 255.255.255.0 U 0 0 >>> 0 usb0 >>> 192.168.0.0 * 255.255.255.0 U 0 0 >>> 0 eth0 >>> default 192.168.0.1 0.0.0.0 UG 0 0 >>> 0 eth0 >>> default 192.168.0.200 0.0.0.0 UG 8 0 >>> 0 usb0 >>> >>> It looks OK, gw is set to the correct one. >>> >>> >>> Now on host, I typed >>> iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 >>> >>> and then in iptables --list, >>> >>> Chain INPUT (policy ACCEPT) >>> target prot opt source destination >>> ACCEPT all -- om-gta02.local anywhere >>> >>> Chain FORWARD (policy ACCEPT) >>> target prot opt source destination >>> >>> Chain OUTPUT (policy ACCEPT) >>> target prot opt source destination >>> ACCEPT all -- ordi1.local anywhere >>> >>> >>> >>> Nothing set in FORWARD . Is this OK ? >>> >>> >>> >>> >>> >>> >>> >>> Ole Carlsen a écrit : >>>> piratebab skrev: >>>>> Ole Carlsen a écrit : >>>>>>> I have already done all this. >>>>>>> I can connect to the FR using ssh. The problem is connection to the >>>>>>> web. >>>>>>> Here is the route table on host: >>>>>>> >>>>>>> Destination Passerelle Genmask Indic Metric >>>>>>> Ref Use Iface >>>>>>> om-gta02.local * 255.255.255.255 UH 0 >>>>>>> 0 0 eth2 >>>>>>> ordi1.local 192.168.0.1 255.255.255.255 UGH 0 >>>>>>> 0 0 eth1 >>>>>>> 192.168.0.192 192.168.0.1 255.255.255.255 UGH 0 >>>>>>> 0 0 eth1 >>>>>>> 192.168.0.192 * 255.255.255.240 U 0 >>>>>>> 0 0 eth2 >>>>>>> 192.168.0.192 * 255.255.255.192 U 0 >>>>>>> 0 0 eth2 >>>>>>> 192.168.0.0 * 255.255.255.0 U 0 >>>>>>> 0 0 eth1 >>>>>>> default 192.168.0.1 0.0.0.0 UG 0 >>>>>>> 0 0 eth1 >>>>>>> >>>>>>> >>>>>>> from the FR, I can not ping the gateway (192.168.0.1) >>>>>>> >>>>>>> >>>>>>> >>>>>>> Tom a écrit : >>>>>>> >>>>>>>> On Mon, Jul 13, 2009 at 10:27 PM, piratebab >>>>>>>> <[email protected]> wrote: >>>>>>>> >>>>>>>> >>>>>>>>> Hi all, >>>>>>>>> I have switched from testing to unstable. So the interface on host >>>>>>>>> changed from usb0 to eth2. >>>>>>>>> I have modified my configuration method for connecting the FR >>>>>>>>> (change >>>>>>>>> all usb0 by eth2 in script from >>>>>>>>> http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others. >>>>>>>>> >>>>>>>>> >>>>>>>>> I can connect to the FR using ssh, but cant connect to the >>>>>>>>> internet with >>>>>>>>> it. >>>>>>>>> I have tried many configuration in order to forward eth2 to eth1 >>>>>>>>> (the >>>>>>>>> one connected to the web). But nothing works. >>>>>>>>> How do you manage this (Pc host is debian testing) ? >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> As you said, just replace every usb0 with eth2 ;) >>>>>>>> try this: >>>>>>>> http://wiki.openmoko.org/wiki/USB_Networking#Simple_Manual_Linux_Configuration >>>>>>>> >>>>>>>> >>>>>>>> to be sure there's nothing wrong with the debian configs you used. >>>>>>>> >>>>>>>> Tom. >>>>>>>> >>>>>>>> >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Shr-User mailing list >>>>>>> [email protected] >>>>>>> http://lists.shr-project.org/mailman/listinfo/shr-user >>>>>>> >>>>>> Blind shot but you haven't by mistake removed iptable on your pc?? I >>>>>> did that myself during some update and then no internet from FR. >>>>>> >>>>>> >>>>> iptables is installed >>>>> >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> _______________________________________________ >>>>> Shr-User mailing list >>>>> [email protected] >>>>> http://lists.shr-project.org/mailman/listinfo/shr-user >>>> What does the route say on FR? Can you ping the host from FR? >> >> > > _______________________________________________ > Shr-User mailing list > [email protected] > http://lists.shr-project.org/mailman/listinfo/shr-user _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
