|
order tramadol IPMasquerading+Napster mini-HOWTO John E. Danner v1.6, 11 April 2000 This mini- order tramadol OWTO present a way to allow users behind an IPMasq'd system to use Napster. For order tramadol nformation about Napster, please see their website at Napster Homepage 1. DISCLAIMER In order to allow Napster to work correctly, you w order tramadol ll need to put a hole in the IP Masq'd system. This inherently presents potential order tramadol security problems. Unfortunately I cannot accept responsibility for this hack. S order tramadol if you do this, and you get burned because of it...not my fault. Great...now let order tramadol get into it... 2. INTRODUCTION After setting up a network for my roommates and order tramadol I, the problem arose that were not able to use Napster because of the IPMasquerad order tramadol ng I was doing. So I put some time into and came up with this solution to the pr order tramadol blem. I hope it works for you like it did for me...but I can't promise anything. order tramadol 3. BEFORE YOU BEGIN I have tested this solution with the following variables: 1 order tramadol Napster v2.0 Beta 5a (for Windows), visit Napster Homepage to ensure you have the newest version. 2. One external IP to the internet. order tramadol 3. Currently 6 systems behind the IPMasq'd machine, 4 using Napster. 4. Using Li order tramadol ux kernel version 2.2.12-20 (RedHat v6.1 Distribution) 5. IPMASQADM utility versi order tramadol n 0.42, get it Here 4. PROCEDURE First of order tramadol , ensure that you have the version (or newer) as listed above in the previous sec order tramadol ion. Also be sure they are installed correctly. 1. Install Napster on the Windows order tramadol client PC's 2. After installation and Napster user setup, this version of Napster order tramadol will begin "Finding Acceptable Local Data Port", after a short time an err order tramadol r will occur. Note: If you have already installed napster v2.0 beta 5a, under order tramadol the file menu select 'Properties.' 3. At this point select the second option "I a order tramadol not behind a firewall or I configured my firewall - Use TCP port:" 4. Enter order tramadol unique number. Each computer that will be running Napster will need to use a order tramadol ifferent port. It may be easier to use the last number of the IP address. For order tramadol xample: if the computer's IP is 192.168.1.2, then 6702 would be easiest to rem order tramadol mber. Note: make sure you don't pick ports for services that are running (i.e order tramadol 21, 110, etc...see /etc/services for a listing) 5. Repeats steps 1 - 4 for a order tramadol l systems that will be using Napster. 6. Now login to your IPMasq'd system and mo order tramadol ify a startup file of your choice (I choose to use /etc/rc.d/rc.local) The order tramadol following lines pass the connection to the Napster clients running on the hosts be order tramadol ind your IPMasq'd system. (add them to the startup file - you'll need to one c order tramadol mmand for each host using Napster) /usr/sbin/ipmasqadm portfw -a -P tcp -L xxx order tramadol xxx.xxx.xxx 6702 -R 192.168.1.2 6702 /usr/sbin/ipmasqadm portfw -a -P tcp -L x order tramadol x.xxx.xxx.xxx 6703 -R 192.168.1.3 6703 /usr/sbin/ipmasqadm portfw -a -P tcp -L order tramadol xxx.xxx.xxx.xxx 6704 -R 192.168.1.4 6704 /usr/sbin/ipmasqadm portfw -a -P tcp order tramadol L xxx.xxx.xxx.xxx 6705 -R 192.168.1.5 6705 Note: XXX.XXX.XXX.XXX is the IP add order tramadol ess of the Linux IPMasqing system (the Internet IP). Note: If you are having prob order tramadol ems with IPMASQADM or IPMasquerading in general see the IPMASQ-HOWTO. This docume order tramadol t is provided to help people who have their systems configured. The IPMASQ-HOWTO order tramadol ill get into a deeper discussion of port forwarding and IPMasq'd in general. 5. order tramadol DYNAMIC IP AREA (Dial-up or DHCP) See this and the Procedure section if your IP a order tramadol dress changes everytime you connect to the internet. Thanks to Peter Illmayer fo order tramadol the following submission to me: (This will work out best for those of you with d order tramadol namic IP's...) ------------------------------------------------------------ IN d order tramadol bian, I created a forward file in /etc/ppp/ip-up.d and put in #!/bin/sh ppp_ip=" order tramadol /sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print $2}' | sed -e /usr/sbin/ipma order tramadol qadm portfw -f /usr/sbin/ipmasqadm portfw -a -P tcp -L ${ppp_ip} 6702 -R 192.168. order tramadol .2 6702 This is in a 2.2.x kernel with ipmasqadm installed with the appropriate kernel modules compiled in. --------------------------------------------------------------- Charles J. Fisher pointed out that a similar script can be used if you are using DHCP, insert the following lines in a script that runs after you get your IP address. net_ip="`ifconfig eth0 | awk '/inet/ {sub(/addr:/,"",$2); print $2}'`" /usr/sbin/ipmasqadm portfw -f /usr/sbin/ipmasqadm portfw -a -P tcp -L ${net_ip} 6702 -R 192.168.1.2 6702 Of course the more machines using Napster behind your IPMasq'd machine the more port forwards you need to do. 6. FINISHED PRODUCT This system will allow Napster to operate properly behind an IPMasq'd system. Hopefully it works for you as well as it does for me! Please direct comments/suggestions/flame
|