Solved

Setup NAT routing on Windows XP Pro box.

Posted on 2006-07-15
4
870 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
  • 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 8.1 PRO -- Windows XP dual boot / virtual machine ? 5 116
Dell XPS 1640 Laptop motherboard replacement 31 174
Backup Window XP mode 6 130
Windows XP image 11 115
Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

785 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