Next Previous Contents

4. RECIPE

First off, ensure that you have the version (or newer) as listed above in the previous section. Also be sure they are installed correctly.

  1. Install Napster on the Windows client PC's
  2. After installation and Napster user setup, this version of Napster will begin "Finding Acceptable Local Data Port", after a short time an error will occur. Note: If you have already installed napster v2.0 beta 5a, under the file menu select 'Properties.'
  3. At this point select the second option "I am not behind a firewall or I configured my firewall - Use TCP port:"
  4. Enter a unique number. Each computer that will be running Napster will need to use a different port. It may be easier to use the last number of the IP address. For example: if the computer's IP is 192.168.1.2, then 6702 would be easiest to remember. Note: make sure you don't pick ports for services that are running (i.e. 21, 110, etc...see /etc/services for a listing)
  5. Repeats steps 1 - 4 for all systems that will be using Napster.
  6. Now, log into your Linux IPMasqing system as root and create/edit/modify the file: /etc/rinetd.conf
  7. Within that file, simply follow the scheme present below (for more info on this see the rinetd homepage Start /etc/rinetd.conf file here:
    XXX.XXX.XXX.XXX 6702 192.168.1.2 6702
    XXX.XXX.XXX.XXX 6703 192.168.1.3 6703
    XXX.XXX.XXX.XXX 6704 192.168.1.4 6704
    XXX.XXX.XXX.XXX 6707 192.168.1.7 6707
    
    End the /etc/rinetd.conf (don't include this line!)

Note: XXX.XXX.XXX.XXX is the IP address of the Linux IPMasqing system.

UPDATE: Thanks to Peter Illmayer for the following submission to me:

(This will work out best for those of you with dynamic IP's...)

------------------------------------------------------------
IN debian, I created a forward file in /etc/ppp/ip-up.d and put in
#!/bin/sh
ppp_ip="`/sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print $2}' | sed -e
's/.*://'`"
/usr/sbin/ipmasqadm portfw -f
/usr/sbin/ipmasqadm portfw -a -P tcp -L $extip 6702 -R 192.168.0.10 6702

This is in a 2.2.x kernel with ipmasqadm installed with the appropriate
kernel modules compiled in.
---------------------------------------------------------------

Note: 'rinetd' can also be used for any other connections (passing HTTP/POP3/Telnet/etc) and there may be other programs/implementations that do this, but I like using 'rinetd'


Next Previous Contents