Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setup NAT routing on Windows XP Pro box.

Posted on 2006-07-15
4
Medium Priority
?
890 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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 …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

886 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