LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2001, 11:08 AM   #1
Phucen ey
LQ Newbie
 
Registered: Aug 2001
Posts: 5

Rep: Reputation: 0
iptables rules for MSN Gaming ZONE???


I've been trying some rules out and nothing seems to work. I have 2 games that I would like to play through my IPTABLES firewall: Motorcross Madness 2 and the Age of Empires Series. The following is what I wrote this morning, at work, and I can't test it until I get home. Am I thinking about this correctly? Do I have to allow the ports also through the INPUT and OUTPUT chains? If anyone has a working set for MSN Gaming Zone please... PLEASE post it. If I get something to work I will definately post it here. Thanks

[edited to say that 192.168.1.30 is my windows machine on the private network]

##############################################################################
# Open up ports for MSN Gaming Zone
$IPTABLES -t nat -A PREROUTING -p tcp --dport 47624 -i $extint -j DNAT --to-destination 192.168.1.30:47642
$IPTABLES -t nat -A PREROUTING -p tcp --dport 6073 -i $extint -j DNAT --to-destination 192.168.1.30:6073
$IPTABLES -t nat -A PREROUTING -p tcp --dport 6667 -i $extint -j DNAT --to-destination 192.168.1.30:6667

i=2300
while [ "$i" -le "2400" ]
do
$IPTABLES -t nat -A PREROUTING -p tcp --dport $i -i $extint -j DNAT --to-destination 192.168.1.30:$i
$IPTABLES -t nat -A PREROUTING -p udp --dport $i -i $extint -j DNAT --to-destination 192.168.1.30:$i
let "i+=1"
done

i=28800
while [ "$i" -le "29000" ]
do
$IPTABLES -t nat -A PREROUTING -p tcp --dport $i -i $extint -j DNAT --to-destination 192.168.1.30:$i
let "i+=1"
done

Last edited by Phucen ey; 08-15-2001 at 11:16 AM.
 
Old 08-16-2001, 06:35 AM   #2
smurf
Member
 
Registered: Apr 2001
Posts: 113

Rep: Reputation: 15
If i need to do any port forwarding I use this

May be of some use to you

http://www.tsmservices.com/masq/

Hope this is of use to you

Have Fun
 
Old 08-16-2001, 08:36 AM   #3
Phucen ey
LQ Newbie
 
Registered: Aug 2001
Posts: 5

Original Poster
Rep: Reputation: 0
I actually found a ruleset that finally worked, MonMotha's Firewall 2.3.7-pre7 and edited it to my needs. Thanks for the response though

FnA
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTABLES - rules in /etc/sysconfig/iptables The_JinJ Linux - Newbie 6 11-20-2004 02:40 AM
Gaming Zone help mobassir Linux - Games 4 07-23-2004 07:50 AM
Gaming Zone mobassir Linux - Software 1 07-21-2004 05:18 AM
MSN Messenger / Firewall Rules ShockTherapy Linux - Networking 1 11-13-2003 09:21 PM
msn zone chess client frankprogramer Linux - Software 1 10-27-2002 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration