NAT32 Software Router Support Forum
How to prevent Internet access when NAT32 isn't running? - Printable Version

+- NAT32 Software Router Support Forum (http://www.nat32.com/Forum)
+-- Forum: NAT32 Version 2 (http://www.nat32.com/Forum/forumdisplay.php?fid=1)
+--- Forum: FAQs (http://www.nat32.com/Forum/forumdisplay.php?fid=5)
+--- Thread: How to prevent Internet access when NAT32 isn't running? (/showthread.php?tid=17)



How to prevent Internet access when NAT32 isn't running? - nat32support - 04-28-2016

Some users may want to prevent the computer from accessing the Internet at times when NAT32 isn't running.

This can be achieved as follows:
  • Configure your Windows Internet interface to use a fixed IP address, no gateway and your normal DNS server address.
  • Configure NAT32 to use your gateway on that Internet interface.
  • Add these lines to your NAT32 user.txt file:
          ip p
          winroute add 0.0.0.0 0.0.0.0 dmap pip
  • Add this line to your NAT32 exit.txt file:
         winroute delete 0.0.0.0 0.0.0.0 dmap 

The above commands will make NAT32 add a default route to the Windows routing table on startup, and then delete that route on exit. With no default route, Windows cannot access the Internet. Access to local machines is unaffected.

NOTE: Manipulation of the Windows routing table requires privilege.

Applies to NAT32 Build 22248 (and later).