Solved

Setup NAT routing on Windows XP Pro box.

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

734 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