by logan » Nov 09 10 3:12 pm
Hi,
Is freedom a product that you would like to make work together with WinGate, or are you using it as an example for how you would like your WinGate proxy to behave? I did a google search for "freedom+proxy" and as you could probably imagine, I got tons of different results. If you could provide a link to the product that you are referring to, that would be great.
I don't fully understand your question, but it sounds like you want to create a webpage that allows users to register an account that allows them to gain access to WinGate's WWW Proxy Service. Am I correct?
WinGate doesn't provide any API's that would allow an external program to view or manage it's user database, but there are a few other ways that I think this could be achieved.
1. Use an ODBC database
WinGate 7 includes the ability to query a database in policy. Using this feature, you could write a table of users in a database (such as MySQL) and then in a WWW Proxy Policy, query the database to see if the connecting client should be granted access to the proxy. Then you could write a simple web page that add's new users to the database. However, because this solution doesn't employ WinGate's internal user database, you won't be able to use normal HTTP authentication methods so internet traffic in the log files will not be associated with user accounts. If this is not a drawback for you, this would be a very quick and easy solution to set up.
2. Integrate with an Active Directory
This may be overkill for your scenario, but WinGate is able to integrate with an Active Directory user database, and there are .NET API's available that provide ways to view/manipulate the AD user database from a .NET powered website. This may be more complex to set up than an ODBC database, but would have the advantage of inserting users directly into WinGate's user database where WinGate can employ HTTP (Basic/NTLM) authentication rather than requiring assumptions in policy. Another advantage would be that you will see usernames associated with their internet access in the log files rather than just seeing everyone as guest.
3. Telnet Administration
If you are using WinGate 6, there is a telnet proxy that also provides a simple administration interface for managing users and services. You could write scripts that connect to WinGate's telnet administration service and run various commands based on what you want to do (i.e. adding/deleting users). This could be quite a tedious process though, especially if you want to be able to view/manage/delete users from a web page later on.