Connection works, not internet

Kernels & Hardware, configuring network, installing services

Connection works, not internet

Postby louk » 2017-05-18 11:01

Hello everybody !

I'm on a Debian 8 Jessie and all was working well at start (well, not really, as you will see soon). This computer has been given to me to install a Moodle test server and create a plugin that will use Flash (I haven't the choice for Flash :( ).
Neither Flash nor the update command (just below) was working
Code: Select all
sudo update-flashplugin-nonfree --install

(I get a wget error, a known bug) and the command said to look at this manual. I tried things in the read order and first, I have set http_proxy to a value like http://IP_address:port (unfortunately, I don't remember this value, nor how did I find it). And it didn't work.
After that, I solved the problem by adding an alternative by following what's described at "Manual update" section (but I still have the wget error, so I'll have to update manually each time needed).
Flash was working, internet too.

Today, I started the computer and internet wasn't working anymore. I say internet, but not the connection.
I can install anything in the terminal with the usual apt-get command, but no internet navigator is willing to load any external website.

Note : I'm at the ENSTA (Ecole Nationale Supérieur de Techniques Avancées - Superior National School of Advanced Techniques) of Brest (France) for my internship and they use a proxy server. Thus, we have to set up firefox to "Auto-detect proxy settings for this network" and I don't know this Proxy, but I probably can ask to their informatic service and get the proxy settings.
Note 2 : I tried several cables which worked on my personal computer, nothing changed. I rebooted, then I rebooted again after deleting the line in /etc/apt/apt.conf that was like :
Code: Select all
Acquire::http::http://[[user][:pass]@]host[:port]/

Nothing changed : apt-get install works well, not navigating on the internet.

PS : I use Linux since I'm in high school and I learned a lot by myself but I don't really master any skill on Linux.
louk
 
Posts: 4
Joined: 2017-05-18 07:40

Re: Connection works, not internet

Postby louk » 2017-05-18 12:01

When I've set a value to http_proxy, I typed "http_proxy=..." into the terminal. And even after rebooting, http_proxy has still a value. When I type "echo $http_proxy", I get "http://192.168.1.10:3128".
Is it an old value that was there before I do anything ? I don't think so, because I remember that I've typed "echo $http_proxy" before doing any changes, and it had no value (the command had just printed a newline). Or not.
Crap, I can't remember if echo printed a newline before I do anything, or after I tried to set http_proxy and then I've set http_proxy again to nothing (I was obviously expecting no effect after rebooting or disconnection, but as I said, I try stupid things because I'm not a professional with Linux).

EDIT : I tried some pings, and they work in both sides.
The tower computer has the IP address 172.20.10.240 and mine (portable PC) has 172.20.13.16.
I did "ping 172.20.10.240" on my PC and "ping 172.20.13.16" on the other computer. Both commands worked.
louk
 
Posts: 4
Joined: 2017-05-18 07:40

Re: Connection works, not internet

Postby sgian » 2017-05-23 04:16

If you try a different browser like chromium, and autodetect the proxy settings, does that work to load internet pages? If so, then it is a firefox setting. If not, it is probably a proxy setting.
sgian
 
Posts: 13
Joined: 2017-04-10 16:37

Re: Connection works, not internet

Postby louk » 2017-05-23 08:50

I tried that, even with Links (console navigator) it didn't work.

And now (since the day after navigators were failing but not apt-get), the apt-get install command fails too : "couldn't resolve deb.debian.org". At least it's more logical.
I don't know what to do but re-install Debian (there are no important data).
louk
 
Posts: 4
Joined: 2017-05-18 07:40

Re: Connection works, not internet

Postby Princess Midna » 2017-05-23 16:51

Yes, you will need to ask for the proxy settings.
User avatar
Princess Midna
 
Posts: 5
Joined: 2017-05-23 15:52
Location: Hyrule

Re: Connection works, not internet

Postby louk » 2017-05-24 06:37

I thought about that and I'm not sure of how it's done.
I found this article and this one, is one trustful ?
In the meantime, I'll ask what are these proxy settings and hope I'll finally get internet working everywhere.

BTW, I can surf the web (auto-detect settings in Firefox) on my personal laptop, but a gradle build in the terminal failed (it needs to download dependencies). I solved the problem by doing it at home, but I'll probably have to do similar commands later.

EDIT :
The weird thing is that when I type "echo $http_proxy", I get "http://192.168.1.10:3128" on my test PC. On my laptop, I just get a newline (that is, an empty string).
I tried to find where the hell is defined http_proxy without success.

I added this line in /etc/apt/apt.conf : "Acquire::http::Proxy http://proxy.ensieta.ecole:8080/;" and typed "apt-get install kate" (I don't need Kate, it's just for test).
I got the error : Could not resolve "proxy.ensieta.ecole".
I modified the above line to : "Acquire::http::Proxy http://my_username:my_pass@proxy.ensieta.ecole:8080/;", I got the same error.

I lost my USB key, so I can't make a liveUSB for now...
louk
 
Posts: 4
Joined: 2017-05-18 07:40

Re: Connection works, not internet

Postby sgian » 2017-05-24 13:21

It looks like port 3128 is the correct port unless it has been changed, so try changing port 8080 in your /etc/apt/apt.conf to 3128. I found this link while searching for proxy settings for your school, scroll down to the proxy section and hopefully that example works...
http://www.ensta-bretagne.fr/lebars/Share/Ubuntu.txt

Here is how your school says to set the proxy but it looks like they use automatic settings even for linux https://www.ensta-bretagne.fr/jaulin/sw ... config.pdf
sgian
 
Posts: 13
Joined: 2017-04-10 16:37

Re: Connection works, not internet

Postby debiman » 2017-05-25 11:14

have you actually tried to ping a domain?
like
Code: Select all
ping archive.org
?
User avatar
debiman
 
Posts: 974
Joined: 2013-03-12 07:18

Re: Connection works, not internet

Postby shep » 2017-05-25 22:09

Along another tract, but perhaps DNS resolution is failing. You can quickly check by pinging Google's DNS server at 8.8.8.8
shep
 
Posts: 55
Joined: 2011-03-15 15:22


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable