Networking Forums

Networking Forums > Computer Networking > Linux Networking > Iptables, DMZ host or port forwarding

Reply
Thread Tools Display Modes

Iptables, DMZ host or port forwarding

 
 
Michael Parmeley
Guest
Posts: n/a

 
      11-25-2003, 12:10 AM
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
 
 
 
 
Horst Knobloch
Guest
Posts: n/a

 
      11-25-2003, 02:34 PM
Michael Parmeley <(E-Mail Removed)> 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
 
Michael Parmeley
Guest
Posts: n/a

 
      11-25-2003, 10:24 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables port forwarding Miguel Sanders Linux Networking 1 10-11-2007 12:19 PM
Port forwarding with iptables ??? Joe Attardi Linux Networking 4 05-10-2004 11:45 PM
iptables port forwarding anonymous Linux Networking 1 01-22-2004 09:25 AM
port forwarding with iptables Allan Bruce Linux Networking 9 09-24-2003 04:31 PM
Port Forwarding with iptables Allan Bruce Linux Networking 0 08-27-2003 11:44 AM



1 2 3 4 5 6 7 8 9 10 11