Iptables, DMZ host or port forwarding

This is a discussion on Iptables, DMZ host or port forwarding within the Linux Networking forums, part of the Linux Forums category; Hello, I don't know much about iptables I use it for IP Masquerading, I found a rc.firewall file ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-25-2003
Michael Parmeley
 
Posts: n/a
Default Iptables, DMZ host or port forwarding

Hello,

I don't know much about iptables I use it for IP Masquerading, I found a
rc.firewall file in a HOWTO which set up my IP masquerading.

What I am trying to accomplish is to get the firewall to ignore packets to
my PlayStation 2 and just let them through and back out. Through some
reading I think this would be called a DMZ Host. The IP to my PlayStation 2
was given statically and it is 192.168.0.3. Would anyone know how to do
this? If you need any other info please let me know.

Just for background I am having some trouble with my headset when playing
online games on the PS2. Through a lot of google searching this is
generally caused by a router/firewall blocking some of the packets to the
PS2. The options given to fix it were:

1) Setup the PS2 as a DMZ Host
2) Forward port 6000 to port 6999 (how?)
3) Plug PS2 straight to the cable modem.

I would prefer option 1 or 2.

Any help would be greatly appreciated!
Reply With Quote
  #2 (permalink)  
Old 11-25-2003
Horst Knobloch
 
Posts: n/a
Default Re: Iptables, DMZ host or port forwarding

Michael Parmeley <mjparme@hotmail.com> wrote:

[...]
> What I am trying to accomplish is to get the firewall to ignore packets
> to my PlayStation 2 and just let them through and back out. Through some
> reading I think this would be called a DMZ Host. The IP to my PlayStation
> 2 was given statically and it is 192.168.0.3. Would anyone know how to do
> this? If you need any other info please let me know.
>
> Just for background I am having some trouble with my headset when playing
> online games on the PS2. Through a lot of google searching this is
> generally caused by a router/firewall blocking some of the packets to the
> PS2. The options given to fix it were:
>
> 1) Setup the PS2 as a DMZ Host


Some SOHO router manufacturers mis-use the term DMZ host. They
use the term for a host on the internal net which gets all incoming
traffic not belonging to existing communications to other hosts.
Such a "DMZ host" is quite exposed to the Internet. If at all
possible I would avoid such a configuration.


> 2) Forward port 6000 to port 6999 (how?)


You might try the following. Add the next rule to your firewall
script:

iptables -t nat -A PREROUTING -i $EXT_INTF -p udp --dport 6000:6999 \
-j DNAT --to 192.168.0.3

where $EXT_INTF is the device name of your external interface, eg.
ppp0 or eth1.


Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
Reply With Quote
  #3 (permalink)  
Old 11-26-2003
Michael Parmeley
 
Posts: n/a
Default Re: Iptables, DMZ host or port forwarding

Thanks for the response. I wasn't to worried about setting my PS2 up as a
DMZ Host since as far as I know there are no current hacks to the PS2. Even
if there were what could they do that could be damaging?

I will try your forwarding suggestion. Thanks!

Horst Knobloch wrote:

>> 1) Setup the PS2 as a DMZ Host

>
> Some SOHO router manufacturers mis-use the term DMZ host. They
> use the term for a host on the internal net which gets all incoming
> traffic not belonging to existing communications to other hosts.
> Such a "DMZ host" is quite exposed to the Internet. If at all
> possible I would avoid such a configuration.
>
>
>> 2) Forward port 6000 to port 6999 (how?)

>
> You might try the following. Add the next rule to your firewall
> script:
>
> iptables -t nat -A PREROUTING -i $EXT_INTF -p udp --dport 6000:6999 \
> -j*DNAT*--to*192.168.0.3
>
> where $EXT_INTF is the device name of your external interface, eg.
> ppp0 or eth1.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0