Link to home
Start Free TrialLog in
Avatar of mushtf
mushtf

asked on

Setting up dmz in windows xp

Hello Experts,Please help me setting up a DMZ server in windows XP.I have a computer with two NICs on two different networks. e.g (first 147.167.154.160 second 192.168.1.100)  Is it possible that windows could forward all traffic to a server that is running on a 192.168 network i.e when I access 147.167.154.160 it sends all requests to 192.168.1.150 (Server IP).I have seen that in windows firewall we can forward some perticular ports but is it possible to foraward all ports to one perticular IP address?
Avatar of William Elliott
William Elliott
Flag of United States of America image

Avatar of mushtf
mushtf

ASKER

The article talks about port mapping in windows xp which I alreday know how to setup. I wanted to setup a DMZ that is forwarding of all ports to  a perticular IP address.
hmm,. try netsh,..
C:\Program Files\Support Tools>NETSH ROUTING IP NAT ADD PORTMAPPING /?
Usage: add portmapping [name=]<string> [proto=]tcp|udp [publicip=]<IP address>|0.0.0.0
       [publicport=]integer [privateip=]<IP address> [privateport=]integer


FOR /L %variable IN (start,step,end) DO command [command-parameters]

    The set is a sequence of numbers from start to end, by step amount.
    So (1,1,5) would generate the sequence 1 2 3 4 5 and (5,-1,1) would
    generate the sequence (5 4 3 2 1)


the script below should forward ALL ports to 192.168.1.111,... not sure if you want to do that or not.

where <interface> is the public attached NIC interface determined by using
NETSH ROUTING IP SHOW INTERFACE

FOR /L %P IN (1,1,65535) DO NETSH ROUTING IP NAT ADD PORTMAPPING <interface> TCP 0.0.0.0  %P  192.168.1.111

Open in new window

Avatar of mushtf

ASKER

It didn't work, But I was able to fix it myself,
I downloaded wingate proxy server from
http://www.wingate.com/download.php
besides other features this product have, we can also configure it to open either slective ports or a full range of ports in the firewall anf forward all traffic to a particular IP address, it works great.
Avatar of mushtf

ASKER

Hello experts, I have answered my own question, please reimburse my points, Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial