Jorge, you need to set up masquerading on your redhat box. that is, you
have to get it to act like a firewall. Here is a basic setup assuming that
your ipaq side of ppp is 192.168.1.2 and your redhat box is 192.168.1.1:
( note, if you have the module for ipchains loaded, remove it first )
modprobe ip_tables
iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.1.2 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
NOTATE BENE: This is a sample!! If this box is already doing
firewalling/masquerading, you need to modify that script, not run this one!
If your box is just a desktop, and is on a valid external ip address, it
might be a good idea to to flush these rules when you are done with surfing
on your ipaq:
iptables -F
iptables -t nat -F
echo 0 > /proc/sys/net/ipv4/ip_forward
Also, don't forget to setup a default route on your ipaq!! for example:
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1
Let me know if this helps, and if you have more specific questions...
-Patrick
-----Original Message-----
From: Jorge Figueroa
To: intimate@handhelds.org
Sent: 6/28/2001 2:38 PM
Subject: [Intimate] How to connect to the Internet
I just got a Microdrive with the only intention to use Linux on my iPaq.
I can connect my RedHat Linux box and my iPaq (with Familiar 0.4) using
PPP
and a serial cable, but cannot get to the Internet on my iPaq (I can
only
ping to my Linux box). How can I do it? I hope I do not need to get a
dual
PC-Card adapter to use a network card and the Microdrive at the same
time.
Can some one help me with this?
Regards,
El Jofi
________________________________________________________________________
_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
_______________________________________________
Intimate mailing list
Intimate@handhelds.org
http://handhelds.org/mailman/listinfo/intimate
Received on Thu Jun 28 21:24:59 2001
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:42:39 EDT