Welcome, Guest. Please login or register.

Author Topic: having (minor) prob. with the a.org proxy  (Read 1524 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kvasirTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2004
  • Posts: 249
    • Show only replies by kvasir
    • http://watertonian.freeiz.com/1200brag/index.html
having (minor) prob. with the a.org proxy
« on: March 21, 2010, 05:07:41 PM »
Hello all, posting this because I thought I was being clever, but I'm obviously missing something.

I REALLY like the proxy server @ aoproxy.extropia.co.uk, but I occasionally find an a.org link that goes to the main site. Thinking I was being clever, I resolved the IP address (208.69.36.132), and entered it into the Database->hosts settings in Miami, under the name of amiga.org, thinking this will re-route all the amiga.org links to the proxy. Though now, it results in an apache page of some sort.
I was wondering if a) Am I messing something up, and B) is what I'm attempting even possible? Thanks for any help.
--
Amiga 1200T 68060 50MHZ 192MB Fast
 40GB IDE, 100MB Zip, CD/RW, DVD/Rom
 Mediator+ 4MBSVGA, Soundblaster, 100mbps Ethernet
 Subway USB+ endless list of gadgets :-D
My full specs
 

Offline kolla

Re: having (minor) prob. with the a.org proxy
« Reply #1 on: March 21, 2010, 05:33:37 PM »
It's not that simple.
208.69.36.132 runs multiple virtual werbservers, one of them is the proxy. It is not set up to be a host for amiga.org so it gives you the default. As for is it possible? Sure, if 208.69.36.132 is set up to also answer for amiga.org it should be ok.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kvasirTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2004
  • Posts: 249
    • Show only replies by kvasir
    • http://watertonian.freeiz.com/1200brag/index.html
Re: having (minor) prob. with the a.org proxy
« Reply #2 on: March 21, 2010, 05:40:47 PM »
Ah, ic. OK, I'll try a few other tricks then. I'll bookmark it, and set up an alias in IBrowse. Perhaps tinker with it some more when I get bored. :D thanks!

Got the idea from a hack that "forces" an .iso image to a u3 thumbdrive via the windows installer. Turns out all you had to do is set up a webserver, rename the .iso to cruzer-autorun.iso, and edit the hosts database to include "127.0.0.1 u3.cruzer.com" or something like that. Was useful getting various OS autoboot CD's on my netbook. :D (Including AROS, if I ever figure out a way around the AHCI carp)
--
Amiga 1200T 68060 50MHZ 192MB Fast
 40GB IDE, 100MB Zip, CD/RW, DVD/Rom
 Mediator+ 4MBSVGA, Soundblaster, 100mbps Ethernet
 Subway USB+ endless list of gadgets :-D
My full specs
 

Offline johnklos

  • Full Member
  • ***
  • Join Date: Feb 2010
  • Posts: 190
    • Show only replies by johnklos
Re: having (minor) prob. with the a.org proxy
« Reply #3 on: March 21, 2010, 05:58:04 PM »
Quote from: kvasir;548996
Hello all, posting this because I thought I was being clever, but I'm obviously missing something.

I REALLY like the proxy server @ aoproxy.extropia.co.uk, but I occasionally find an a.org link that goes to the main site. Thinking I was being clever, I resolved the IP address (208.69.36.132), and entered it into the Database->hosts settings in Miami, under the name of amiga.org, thinking this will re-route all the amiga.org links to the proxy. Though now, it results in an apache page of some sort.
I was wondering if a) Am I messing something up, and B) is what I'm attempting even possible? Thanks for any help.

It'd be correct to call aoproxy.extropia.co.uk a proxy server, but it'd be confusing. A proxy server in the context of web browsing is more commonly a server which handles your GET requests for your browser. This is a proxy server, but it doesn't take your GET requests to amiga.org, fetch the content, then provide it to you. It does the latter two without any direct connection between your browser's GET and amiga.org.

What's happened is that your lookup failed. 208.69.36.132 is neither an amiga.org nor an aoproxy.extropia.co.uk IP address. Its PTR resolves to hit-nxdomain.opendns.com. I assume you're using OpenDNS and they're doing hijacking. When you try to look up an address which doesn't exist, they don't return a failure; instead they return an address which opens in your browser as an OpenDNS search page. This hijacking is BAD and I recommend you turn it off if you can, but that's another issue altogether.

Instead, use this address:

host aoproxy.extropia.co.uk
aoproxy.extropia.co.uk has address 83.223.99.47

Note that you won't be able to go to the real amiga.org if you do that unless you add a host entry for amiga.org but use http://www.amiga.org to visit the main site.

One other issue is that aoproxy.extropia.co.uk must have a virtualhost matching entry for amiga.org (which I doubt they do). They might do this if you ask since others might do something similar to what you're trying to do. In the meanwhile, you'll probably see the cPanel default screen (it seems they're using a plain, faceless hosting provider).
« Last Edit: March 21, 2010, 05:58:58 PM by johnklos »
 

Offline kolla

Re: having (minor) prob. with the a.org proxy
« Reply #4 on: March 21, 2010, 06:03:57 PM »
Ah, I just assumed 208.69.36.132 to be where aoproxy.extropia.co.uk is located, and didn't bother to look it up. Anyways, there's little you can do on the client to make this work, unless you wan to run a local proxy as well that does rewrites of your requests.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kvasirTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2004
  • Posts: 249
    • Show only replies by kvasir
    • http://watertonian.freeiz.com/1200brag/index.html
Re: having (minor) prob. with the a.org proxy
« Reply #5 on: March 21, 2010, 06:21:03 PM »
Ah, ok. Actually, I signed up for a freedns.org account awhile back when my ISP was having DNS issues. It allows the creation of a custom search screen, some adware site blocking, among other things. (It came reasonably well recommended, as far as privacy concerns go) Only prob. is their custom search setup isn't exactly Ibrowse compatable. I'll try that IP, and failing that, go back to tracking a memory bug in some software I'm writing. (Unfortunately, my wife's computer is busily scanning via AVG, so she's hijacked my netbook until its done... Along with its really nice Ubuntu install and C/C++ IDE.. Time to break out BareEd again...) Thanks for the assist! :-D
--
Amiga 1200T 68060 50MHZ 192MB Fast
 40GB IDE, 100MB Zip, CD/RW, DVD/Rom
 Mediator+ 4MBSVGA, Soundblaster, 100mbps Ethernet
 Subway USB+ endless list of gadgets :-D
My full specs
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: having (minor) prob. with the a.org proxy
« Reply #6 on: March 21, 2010, 06:35:22 PM »
One thing to note is that if your browser user agent doesn't contain the words "amigaos", "morphos", "aros" etc., you'll get a HTTP 302 and be redirected to the main site as the proxy thinks you are using a CSS capable browser.

During testing, I found that all the default browser spoofs for IBrowse still included the real OS name, so I added this redirect to reduce load on my server caused by a bewildering number of (presumably anonymous) guests that were using the site with Windows/IE etc.

In short, you need to be using a proper amiga browser. If you are spoofing using a custom user agent string, just add "amigaos" to it and you shouldn't ever be redirected.
int p; // A
 

Offline kvasirTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2004
  • Posts: 249
    • Show only replies by kvasir
    • http://watertonian.freeiz.com/1200brag/index.html
Re: having (minor) prob. with the a.org proxy
« Reply #7 on: March 21, 2010, 06:42:50 PM »
@Karlos
Just went to http://whatsmyuseragent.com/, and it kicked this back:
Quote

HTTP_ACCEPT:text/html;level=3, text/html;version=3.0, */*
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:*
HTTP_HOST:whatsmyuseragent.com
HTTP_REFERER:http://www.google.com/search?q=whats+my+user+agent%3F
HTTP_USER_AGENT:IBrowse/2.4 (AmigaOS 3.9; 68K)

The site works fine when logged in directly, was just trying to re-direct "links" to a.org to the proxy site instead of a.org. :-D
--
Amiga 1200T 68060 50MHZ 192MB Fast
 40GB IDE, 100MB Zip, CD/RW, DVD/Rom
 Mediator+ 4MBSVGA, Soundblaster, 100mbps Ethernet
 Subway USB+ endless list of gadgets :-D
My full specs
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: having (minor) prob. with the a.org proxy
« Reply #8 on: March 21, 2010, 06:43:34 PM »
Also, it's not impossible that the various regular expressions in the proxy code that rework URLs might have missed some. It isn't as simple as redirecting everything through the proxy as, depending on what is responsible for requesting the URL, it makes much more sense to leave the original alone (images, scripts etc) rather than send the browser to a script on extropia that then retrieves the original.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: having (minor) prob. with the a.org proxy
« Reply #9 on: March 21, 2010, 06:45:10 PM »
Quote from: kvasir;549029
The site works fine when logged in directly, was just trying to re-direct "links" to a.org to the proxy site instead of a.org. :-D


Oh right, I see :-)

Well, I was hoping to try and persuade the new owners if they'd consider creating a subdomain on the real site into which the proxy can be installed. I've not actually asked yet.
int p; // A