/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


Hello:
        Here's my IP masquerading script for MSN zone.But I don't know why it
doesn't work.(can't join and host) Any body helps?Thx

#!/bin/sh

mic_zone_com="207.46.172.38/32"
Any="0.0.0.0/0"
rh62_cheung_com="127.0.0.1/32"
rh62_cheung_com="192.168.1.10/32"

# input rules


#tcp ports 28800-28912 must be open
ipchains -A input -p tcp -s $mic_zone_com  -d $rh62_cheung_com 28800:28912 -i
ppp0 -j ACCEPT


#Allow inbound connections on both tcp and udp ports 2300-2400
ipchains -A input -p tcp -s $mic_zone_com 2300:2400 -d $rh62_cheung_com
2300:2400 -i ppp0 -j ACCEPT
ipchains -A input -p udp -s $mic_zone_com 2300:2400 -d $rh62_cheung_com
2300:2400 -i ppp0 -j ACCEPT

# forward rules
ipchains -A forward -s 192.168.1.0/24 -d $Any -i ppp0 -j MASQ

# output rules

#Allow an initial outbound TCP connection on port 47624
ipchains -A output -p tcp -s $rh62_cheung_com 47624 -d $mic_zone_com -i ppp0
-j ACCEPT

#Allow outbound connections on both tcp and udp ports 2300-2400 and
ipchains -A output -p tcp -s $rh62_cheung_com 2300:2400 -d $mic_zone_com
2300:2400 -i ppp0 -j ACCEPT
ipchains -A output -p udp -s $rh62_cheung_com 2300:2400 -d $mic_zone_com
2300:2400 -i ppp0 -j ACCEPT

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to