LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2014, 10:35 AM   #1
vviivveekkk
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Rep: Reputation: Disabled
Internet not working in terminal


I am connected to network using a static IP, and a gateway.. I can access internet through Firefox by setting the proxy address, username and password in Advanced panel of the Firefox Options. But I cant access internet through any application in terminal. Neither does ping work, nor yum..! I have searched over internet, and got some results related to "resolv.conf" file, and "yum.conf" file but to no avail.. I am getting the following error in yum

Code:
[root]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Error: Cannot find a valid baseurl for repo: base
If someone could guide me in right direction...
Thanks
 
Old 01-28-2014, 10:38 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,305

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
https://www.centos.org/docs/5/html/y...xy-server.html
 
1 members found this post helpful.
Old 01-28-2014, 04:08 PM   #3
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
Quote:
Originally Posted by vviivveekkk View Post
I am connected to network using a static IP, and a gateway.. I can access internet through Firefox by setting the proxy address, username and password in Advanced panel of the Firefox Options. But I cant access internet through any application in terminal. Neither does ping work, nor yum..! I have searched over internet, and got some results related to "resolv.conf" file, and "yum.conf" file but to no avail.. I am getting the following error in yum

Code:
[root]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 7 - "Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Error: Cannot find a valid baseurl for repo: base
If someone could guide me in right direction...
Thanks
If you have a gateway, then by definition you probably have some kind of direct access to the Internet (that's the purpose of a gateway). Do you know, or could you find out, exactly what traffic you are allowed to send out through the firewall? That would make providing a helpful answer easier.

As far as routing your HTTP traffic through a http proxy, I believe you are looking for something like this:

http://yonitg.com/proxy-settings-for-the-command-line/

There are SOCKS proxies (e.g., TOR systems) that can handle all protocols, but I'm not sure what is available on your network. There are also some ways to tunnel through firewalls, if you are in a very restrictive situation...
 
1 members found this post helpful.
Old 01-28-2014, 06:15 PM   #4
andy78
Member
 
Registered: Oct 2005
Location: Stockholm, Sweden
Distribution: Ubuntu
Posts: 78

Rep: Reputation: 18
ryn the following command and paste in the output

ping mirrorlist.centos.org
 
Old 01-30-2014, 04:39 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,697

Rep: Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265Reputation: 2265
Depending on the distro you might get some proxies to work globally or near globally with some system wide proxy setting. If you have a proxy.pac then forget about most command line apps unless you discover the proxy.pac rules.

If it doesn't work with global then you can sometimes edit various config files to mark the correct way to connect. We'd have to know your distro and maybe more about this topology. The admin might have blocked ports or even a application firewall is in the path.
 
Old 02-13-2014, 01:39 PM   #6
vviivveekkk
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
It started working.. Thanks

Quote:
Originally Posted by TenTenths View Post
I followed the link and made changes to the /etc/yum.conf and ~/.bash_profile, and the internet started working. Thanks for help.
 
  


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
connecting terminal to internet gaurav2772727 Linux - Newbie 13 08-12-2011 09:19 AM
Internet is not working on VMPlayer for Ubuntu10.04 but working for Fedora12 aluvalassuman185 Linux - Desktop 11 02-21-2011 08:25 AM
[SOLVED] Terminal commands working in terminal but not in a script GreYFoXGTi Linux - Newbie 1 08-04-2010 10:36 AM
Internet not working on Kubuntu SBC Global internet Socratesway2534 Linux - Newbie 5 12-24-2007 11:35 PM
Internet on Terminal Gerardoj Linux - General 3 07-25-2003 02:31 PM


All times are GMT -5. The time now is 11:38 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