Import Assumed Users by IP

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Import Assumed Users by IP

Postby jiandc » Nov 12 04 12:42 am

Is there a way to import list of assumed users by IP from a text file.

jian
jiandc
 
Posts: 85
Joined: May 11 04 12:47 am

Postby Pascal » Nov 12 04 8:11 am

No, not currently. What you can do, although it is a bit involved, is to build it up as a registry file using a text file editor. Simple export the current list, then duplicate the entries at the bottom with your importable data (Using search/replace for headers/trailers on each line) and then import it.

Note, that involves editing and working with the registry. All applicable warnings - like having a backup, etc. apply.
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby jiandc » Nov 20 04 9:17 pm

I checked the registry and found the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Locations]

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Locations\Location0]
"InternalFilter"="010011136030"
"Filter"="192.168.0.1"
"Username"="user1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Locations\Location1]
"InternalFilter"="010011136050"
"Filter"="192.168.0.2"
"Username"="user2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Qbik Software\WinGate\Locations\Location10]
"InternalFilter"="010011143134"
"Filter"="192.168.0.3"
"Username"="user3"

I can make a .reg file similar to the one above but I dont understand "InternalFilter". What does this number represent?


jian
jiandc
 
Posts: 85
Joined: May 11 04 12:47 am

Postby Pascal » Nov 20 04 9:24 pm

I have no idea offhand. I'll check for you Monday when I get back in the office.
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby Pascal » Nov 22 04 8:37 am

Ok. That is the filter string - it tells WinGate how to determine if the IP address given matches what you want to assume for that user.

It's quite an interesting bit of code, because it takes wildcards into account, etc. The ones in your registry look wrong; however. For an IP address of 192.168.0.1 it should be 192168000001. For 192.168.0.2 it should be 192168000002.

This is an interesting thing though - I think it's well worthwhile to add this to our list of future features; to make importing lists a bit easier.
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby jiandc » Nov 22 04 5:53 pm

I get the idea now regarding the "InternalFilter".
I'll try to make 2 entries in a .reg file and import it.
jiandc
 
Posts: 85
Joined: May 11 04 12:47 am


Return to WinGate

Who is online

Users browsing this forum: No registered users and 6 guests