LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2013, 06:55 AM   #1
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Rep: Reputation: Disabled
how to download pkgs using proxy server


Hi,

I have Centos 6.2. I have been given the Proxy server IP address
I have to download pkgs using wget . if i use the IPaddress in browser it works fine. but if i use on shell it doesn't.

I had setup the variable http_proxy=http://172.20.3.16:8080 then i tried to wget . i get the block page error. I am not sure why it is happening. Below are the logs and the routes of the machine. I am able to ping the proxy ip address and telnet the port

[root@DEV-HMAERS1 download]# wget http://mirror.centos.org/centos/6/os...el6.x86_64.rpm
--2013-07-19 06:45:48-- http://mirror.centos.org/centos/6/os...el6.x86_64.rpm
Connecting to 172.20.3.16:8080... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: http://172.20.3.19:15871/cgi-bin/blo...sion=738201989 [following]
--2013-07-19 06:45:49-- http://172.20.3.19:15871/cgi-bin/blo...sion=738201989
Connecting to 172.20.3.16:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1535 (1.5K) [text/html]
Saving to: ‚blockpage.cgi?ws-session=738201989‚

100%[==================================================================================================== ========================================================>] 1,535 --.-K/s in 0s

2013-07-19 06:45:49 (239 MB/s) - ‚blockpage.cgi?ws-session=738201989‚


Routes:

[root@DEV-HMAERS1 download]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.20.9.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
0.0.0.0 172.20.9.1 0.0.0.0 UG 0 0 0 eth0


Thanks,

Last edited by project.linux.proj; 07-19-2013 at 06:57 AM.
 
Old 07-19-2013, 08:32 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,166

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Check the contents of the downloaded "blockpage.cgi" that may give you some reference as to why your traffic is being denied. Then check with your proxy admin to see if what you are doing is allowed.
 
Old 07-19-2013, 11:56 AM   #3
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Got it solved. The traffic was opened for specific sites not for all. It is solved now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackpkg install-new / new pkgs in mirror / kdei pkgs ahlr Slackware 4 07-01-2013 05:33 AM
[SOLVED] slackpkg says no pkgs to update after installing 14.0, but there are pkgs in /patches integrale16 Slackware 5 02-26-2013 04:48 PM
Slackpkg question...download new versions of installed pkgs Josh000 Slackware 5 02-20-2011 08:18 PM
Monitoring users' download informatin in the proxy server, OS is CentOS Fahima Linux - Newbie 1 01-25-2010 09:50 AM
download pkgs from RHN? Uday123 Linux - Software 1 09-11-2009 06:15 AM


All times are GMT -5. The time now is 06:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration