Paulinjsh Posted July 25, 2006 Report Share Posted July 25, 2006 Tātad tāda problēma: Ir serveris ar m$ windows server 2003 Ir php 5.1.4 Tīklā viss iet caru m$ ISA kurā nodefinēti ieksējais dns serveris un ārējais. Problēma sekojoša: 1) Ar pārlūku no kastes varam atvērt jebkuru lapu bez problēmām 2) Ar fsockopen vai file_get_content varam atvērt tikai lokālā dns adreses. Verot kādu, kuru ārējo adresi izmetas Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Inetpub\blabla\examples.php on line 2 Warning: fsockopen() [function.fsockopen]: unable to connect to lv.php.net/manual/en/function.fsockopen.php:80 (Unknown error) in C:\Inetpub\blabla\examples.php on line 2 un Warning: file_get_contents(http://lv.php.net/manual/en/function.fsockopen.php) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden ( The ISA Server denies the specified Uniform Resource Locator (URL). ) in C:\Inetpub\blabla\examples.php on line 3 Kāds sakāries ar šo? Link to comment Share on other sites More sharing options...
Klez Posted July 25, 2006 Report Share Posted July 25, 2006 The ISA Server denies the specified Uniform Resource Locator (URL) uzliec apaci un straadaas :) vai ISA nau nokonfigureeta pareizi :) Link to comment Share on other sites More sharing options...
AcidRain Posted July 26, 2006 Report Share Posted July 26, 2006 Nevajag taisīt muļķīgas QUOTEs Es redzu, ka ISA neļauj atvērt attiecīgo adresi. Link to comment Share on other sites More sharing options...
Paulinjsh Posted July 26, 2006 Author Report Share Posted July 26, 2006 Es to arī redzu. Fiška tāda, ka caur browseri atver.. Tātad jautājums ko fsockopen() dara savādāk nekā prosta lapas atvēršana? Manas domas, ka neatrod DNS ierakstu.. Kāpēc? VVZ.. To Klez: apache uzlikt nevar.. Link to comment Share on other sites More sharing options...
Roze Posted July 26, 2006 Report Share Posted July 26, 2006 ehh nu kapēc mums ir google? http://www.google.com/search?q=The+ISA+Ser...esource+Locator Un pirmajā lapā: When I disable proxy in browser and have isa client installed and configured, I receive: ’ The ISA Server denies the specified Uniform Resource Locator (URL). (12202)’ What's wrong? (okej šitais nav konkrēti šis gadijums bet pieņemu ka notikumu gaita ir analoga) If you are trying to access a web site while using the Browser *on the ISA Server*, you need to create a static packet filter that allows outbound port 80 to all computer, or configure the Browser as a Web Proxy client, configuring it with the IP address of the *internal* interface of the ISA Server. Un palasot http://support.microsoft.com/kb/837451/en-us Pieņemu ka Firewallā ir arī program based rules .. tākā paskaties vai ir statiska rule.. Link to comment Share on other sites More sharing options...
Paulinjsh Posted July 26, 2006 Author Report Share Posted July 26, 2006 Tnx.. roze.. paprovēsim šitādu risinājumu.. Link to comment Share on other sites More sharing options...
Roze Posted July 26, 2006 Report Share Posted July 26, 2006 Bet kas attiecas uz fsockopen() iespējams ka tur sanāk DNS pieprasījums uz iekšējo DNS serveri un tad ja tas nemāk lookupot sanāk šaize Pamēģini : nslookup lv.php.net [tavsieksheejaisDNSserveris] Lai gan ja uz konkrētā servera tīkla konfigurācijā ir norādīti abi ieraksti viņam vajadzētu ja viens netrod taisīt pieprasījumu uz otru un tad hostam vaidzētu resolvēties.. Varbūt firewall problēmas ar kaut kādiem izejošiem tcp/udp uz 53 portu? Ja iespējams vajag pamēģināt firewallu uz testa brīdi varbūt nodiseiblot vispār un paskatīties kas notiek.. Ja viss strādā tad pamēģināt vai var ieslēgt logošanu un saprast kas tiek bloķēts.. Link to comment Share on other sites More sharing options...
Paulinjsh Posted July 26, 2006 Author Report Share Posted July 26, 2006 (edited) Roze, jau šo vakar mēģinājām. Atrod DNS normāli. Ielikām iekšējā DNS adresi tas pats. Vairāk velk uz ISA nepareizu konfigu. Edited July 26, 2006 by Paulinjsh Link to comment Share on other sites More sharing options...
AcidRain Posted July 26, 2006 Report Share Posted July 26, 2006 (edited) Es redzu, ka tu netiec cauri proxy serverim, tāpēc tev jānoskaidro proxy servera adrese un ports un jānorāda tas fsockopen. Te atradu diezgan patīkamu mazu piemēru: http://lv.php.net/manual/en/function.fsockopen.php#29005 Un te ir piemērs, ja vajag norādīt arī username un password: http://lv.php.net/manual/en/function.fsockopen.php#58196 Edited July 26, 2006 by AcidRain Link to comment Share on other sites More sharing options...
Paulinjsh Posted July 26, 2006 Author Report Share Posted July 26, 2006 Caur proxy viss nostrādāja.. Dīvaini.. Link to comment Share on other sites More sharing options...
Roze Posted July 26, 2006 Report Share Posted July 26, 2006 A jums tas ISA serveris ir kā transparents proxy vai ierakstīts pārlūka settingos? Link to comment Share on other sites More sharing options...
Paulinjsh Posted July 26, 2006 Author Report Share Posted July 26, 2006 Pārlūka settingos. Link to comment Share on other sites More sharing options...
Roze Posted July 26, 2006 Report Share Posted July 26, 2006 Nu tad jau nav brīnums.. es kaut kā biju aizdomājies ka drusku krutāk ir :) Link to comment Share on other sites More sharing options...
Paulinjsh Posted July 26, 2006 Author Report Share Posted July 26, 2006 Ne es tur admins :) Link to comment Share on other sites More sharing options...
Recommended Posts