Re: proxy

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Thu, Jun 19, 2003 at 02:16:04PM +0000, Lucius Hilley wrote:
> 
> 
> Derek Parnell wrote:
> > 
> > 
> > On Thu, 19 Jun 2003 01:22:43 -0500 (06/19/03 16:22:43)
> > , <gertie at visionsix.com> wrote:
> > 
> > >
> > > I was just told by some long-time nix-users that Eu can't be a http 
> > > proxy 
> > > on nix, as i thought.
> > 
> > Unless I have evidence to the contrary, I must disagree with your 
> > source. 
> > Did they give the reason(s) for saying the Eu has such a limitation?
> > 
> > -- 
> > 
> > cheers,
> > Derek Parnell
> > 
> 
> I believe that jbrown has provided the sockets for linux that would be 
> needed for her proxy task.  A port of TCP4U to linux. IIRC.

I did that, but I'd recommend socketlib.eu, which accesses BSD sockets
directly. This gives support for asych sockets, unlike TCP4u.

> What kat is asking for is a sort of reverse proxy.  With bells and 
> whistles.
> 
> Bells & Whistles:
> *  Somehow be told what her dynamic IP is this time.
>    *  Web interface?
>    *  Windows Client side program to send her IP to the proxy?

It would probably be easiest if the program read the IP from a local file
or something, which in turn could be uploaded by kat every time her IP changes.

The silver lining with the method I suggested is that you only need a simple
gets() to get the IP in that case, which is easily done via Eu.

> *  Denial to foward to her from an IP because she said so.
>    *  Web interface?
>       *  Add this IP to the list.
>          You best date it in your database.
>          She will probably want to know its age.
>          Add a lifetime feature? - Length of time to Refuse.
>       *  Automatically removed Aged IP's?
>       *  Manual method to remove IP's

Again, uploading of a file with a list of ips (and ages) would be easiest.
This would require that the program be more fault tolerant (in case kat
makes a typo in the file or somesuch), but its still easier than writing a
web interface just for this purpose (although perhaps not as secure).

As for checking the ip of the connector against the list, accept(2) will return
the address of the caller in a C struct, so there is no problem with the IP's
retrival.

> *  Settable Max # of connections to kat limit.
>    *  She is on dial-up!
>       How many connections could she possibly handle at the same time?

In the BSD socket interface (to be more specific, in the listen(2) function),
the max # of connections is a required parameter, so there should be no
problems there.

> *  Wants it to be in EU.  Period.
> REASON:
>    *  Define new rules and features for the proxy using Euphoria code.
>       She knows Euphoria, mIRC, and probably DOS batch.
>       As smart as she is.  I don't think she wants to go out learning
>       any new languages all over the place.  PERL, Python, C, Java...   
>       I'm sure the list goes on.  Appears to have allergic reactions
>       or something. (Reality: Learning is very time consuming.)

No comment.

> 
> I don't have more to add at the moment.
> Other irc.sorcery.net #euphoria chatroom participants of this topic 
> should add their two cents worth to what I have stated here.
> 
> kat's proxy program has its best chance to see the light of day when
> all of its expected features and problems have been exposed.
> 
> I truly hope that her project does come to exist.
> It is simply not within my current programming abilities.
> It would take me at least 2 or 3 years at my current rate of learning
> and devotion.  (I have a severe lack of devotion.)
> 
>     Sincerely, Lucius L. Hilley III - Unkmar
> 
> PS: Kat, please don't be overly offended by my remarks here.
> 
> 

I have a demo program that uses socketlib.eu; it's a very simple proxy (relay
would be a better term).

It doesn't work yet, but thats mainly because I haven't taken the time to work
on it a lot.

jbrown

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   | http://verify.stanford.edu/evote.html

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu