LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-03-2004, 07:58 AM   #1
thesnaggle
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 52

Rep: Reputation: 15
opening ports for my ps2


i am trying to open ports on my firewall to play madden nfl 2004 on my PS2 they say that i need to open these ports
10500-10519 tcp
13505 tcp
3658 udp
7777 udp
1791, 1792, 9995 and 9996 udp
Ports 10500-10519 and 13505 are TCP and only for outgoing connections
Ports 3658 and 7777 are UDP and used for connecting to other users and playing games

this is what i have and i am lost as to why it willnt work any ideas i can play CS just fine and can surf and do everything else
# Flush tables
echo "Starting firewall on Linuxbox"
iptables -F

#inside routering
echo "Starting internal routeing"
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
echo "........................."
iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "Internal routeing up"

#ftp and counter strike
echo "ftp and counter strike"
iptables -t nat -I PREROUTING -p tcp -d 4.42.161.244 --dport 21 -j DNAT --to 10.0.0.250
echo "........................."
iptables -I FORWARD -p tcp -d 10.0.0.1 --dport 21 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 27015 -j DNAT --to-destination 10.0.0.250
echo "ftp and counter strike up"

#Madden 2004
echo "Madden 2004"
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10500 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10501 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10502 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10503 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10504 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10505 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10506 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10507 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10508 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10509 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10510 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10511 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10512 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10513 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10514 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10515 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10516 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10517 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10518 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 10519 -j DNAT --to 10.0.0.3
echo "10500-10519 done"
iptables -t nat -I PREROUTING -p tcp -d "mine public IP" --dport 13505 -j DNAT --to 10.0.0.3
#udp ports
iptables -t nat -I PREROUTING -p udp -d "mine public IP" --dport 3658 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p udp -d "mine public IP" --dport 7777 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p udp -d "mine public IP" --dport 1791 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p udp -d "mine public IP" --dport 1792 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p udp -d "mine public IP" --dport 9995 -j DNAT --to 10.0.0.3
iptables -t nat -I PREROUTING -p udp -d "mine public IP" --dport 9996 -j DNAT --to 10.0.0.3
echo "madden loaded"

Last edited by thesnaggle; 04-03-2004 at 08:02 AM.
 
  


Reply



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
opening ports I think jleipert Linux - Security 7 09-04-2005 09:14 AM
Opening ports lunke Linux - Security 10 06-07-2005 03:04 AM
Ports still not opening! Help? spam4scott Linux - Networking 1 05-28-2004 12:48 AM
ps2 ports not working debaire Linux - General 1 10-17-2003 07:11 PM
Opening Ports george3k Linux - Newbie 7 02-16-2003 01:59 PM

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

All times are GMT -5. The time now is 08:44 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