Re: VPN using RASDIAL default gateway problem



Eugene,

Thanks once again.

it's very unlikely there is some kind of custom app running on my local box,
since I set this up using the normal connection setup wizard.

Here's the phone book entry with the ip masked.

[CON1]
Encoding=1
Type=2
AutoLogon=0
UseRasCredentials=1
DialParamsUID=204646281
Guid=1235A0A54EEFC54CB6905481880DEA30
BaseProtocol=1
VpnStrategy=1
ExcludedProtocols=3
LcpExtensions=1
DataEncryption=8
SwCompression=1
NegotiateMultilinkAlways=0
SkipNwcWarning=0
SkipDownLevelDialog=0
SkipDoubleDialDialog=0
DialMode=1
DialPercent=75
DialSeconds=120
HangUpPercent=10
HangUpSeconds=120
OverridePref=15
RedialAttempts=0
RedialSeconds=1
IdleDisconnectSeconds=0
RedialOnLinkFailure=0
CallbackMode=0
CustomDialDll=
CustomDialFunc=
CustomRasDialDll=
AuthenticateServer=0
ShareMsFilePrint=1
BindMsNetClient=1
SharedPhoneNumbers=0
GlobalDeviceSettings=0
PrerequisiteEntry=
PrerequisitePbk=
PreferredPort=VPN7-0
PreferredDevice=WAN Miniport (L2TP)
PreferredBps=0
PreferredHwFlow=1
PreferredProtocol=1
PreferredCompression=1
PreferredSpeaker=1
PreferredMdmProtocol=0
PreviewUserPw=1
PreviewDomain=0
PreviewPhoneNumber=0
ShowDialingProgress=1
ShowMonitorIconInTaskBar=1
CustomAuthKey=-1
AuthRestrictions=608
TypicalAuth=2
IpPrioritizeRemote=0
IpHeaderCompression=0
IpAddress=0.0.0.0
IpDnsAddress=0.0.0.0
IpDns2Address=0.0.0.0
IpWinsAddress=0.0.0.0
IpWins2Address=0.0.0.0
IpAssign=1
IpNameAssign=1
IpFrameSize=0
IpDnsFlags=0
IpNBTFlags=1
TcpWindowSize=0
UseFlags=0
IpSecFlags=0
IpDnsSuffix=

NETCOMPONENTS=
ms_server=1
ms_msclient=1
ms_psched=1

MEDIA=rastapi
Port=VPN7-0
Device=WAN Miniport (L2TP)

DEVICE=vpn
PhoneNumber=nnn.nnn.nnn.nnn
AreaCode=
CountryCode=852
CountryID=852
UseDialingRules=0
Comment=
LastSelectedPhone=0
PromoteAlternates=0
TryNextAlternateOnFail=1

If I change the network settings to use remote default gateway (or if I set
the flag and go back to network connections), I get this change:

IpPrioritizeRemote=1

If I open the connection and look at IPconfig, this causes the same remote
default gateway problem I see when using the rasdial api.

Similarly if I set the RASEO_RemoteDefaultGateway options using the api and
look back at the phone book file, the IpPrioritizeRemote flag gets set to 1.

So, it's pretty clear that this is the flag, and that it is being used by
the api call.

Reading the API documentation, it says this

RASEO_RemoteDefaultGateway:
If this flag is set, the default route for IP packets is through the dial-up
adapter when the connection is active. If this flag is clear, the default
route is not modified. This flag corresponds to the Use default gateway on
remote network check box in the TCP/IP settings dialog box.

So it still appears as if the rasdial api call is ignoring the
IpPrioritizeRemote/RASEO_RemoteDefaultGateway flag when connecting.

I would really like to sort this out!

Thanks again for your help and any further ideas.

Robin Hammond
Enhanced Datasystems Ltd



.



Relevant Pages

  • Re: forking problem with dbd::mysql
    ... child process prevents the automagic closing of the connection. ... Using InactiveDestroy flag seems a standard way since this module's author provide this flag. ...
    (perl.beginners)
  • Re: d_splice_alias() problem.
    ... The same dentry is found. ... and without the DCACHE_DISCONNECTED flag it ... you know you can short-circuit the connection ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Regarding Connection object behaviour
    ... I think marking a flag for GC is the job of the finalizer, which implements a separate queue for this than dispose, which is meant for relasing underlying unmanaged references explicitly. ... Whether the connection needs to be released is determined the GC system or connection pool, ... Please complete a re-registration process by entering the secure code mmpng06 when prompted. ... Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: mkdev returns 1 as exit code without changing its state from Define and making available
    ... type (-t Type flag), subclass (-s Subclass flag), connection location ... and the device logical name of the parent ... 0514-022 The specified connection is not valid. ...
    (comp.unix.aix)
  • Re: FileSystemWatcher Created() delay
    ... It's using FindFirstChangeNotification. ... The flag options correspond ... In the API, ... The try clause would end by exiting the loop. ...
    (microsoft.public.dotnet.general)

Loading