Essentially, your P166 should be functioning as an internet gateway / router for your P600. Since you can ssh from the P600 to the P166, I assume you've already set up local area networking between the two boxes.
On the P600 box, you need to tell it to use the P166 box as the internet gateway. As root, do "route add default gw 192.168.xx.xx" (192.168.xx.xx is the internal ip address for the P166 box). Further, you need to edit the /etc/resolv.conf on your P600 box to include the ip addresses for your ISP's DNS servers; the entry in your /etc/resolv.conf is "nameserver 12.23.45.67" where 12.23.45.67 is your ISP's DNS server address. Since your P166 box already accesses the internet, you could probably just copy the /etc/resolv.conf file from the P166 box to the P600 box.
On the P166 box, you need to configure iptables on the P166 box to allow IP masquerading and network address translation (NAT) to allow the P600 to access the internet through your P166 gateway router. You indicate that you are using Slackware. Assuming that on the P166 box, the modem interface is "ppp0" and the ethernet interface is "eth0", then copy and paste the following code into /etc/rc.d/rc.firewall:
Code:
# !/bin/sh
IPTABLES='/usr/sbin/iptables'
# load iptables modules
/sbin/modprobe iptable_nat
/sbin/modprobe ip_conntrack
# enable ip forwarding
/bin/echo 1 > /proc/sys/net/ipv4/ip_forward
# flush tables
$IPTABLES -F
$IPTABLES -X
# enable masquerading to allow LAN internet access
$IPTABLES -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
# forward internal LAN traffic from eth0 to ppp0 internet interface
$IPTABLES -A FORWARD -i eth0 -o ppp0 -m state --state NEW,ESTABLISHED -j ACCEPT
# block out internet intrusion on ppp0
$IPTABLES -A INPUT -i ppp0 -m state --state NEW,INVALID -j DROP
$IPTABLES -A FORWARD -i ppp0 -m state --state NEW,INVALID -j DROP
As root, run /etc/rc.d/rc.firewall. On Slackware, /etc/rc.d/rc.firewall is executable by default, but if for some reason it isn't, then chmod +x /etc/rc.d/rc.firewall.
You should now be able to browse the internet from the P600 box. As a nice bonus, your P166 is also a firewall.
DISCLAIMER: I don't use dialup, so I am merely guessing that your modem interface is ppp0. On my rc.firewall script, my internet interface is eth0 (ethernet connected to cable modem) and my internal lan interface is eth1.