Solved

Setup NAT routing on Windows XP Pro box.

Posted on 2006-07-15
4
874 Views
Last Modified: 2012-08-13
Hi.  I am trying to create an internet billing device using windows XP Pro.  The box has one LAN nic and one WAN nic.  What I need to do to achieve what I want is:

1) Setup NAT routing on winXP box, to allow clients on the LAN nic to access the internet on the WAN nic.
2) Utilise a firewall that can be 'controlled' via a VB COM application.

When an incoming connection is received on the LAN nic, I want to be able to query a SQL database and find out if that IP address has been enabled for access (which will be done via a web login page prior). IF it is enabled, then create a firewall rule to allow access.  

When the session finishes, then the app will remove the firewall rule.

Firstly, I cannot seem to enable NAT routing on the windows xp box.  Does anyone know how to enable this using 'netsh' as I believe that the RRAS stuff is present on an XP box, just without the GUI.

Alternatively is there a third-party NAT routing utility that doesnt come with proxy, firewall (unless I can configure the rules dynamically) etc.

TIA

TheFoot
0
Comment
Question by:Barry Jones
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Author Comment

by:Barry Jones
ID: 17116130
OK- got the NAT working:

1) Stopped the windows firewall/ICS service
2) Started the routing and remote access service
3) Added the registry entry HKEY_LM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\IPEnableRouter=1
4) Configured NAT using NETSH:
     netsh routing ip nat install
     netsh routing ip nat add interface "WAN" full
     netsh routing ip nat add interface "LAN" private

Now NAT routing works and clients can access the internet.

Still need to find a way to implement a firewall solution that reads its rules from a data source (text file, registry or database), something that I can change programmatically.

Thanks, TheFoot
0
 
LVL 23

Expert Comment

by:Erik Bjers
ID: 17116269
0
 
LVL 12

Author Comment

by:Barry Jones
ID: 17117582
Thanks Eb.  Looks good except for the fact that I cannot now enable windows firewall.  I have requested the closure of this post, and have started a new one that relates to the firewall issue:

http://www.experts-exchange.com/Security/Firewalls/Q_21920737.html

Perhaps we could continue there?

Cheers, TheFoot
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 17118014
Closed, 500 points refunded.
Netminder
Site Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question