Since the ip_masq_icq module doesn't work with this version, here is
something that might help.

 First you must have portfw support in Linux kernel. Once you do, here is a
 simple script which on my machine runs from ip-up:

 #!/usr/bin/perl
 #
 # CIGAN [EMAIL PROTECTED]
 # Enables ICQ support for ICQ 2000.
 # The port range must be configured from ICQ client 22000 - 22005.
 #

 $IPMASC="/usr/sbin/ipmasqadm";
 open(F, "/sbin/ifconfig ppp0|");
 while (<F>;) {
     next unless $_=~/inet/;
     @addr=split ' ';
     @myip=split ":", @addr[1];
 }

 system "$IPMASC portfw -a -P tcp -L  @myip[1] 22000 -R 192.168.24.128
22000";
 system "$IPMASC portfw -a -P tcp -L  @myip[1] 22001 -R 192.168.24.128
22001";
 system "$IPMASC portfw -a -P tcp -L  @myip[1] 22002 -R 192.168.24.128
22002";
 system "$IPMASC portfw -a -P tcp -L  @myip[1] 22003 -R 192.168.24.128
22003";
 system "$IPMASC portfw -a -P tcp -L  @myip[1] 22004 -R 192.168.24.128
22004";
 system "$IPMASC portfw -a -P tcp -L  @myip[1] 22005 -R 192.168.24.128
22005";

 In ip-down I just flash the tables ipmasqadm portfw  -f. Of course you need
 to configure your ICQ client to listen on this tcp range, if you think this
 is not enough you can add ports, make sure they are not already in use.

 P.S. if you have ISDN please replace ppp0 with ippp0.

 Have allot of fun.

 CIGAN
 --



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to