LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-06-2002, 10:59 PM   #1
andyn
LQ Newbie
 
Registered: Apr 2001
Posts: 17

Rep: Reputation: 0
newbie help with port forwarding


Ok, first off I admit i am addicted to this game NWN.
Now I have a RH7.3 gateway with two nic cards. One is connected to my dsl modem, other is my internal LAN card.
I want to have the gateway host NWN games which uses udp on port 5121.
I have the firewall_2.4_strong ruleset from the HOWTO running.
I have tried adding the PREROUTING and FORWARDING rules for port fowarding as in a WWW server, but no dice. I can connect to the game via LAN or via the public IP address, but no one else can.

HEre are the latest rules i tried, maybe someone can shed some light...
#NWN server forwarding
$IPTABLES -A FORWARD -i ppp0 -o eth1 -p udp --dport 5121 \
-m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

#NWN SERVER port fowarding
$IPTABLES -t nat -A PREROUTING -p udp -d $EXTIP -j DNAT --to 192.168.1.1:5121

this is the order in which the rules appear. I am not clear on what the order should be...
192.168.1.1 is my gateway LAN address..

Thanks
Andy
 
Old 08-07-2002, 12:48 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Quote:
I want to have the gateway host NWN games

if the server is also the internet firewall then you should not need to forward any ports.

Is it another machine behind the firewall?
 
Old 08-07-2002, 07:20 AM   #3
andyn
LQ Newbie
 
Registered: Apr 2001
Posts: 17

Original Poster
Rep: Reputation: 0
OK, so does this mean I do not need any rule set?
 
Old 08-07-2002, 10:54 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you will need to have rules to open the ports used if it is firewalled.

The game you are running will open ports to listen on and it should work ok.

Port forwarding would be need if you are hosting a game behind a firewall router, the ports would need to be forwarded to the game host.
 
  


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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
Port 80 forwarding to port 22 with iptables zahoo Linux - Networking 3 02-22-2005 07:22 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM
IP Chains Newbie - port forwarding runico42 Linux - Networking 1 10-26-2002 02:02 PM

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

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