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 03-19-2006, 02:46 PM   #1
Jorek
Member
 
Registered: Sep 2005
Distribution: Slackware 13.1
Posts: 65

Rep: Reputation: 16
WC3 server behind gateway. Is this script OK?


Hello my fellow linux users!
My friend and I decided to game some WC3 the other day.
I suggested that I could host a server, but my computer is behind a gateway. I just wonder wether or not this little "script" of mine will work.

First of all, here is some facts about the gateway:
Its running slackware linux 10.2, running iptables and got two networkinterfaces:
eth1 -> connected to internet
eth0 -> connected to accesspoint(LAN)

This is the NAT rule I am using:'
Code:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
And now, will this iptables rule work?
Code:
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 6112:6119 -j DNAT --to 192.168.1.X:6112:6119
In advance, thanks!
Jorek

Last edited by Jorek; 03-19-2006 at 02:52 PM.
 
  


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
Gateway shift Script neos Linux - Networking 1 03-10-2005 05:11 AM
wc3 help dfownz Linux - Software 3 01-29-2004 09:13 PM
gateway, script feedback ... phoeniXflame Linux - Networking 1 10-06-2003 08:45 PM
Firewall\Gateway Script ASP Linux - Security 5 09-22-2003 11:15 PM
E-Mail notification to users via SMS (gateway script ok, but notification script?!?) Riku2015 Linux - Networking 10 03-08-2002 11:16 AM

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

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