LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-28-2010, 01:06 AM   #1
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Rep: Reputation: 15
internet access via proxy server


centos 5.4 distro using on remote machine

i have remote site where internet access given via squid proxy. so when we enter in browser it start working internet fine.

but on command line(bash shell prompt terminal) like wget,ping,nslookup,traceroute etc these commands does not work.

advise where what work around needed?
 
Old 04-28-2010, 01:36 AM   #2
barshani
LQ Newbie
 
Registered: Sep 2004
Location: Trivandrum
Distribution: Redhat
Posts: 18

Rep: Reputation: 3
you should try the following command in shell prompt

# export http_proxy=http://proxyServer-IPort/

then try

# wget http://site name

If any issue please check with DNS resolving. /etc/resolv.conf

for permanent you should add this (export http_proxy=http://proxyServer-IPort/ ) in /etc/rc.local or /etc/profile
 
Old 04-28-2010, 04:28 AM   #3
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Original Poster
Rep: Reputation: 15
/etc/profile i have edit it enter details
/etc/resolv.conf i update all local and global dns

but still commands like ping,traceroute,netstat,ssh outside world not working i want pass everything through proxy

wget start working now

suggest for other commands of linux what to do?
 
Old 04-28-2010, 04:39 AM   #4
barshani
LQ Newbie
 
Registered: Sep 2004
Location: Trivandrum
Distribution: Redhat
Posts: 18

Rep: Reputation: 3
Just check your firewall status.

# service iptables status

# iptables -L
 
Old 04-28-2010, 07:24 AM   #5
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Original Poster
Rep: Reputation: 15
firewall is stop disable and no rules made also
 
Old 04-28-2010, 11:51 AM   #6
barshani
LQ Newbie
 
Registered: Sep 2004
Location: Trivandrum
Distribution: Redhat
Posts: 18

Rep: Reputation: 3
is your DNS server configured local or Public.
what is the entry in /etc/resolv.conf
 
Old 04-28-2010, 01:12 PM   #7
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,347

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by salimshahzad View Post
centos 5.4 distro using on remote machine

i have remote site where internet access given via squid proxy. so when we enter in browser it start working internet fine.

but on command line(bash shell prompt terminal) like wget,ping,nslookup,traceroute etc these commands does not work.

advise where what work around needed?
You try onething ,

Goto system -> Preferences -> Nework proxy -> Manual Proxy configuration
and give the proxy server IP and port in HTTP Proxy section .

Try it then post the result . It may work as I've not tried ..
 
  


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
how to access internet on linux clients By our Squid Proxy server farrukhndm Linux - Server 2 03-07-2009 06:22 AM
Terminal cannot access Internet through proxy server grejon04 Linux - Newbie 5 06-04-2008 10:22 AM
domain user authentication for squid proxy server for internet access manabJyoti Linux - General 1 05-10-2008 09:08 AM
download restriction over internet access using squid (proxy server) pankajkarde Linux - Server 4 03-21-2007 01:04 AM
How to set up Linux as a proxy server for internet access? Korshun Linux - Networking 1 04-04-2002 04:17 AM


All times are GMT -5. The time now is 09:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration