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

x
?
Solved

VPN

Posted on 2002-04-10
6
Medium Priority
?
298 Views
Last Modified: 2012-05-04
Hi People,

i am hosting my own small site at home, i am on a LAN, with an internal 192.168.0.14 IP address, to start my domain, i need to start a VPN connection to 192.168.0.1 that will assign me an External IP address, lets say 195.138.71.100 for example, then this becomes the IP of my site, still easy !!

is there ANY WAY, that i can get this VPN connection automatically started as a system service ??

i need this connection to be ON all the time, even if i log off, or if the system gets restarted at night after a power loss, i want it to be automatically restarted without me logging in a starting it !!

Or am i returning to the linux variant ?? ;-)
0
Comment
Question by:neostudio
  • 3
  • 2
6 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 6931857
I would look into an automation program that will automatically log you in on startup. Any good scripting language can do this.

VB, WSH etc

See:

http://www.microsoft.com/ntserver/techresources/deployment/NTserver/scriptit3.asp

www.winbatch.com 

 http://www.hiddensoft.com/AutoIt/   No auto-record - uses scripts
  http://www.zdnet.com/downloads/stories/info/0,,000C94,.html                 
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000VPA
http://download.cnet.com/downloads/0-10106-100-1572888.html?tag=st.dl.10001_103_1.lst.td
http://download.cnet.com/downloads/0-10101-100-907068.html?tag=st.dl.10001_103_3.lst.td
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000UNC
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=000U5V
http://www.zdnet.com/downloads/stories/info/0,,000HVD,.html

http://www.mkssoftware.com/eval/.  unix like automation and script tools

Mouse automation
http://download.cnet.com/downloads/0-1461991-100-1549367.html?tag=st.dl.10001_103_5.lst.td
Win/Dos scripting
http://download.cnet.com/downloads/0-10106-100-902089.html?tag=st.dl.10001_103_5.lst.td
Scripting tool.
http://download.cnet.com/downloads/0-1461989-100-914047.html?tag=st.dl.10001_103_5.lst.td
------------------------
Phantom scripts and EXE files can be created
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=00140E

I hope this helps !


   Rebol scripting language (www.rebol.com) lightweight cross-platform scripting language. Automate anything you want   on your system.

---
download.com
 shareware.com
 zdnet.com

0
 
LVL 3

Author Comment

by:neostudio
ID: 6933295
Hi SysExpert,

you will need to excuse me, because what i am looking for is not the automation proccess starter, i am also a Delphi developer and i can write my own utility to start the connection .

I am asking if there is a way i can invoke the kernel or any other dll to automatically start the connection, well in windows 98/ME it is done like this..

rundll32 rnaui.dll,RnaDial "My-Connection-Name"

BTW ))

how dose windows 2000 server handle persistent VPN connections at all, i just cant get it, lets assume this VPN connection i have is here to insure the work of a router, do i have to be here all the time to start it ??

the matter is that it is started as a user and not as a system service, this is the bad aspect here, and i want it as a system service !!

any more ideas ???


PS >>
Thanks for the great links, i learned a lot from them, and BTW) again, update your bookmarks, some are already inactive !!

regards,
</Ruslan>
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 6935630
I Hae a VPN going into work using a third party client. It has to be run manually also.

Not all programs and services can be setup the way you want.

You may be able to do something with the win2k Resource kit. Srvany program
-----------
From: schmiegu      Date: Monday, September 25 2000 - 09:55AM EDT

                     This information applies to apps installed as service with srvany.exe, but maybe it applies to other services as well:
                     HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService\Parameters:
                     AppDirectory: REG_SZ C:\WorkDir
                     or:
                     In Services, click the service, and then, in the Startup Parameters box, type the full command line required to start the application, and include the
                     /D switch, as in the following example:

                     /D C:\\Tmp D:\\Tools\\Vi.exe C:\\Tmp\\FOO

                     You must type two backslashes (\\) in order to specify a single backslash (\).

-------------------------
http://support.microsoft.com/support/kb/articles/q267/5/74.asp
Leave a copy of the backup program running in the background. Backup should poll the tape drive
     periodically looking for media changes, and should help media changes be recognized prior to the
     real scheduled backup job running. You can use the Srvinstw.exe Microsoft Windows 2000
     Resource Kit program to install the Srvany.exe tool, and then permit Ntbackup.exe to run as a
     service hidden from view.

     Install the Srvany.exe Tool as a Service

          1.Copy the Srvany.exe tool included in the Windows 2000 Resource Kit to the
               %SystemRoot%\System32 folder on your computer.

          2.Start the Srvinstw.exe program.

          3.Click Install a service, and then click Next.

          4.Click Local Machine, and then click Next.

          5.Type srvany under Service name, and then click Next.

          6.Locate the %SystemRoot%\System32\Srvany.exe file, double-click the file name, and then
               click Next.

          7.Click Service in it's own process, and then click Next.

          8.Click System Account, and then click Next.

          9.Click Automatic, and then click Next.

         10.Click Finish.

     Configure the Srvany Service to Run Ntbackup.exe as a Service

          1.Start Registry Editor (Regedt32.exe) to view the following key in the registry:

                         HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SRVANY

          2.On the Edit menu, click Add Key..., type Parameters for the key name, and then click OK.

          3.Click to select the Parameters key, and then click Add Value under the Edit menu. Enter
               Application for the value name, and use a data type of REG_SZ.

               NOTE: Make sure you specify the full path to the NTBackup.exe file. Srvany.exe does not
               load the program if you use the %SystemRoot% variable in the path. For example:

                         HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SRVANY Application:
                         REG_SZ: C:\Winnt\System32\Ntbackup.exe

          4.Quit Regedt32.exe.

          5.After you shutdown and then restart your computer, backup starts as a background service.
               Ntbackup.exe should be running and be visible in Task Manager under the Processes tab, and
               permits backup to poll tapes looking for media changes.
-------------------------------
I hope this helps !


0
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

 
LVL 3

Author Comment

by:neostudio
ID: 6957600
Please Excuse Me SysExpert,
but this was not the thing i am looking for .

I found a function in the kernel32.dll called
RASNodeActivate('X', Y, Z, D);

Where...
x- the connection name
y- start after y seconds
z- weather or not to use auto disconnect
d- number of retris before failing

i found it on some site about undocumented Win2K function o\n geocities if i remember, i implemented it and everything is working fine !!

i might need to delete the question, if needed i can post you a 50 points question for the great links you provided !!
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 7019841
Fine, no problem.

I'm glad you got this resolved !
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 440 total points
ID: 7162008
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

971 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