Hang up RAS connection automatically

I have setup a new Microsoft proxy server 2.0 as a gateway for a workgroup to access the Internet via modem connection. It works well, such as to cache URLs, automatically dial the ISP ...

The problem is, it seems the RAS connection cannot be disconnected automatically when there is no user to access the net. Of course, I noticed there is an option in Modem properties, Disconnect a call if idle for more than n minutes, but it looks the option has no any effect. I also have tried to use Dial-up Networking to manually call an ISP, then do nothing to wait for the line disconnect, still with no luck. :-( So, I have to hang up the RAS connection manually every time the clients have no interest on the net. :-((

Also, the Dialing Hour Schedule has no any effects to control client's access to the net. Why?


Any idea?
LVL 38
bbaoIT ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bbaoIT ConsultantAuthor Commented:
I already knew, to make the auto-dial schedule has effection, just start the schedule service.
0
eizensCommented:
It's possible, thatsome applications generate some traffic -- for example, some mail client, checking mail-box every 10 min, when default tim-out for dial-up is 20 min.
Best regards, Eizens
0
bbaoIT ConsultantAuthor Commented:
Thanks for your comment.

I have already disabled all the Server, Workstation and NetBIOS binding to the RAS WAN Wrapper, and I am sure there is no other traffic such as email checking, they are all stopped. But, no help! :-(

I have checked M$ newsgroups, and discovered that there were a lot of discusses on this topics there. It looks that is really a problem!

Any idea?
0
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

kuk010998Commented:
I spent the 400$ with MS on this subject. Result - "Sorry" but no refund.

In more detail - Proxy does NOT issue the equivalent of RASDIAL /DISCONNECT himself. MS will NOT add this functionality - reason I got being: customers in the US can afford waving their connections eternally. European market is not important enough. Proxy relies on the idle timeout feature of RAS. The RAS internal code is such that times under 2 minutes cannot be guaranteed - it may hang up earlier, but most probably it will add 60 seconds to the configured value, and round up to 2 minutes. Furthermore, it needs to have the same timeout entered  both under 'user options' AND under 'login options' (NOT logical but that´s what the MS guy said - and I have actually experienced this once). You already know to disable unneeded bindings - another thing the MS guy mentioned (I also already had done it).

>I am sure there is no other traffic
Even checked with SMS netmon - helped in one case where I had a SNA server continually broadcasting junk, but Proxy/RAS still is able to $%%& up without such help.

Did I forget something? Oh yes - I still had to reinstall several times to make it behave. Reinstall NT from Scratch, not only Proxy! I believe the RAS machinery is a little bit sensitive to repeated reconfiguring.

Another thing: Do you want to have clients connected via WinSock proxy only, w/o TCP/IP on the internal network? If so, and you want them to use the web proxy as well, you are in for more fun (MS could add a feature to handle this cleanly, but they won´t because mostly we worthless europeans would be interested). The instructions in the Proxy FAQ (which was on the web but MS cut all links leading to it when they introduced 2.0) say to configure the clients to use the internal IP number of the proxy machine so (not having TCP(IP bound to the NIC) I added MS loopback, gave it an IP and used that - worked like a charm for a few weeks then bang...

Last not-well-known Proxy trick: If you want IPX Winsock Clients, the client config needs to refer to the *internal* IPX adress, but setup configures the external one.

Good luck.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bbaoIT ConsultantAuthor Commented:
Did you try to stop the RAS service according the schedule you specified in order to disconnect the phone line? Or some other ways? Of course, I don't like the way to timely shutdown this server. :)

Also, did you notice that if you dial-up manually, the connection will be hang on time.

So, I think it is possible but needs more thinking. Anyway, it looks that is a bad egg made by M$. :-(

BTW, why M$ did not refund your money?
0
kuk010998Commented:
>Did you try to stop the RAS service according the schedule
Would be no problem but did not fit the bill in our case.
>Also, did you notice that if you dial-up manually, the connection will be hang on time.
You´re lucky. This thing I am hacking at had the no-hangup bug with manual dialing while Proxy 2.0ß was installed...
>bad egg made by M$. :-(
Well, as I said it should be easy for the Proxy team to fix - have Proxy issue the hangup himself - and as proxy has far better data to estimate future usage it could do so more intelligently than RAS... I still like Proxy but would prefer to deploy it in conjunction with an external ISDN router.

>BTW, why M$ did not refund your money?
Probably my fault - too p&%$ed off & overworked to press it. I had only 1 installation showing the prob, and as those people could not wait I had NT reinstalled 5 times over when the MS guy called, so I could not test easily... My own Proxy started being nasty some time after the case was closed.

Have fun

0
bbaoIT ConsultantAuthor Commented:
I got it to work!

One of your comments is most important for me: Furthermore, it needs to have the same timeout entered both under 'user options' AND under 'login options'.

It looks, the Logon Preferences is for Auto-dial, Auto-logon?

BTW, sometimes, the proxy dial-up to the Internet without any client request. What is it doing? For active caching? I use system default caching options.

Thanks!
0
kuk010998Commented:
>I got it to work!
Nice to hear.

>needs to have the same timeout...
>It looks, the Logon Preferences is for Auto-dial, Auto-logon?
As I said - not logical. The doc for this option dialog clearly states its values are used only in the case where you log in to a network via RAS from the Ctrl-Alt-Del Login box. But perhaps these values need to be read by a service which does not have access to the interactive user´s registry hive - so it looks in the .DEFAULT hive instead.

>BTW, sometimes, the proxy dial-up to the Internet without any client request. What is it doing? For active caching? I use system default caching options.
Apart from the fact that you should restrict active caching anyway (to keep proxy´s dialing behavior predictable) you may also have Exchange clients causing the proxy to dial. The pre-outlook (and outlook perhaps as well) will always use a winsock.dll if it finds one, even if not configured to do so. If your client is using Winsock Proxy via IPX, starting the Exch. Client will force the Proxy to dial... I´m too lazy right now to look it up, please do so yourself - check the proxy FAQ first (tells you how to tell the proxy client DLL to ignore Exchange), then KB articles Q152344, Q167030 (how to prevent Exchange Cl. to make TCP/IP calls).
0
ahoffmannCommented:
(keeping the points)
0
bbaoIT ConsultantAuthor Commented:
?
0
ahoffmannCommented:
bbao, you're wondering about my comment?
Well, it's just a trick to view this question as often as I like without paying the points again.
Will work as long as the programmers at E-E don't check the date.

I don't worry about the points, but I have a link now to this question, and want to see it immediately.
I'm using E-E as my knowlege-base too ;-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.