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 06-04-2003, 05:05 PM   #1
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Rep: Reputation: 15
IP Masquerading (with iptables) and Planetside


Hello!

I recently bought the game Planetside for my PC (wow what a great game! ) I am playing it behind a Linux machine using IP Masquerading. To host a voice conference, it likes port 37000. I tried to add it, but it didn't work. Here is what I added (It only requires TCP, but I added UDP for the heck of it):

iptables -A PREROUTING -t nat -p tcp -d $extip --dport 37000 -j DNAT --to 192.168.0.2
iptables -A PREROUTING -t nat -p udp -d $extip --dport 37000 -j DNAT --to 192.168.0.2

Any ideas/suggestions are GREATLY appreciated!!!
 
Old 06-05-2003, 01:40 AM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
the rules look good, but try leaving out -d $extip and see what happens. Also, for voice....i'd think it would require udp..but as you are allowing both protocols....it doesnt matter.
 
Old 06-05-2003, 11:34 PM   #3
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
What i really wanna know is in what file do i put these IPTABLES rules, every body says what rules to put no one shows where.

Further more, as a newbie could you tell me how do i test that these are working, cuase right now my Linux box servers as proxy gateway and i'd like to make it serve as a masquerading router.

Thanks
 
Old 06-06-2003, 12:03 AM   #4
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
the 1st question is answered in the Router thread about where to put the rules. To test the rules you will have to try to access certain things from outside of your network and see what works and what doesnt.

if something goes wrong (like you loose your network connection due to
a strict firewall setup) just remember:

iptables -F
iptables -t name -F

to clear the firewall rules. do everything in steps, add a rule...test it...if it doesnt work, start over with that rule and do it till it works. that is the best way to do it, and when u are more comfortable, you can start to do things in chunks
when you have solid understanding of what is going on.
 
Old 06-06-2003, 09:12 AM   #5
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Hey Robert... I tried your suggestion, and no go. Any other ideas??? Thanks for your time!
 
  


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 : masquerading not possible iamtux Linux - Networking 3 06-04-2005 11:32 PM
iptables masquerading troubles caremaker Linux - Networking 6 01-07-2004 06:21 PM
iptables MASQUERADING at boot krishanprath Linux - Newbie 2 09-30-2003 07:41 AM
Iptables Masquerading GOLDF1NG3R Linux - Security 3 11-10-2001 11:51 PM
Iptables Masquerading GOLDF1NG3R Linux - Networking 4 11-01-2001 04:34 AM

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

All times are GMT -5. The time now is 01:46 PM.

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