Jethro Cramp wrote:
Chris Reeves said:
Here are some quick and easy steps.
On your laptop (as root): route add default gw <ip address of old pc> You'll also have to set up your /etc/resolv.conf with the IP addresses of your ISP's DNS servers (so that it looks the same as the one on the old PC when it's connected).
On your old PC (as root): echo 1 > /proc/sys/net/ipv4/ip_forward ipchains -P forward MASQ
Thanks Chris your solution worked 'straight out of the box'. I understand the entries in the /etc/resolv.conf file and why you have to put them there. Can you enlighten me as to what and why the 2 lines that I entered on the PC did?
The first line enabled packet forwarding on the PC - if you hadn't done this, the PC would have refused to transfer packets of data between its internal network interface and the the modem dialup interface. The second line is a default ipchains rule that says that all packets which are being forwarded must be masqueraded. Masquerading is where multiple computers can use a single IP address - so whether an external computer sends a packet to the PC or the laptop, it will be sending it to the same IP address (since you are only assigned one by your ISP. See the IP-Masquerade HOWTO for more info.
I had a look at the diald documentation and that looks straight forward enough. Might have to come back with some questions on the IPCHAINS.
No problem. Bye, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\