LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-04-2006, 06:42 PM   #1
Spherical
LQ Newbie
 
Registered: Nov 2006
Location: Dutchyland
Distribution: Gentoo 2.6.18 custombuild
Posts: 29

Rep: Reputation: 15
iPaq 3630 and Gentoo internet


Yes, I know, a lot has been posted about this already, but not about how to get internet to work on an iPaq that is connected through serial (Com something, ttyS0)

So, all works, I can ping to my desktop, and to my iPaq, but the internet is not working, and I'm puzzled, since according to my routing table it should work.

Anyone have any idea?

My routing table:
Code:
Thirza          *               255.255.255.255 UH    0      0        0 ppp0
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.100.2   0.0.0.0         UG    0      0        0 eth0
Ow, Thirza is my PDA/iPaq device thingy, connected on ppp0 as 192.168.100.110

Last edited by Spherical; 12-04-2006 at 06:45 PM.
 
Old 12-05-2006, 04:59 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
hello,

what are the forwarding rules you set up ???

Oliv'
 
Old 12-05-2006, 05:57 AM   #3
Spherical
LQ Newbie
 
Registered: Nov 2006
Location: Dutchyland
Distribution: Gentoo 2.6.18 custombuild
Posts: 29

Original Poster
Rep: Reputation: 15
Nevermind, thanks for pointing it out!

got it figured...

Code:
iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.0.2 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -s 192.168.10.11 -j ACCEPT
iptables -A FORWARD -d 192.168.10.11 -j ACCEPT
This was how I had set it up, the forwarding... spot the error please!

Anyway, thanks again for pointing out the forwarding rules!
 
Old 12-05-2006, 08:59 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
here are the rules I would use:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
        iptables -A FORWARD -i eth0 -j ACCEPT
        iptables -A FORWARD -o eth0 -j ACCEPT
        iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Also I would choose another network address for ppp0. As a matter of fact ppp0 IP address belongs to the same network than eth0 address. For example set ppp0 address as 192.168.101.1

Regards,

Oliv'
 
Old 12-05-2006, 06:17 PM   #5
Spherical
LQ Newbie
 
Registered: Nov 2006
Location: Dutchyland
Distribution: Gentoo 2.6.18 custombuild
Posts: 29

Original Poster
Rep: Reputation: 15
Ehm, no, the eth0 (LAN) address here is in the 182.168.100.* range

But i gotta say, your solution is cleaner and more better to work with. Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting and iPAQ to the internet using PPP DuracellUltra Linux - Newbie 1 07-15-2006 01:18 PM
Internet in Gentoo mclinkor Linux - General 17 12-04-2005 03:39 PM
Reflashing Win CE to iPaq 3630 mrbadboy Linux - Laptop and Netbook 2 03-10-2005 07:23 AM
Familar-networking-IPAQ-3630 roolo Linux - Laptop and Netbook 0 11-28-2003 05:19 AM
Microtek ScanMaker 3630 Unsupported bongski55 Linux - Hardware 0 06-13-2003 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration