Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proxy nur für bestimmte Domains verwenden
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1495
Location: Würzburg

PostPosted: Thu Jun 07, 2007 8:14 am    Post subject: Proxy nur für bestimmte Domains verwenden Reply with quote

Hallo,

ich habe ein Frage.

Und zwar würde ich gerne wissen, wie man mittels der BASH festlegen kann, welche Domain einen Proxy benötigt und welche nicht?
Im Normalfall läuft es ja umgekehrt (bei FF und Konsorten) - ein Proxy für alles oder man klammert aus, welche Domains NICHT mit den Proxy angesprochen werden.
Bei mir soll es anders laufen:

Ich möchte bspw. festlegen, das wenn ich mittels wget von testwiese.org was ziehe, ein proxy verwendet wird, alternativ aber über eine andere domain kein Proxy verwendet wird.
Möchte dies aber nicht ständig per Hand machen (sind zuviele Domains).
Gibts eine Lösung?
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu Jun 07, 2007 10:42 am    Post subject: Re: Proxy nur für bestimmte Domains verwenden Reply with quote

Naja innerhalb eines Browsers wäre die Lösung simpel - WPAD-Mechanismus benutzen und das wars.

Um das aber mit wget zu nutzen müßtest du dir ein kleines wrapper-script schreiben das den Mechanismus nachbildet, d.h. den entsprechenden Link an wpad.dat übergibt uns als Antwort entweder 'DIRECT' oder 'proxy:port' zurückbekommt.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1495
Location: Würzburg

PostPosted: Thu Jun 07, 2007 9:47 pm    Post subject: Reply with quote

Dann klär mich mal auf:

Was sind WPAD Methoden?
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu Jun 07, 2007 10:28 pm    Post subject: Reply with quote

ein paar Links dazu:
http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
http://homepages.tesco.net/J.deBoynePollard/FGA/web-browser-auto-proxy-configuration.html
http://en.wikipedia.org/wiki/Proxy_auto-config

und damit wget/curl damit umgehen können, kannst du mit http://code.google.com/p/pactester/ ein kleines wrapper-script stricken das erst den zu nutzenden Proxy ermittelt und mit den Werten die zurückkommen dann wget/curl 'füttern'.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum