First off, ensure that you have the version (or newer) as listed above in the previous section. Also be sure they are installed correctly.
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 6707End 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'