CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > SecureClient/SecuRemote
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-11-14
Junior Member
 
Join Date: 2007-09-03
Posts: 2
Rep Power: 0
jabba has an average reputation (10+)
Default SC R60 IPCONFIG Timeout

Hi,

I am having an Issue with SecureClient R60. Everything is working well and connecting via hotspots is working fine connecting to my corporate network.

We have a legacy script that is run on laptops and was provided by a third party software delivery company. The script uses the IPCONFIG /ALL to obtain IP information to allow the laptop to use the best possible Software Deployment Server.

As soon as I install Secure Client the script times out for around 7 mins due to the fact that the IPCONFIG /ALL is waiting for a return.

This problem occurs if I have the laptop physically connected or disconnected to the network.

If I disable the script all works fine and I can use IPCONFIG /ALL manually. If I uninstall SC all works well and I can use IPCONFIG /ALL manually from the command prompt.

Has anybody got any suggestions as to my dilemma?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 2007-11-14
Senior Member
 
Join Date: 2006-01-25
Posts: 926
Rep Power: 3
melipla has an average reputation (10+)
Default Re: SC R60 IPCONFIG Timeout

I would say there's a problem with the script. It must be parsing the output of ipconfig /all and is probably behaving differently because the ethernet adapter for SecureClient doesn't have a valid IP which is fubar'ing the logic behind identifying the proper SDS server. In my case the output of ipconfig is Wireless -> LAN -> SecureClient interface. The data from the SecureClient interface would overwrite the data from the LAN interface due to their display order.
Reply With Quote
  #3 (permalink)  
Old 2007-11-16
Junior Member
 
Join Date: 2007-09-03
Posts: 2
Rep Power: 0
jabba has an average reputation (10+)
Default Re: SC R60 IPCONFIG Timeout

Thanks for this Melipla. Here is a couple of functions I found in the script. It is using DMScript .dms if there is anything you spot please let me know.

'************************************************* *****************************************
'*
'* Returns the Subnet 1=a, 2=b, 3=c
'*
'************************************************* *****************************************
FUNCTION GetIPSubNet(nr AS INTEGER, Address AS STRING) AS STRING
DIM cnt AS INTEGER
DIM SubNet, TmpStr AS STRING

SubNet = ""
TmpStr = Address
'First get the part of the address
cnt = 0
WHILE cnt < nr
Subnet = SubNet + MID(TmpStr,1,InStr(TmpStr,"."))
TmpStr = MID(TmpStr,InStr(TmpStr,".")+1)
cnt = cnt + 1
WEND

'Then pad with .0 's
cnt = nr+1
Subnet = SubNet + "*"
WHILE cnt < 4
Subnet = SubNet + ".*"
cnt = cnt + 1
WEND

GetIPSubnet = SubNet
END FUNCTION 'GetIPSubNet

'************************************************* *****************************************
'*
'* This function gets the IP address, SubnetMask and Type (Network or Dial-In).
'* If will first Try the Network adapter if No adress Then the Dail-In adapters are tries
'* And the first one with a IP Address are retured
'*01-2004 : F.Maufrais: support of WindowsXP, French, German?
'*02-2004 : F.maufrais: take care of "DHCP" or "Dhcp" by a UCASE filter added
'************************************************* *****************************************
FUNCTION GetIPSettings(ByRef IpAddr AS STRING, ByRef SubMask AS STRING, ByRef AddrType AS STRING) AS BOOLEAN

DIM sIPGate, sIP, sKey as STRING
DIM line AS STRING
DIM rHdl, rHdl2, iEnumCnt, iDummy, bFound, fhdl as INTEGER
DIM title,FileName,FileName2,IpGate,testme as STRING

FileName = "c:\ipconfig.txt"
FileName2 = "c:\route.txt"
EXECUTE("cmd.exe /c ipconfig /all > " + FileName,TRUE,0)
EXECUTE("cmd.exe /c route print > " + FileName2,TRUE,0)

'Gather the active Default Gateway from Route Print.
If ExistFile(Filename2) THEN
fhdl = OpenFile(FileName2,O_READ)
IpGate = ""
WHILE NOT(EOF(fhdl)) THEN
ReadFile(fhdl,line)
If Instr(line,"Default Gateway") THEN
IpGate = TRIM(MID(line,InStr(line,":")+1))
ELSEIF Instr(line,"Passerelle par d") THEN
IpGate = TRIM(MID(line,InStr(line,":")+1))
ENDIF
IF IpGate <> "" THEN EXIT WHILE
WEND
CloseFile(fhdl)
ENDIF

'Compare IP config against active gateway.
'Gather IP Address.

IF ExistFile(FileName) THEN
fhdl = OpenFile(FileName,O_READ)

iEnumCnt = 0
bFound = True
WHILE NOT(EOF(fhdl)) THEN
testme=""
ReadFile(fhdl,line)

' Gather Network Connection Type

IF ((LEFT(line,5) <> " ") AND (InStr(UCASE(line),"ETHERNET")) OR (InStr(UCASE(line),"RING"))) THEN title=line

If InStr(UCASE(line),"DHCP") THEN
REPEAT 'loop until IP field is found (XP and 2000 are different!)
ReadFile(fhdl,line) 'next line
UNTIL (InStr(UCASE(line),"IP")<>0 OR EOF(fhdl) )
IF EOF(fhdl) THEN EXIT WHILE
'clean last character of line if garbagge (0x0d)
IF Asc(RIGHT(line,1))=13 THEN
line = LEFT(line,LEN(line)-1)
ENDIF
testme=TRIM(MID(line,InStr(line,":")+1))
ReadFile(fhdl,line) ' no use
ReadFile(fhdl,line) ' Gateway
'clean last character of line if garbagge (0x0d)
IF Asc(RIGHT(line,1))=13 THEN
line = LEFT(line,LEN(line)-1)
ENDIF
testme=testme+"#"+TRIM(MID(line,InStr(line,":")+1) )

'Testing if we recognize the active Network adapter seen by "route" command
If Instr(testme,IpGate) THEN
IpAddr=MID(testme,0,InStr(testme,"#")-1)
IF (InStr(UCASE(title),"ETHERNET")) OR (InStr(UCASE(title),"RING")) THEN
AddrType="Network"
ELSE
AddrType="Dial-Up"
ENDIF
EXIT WHILE
ELSE
ENDIF
ENDIF

WEND
'Gather Subnet Mask

SeekFile(fhdl,0)
WHILE NOT(EOF(fhdl)) THEN
ReadFile(fhdl,line)
If InStr(line,IpAddr) THEN
ReadFile(fhdl,line)
SubMask=TRIM(MID(line,InStr(line,":")+1))
IF Asc(RIGHT(SubMask,1))=13 THEN
SubMask = LEFT(SubMask,LEN(SubMask)-1)
ENDIF
ENDIF
WEND

ENDIF
CloseFile(fhdl)
DeleteFile(FileName)
DeleteFile(FileName2)
END FUNCTION

Last edited by jabba; 2007-11-16 at 03:39.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 14:55.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0