Using DSL Behind Proxy Server


Forum: Networking
Topic: Using DSL Behind Proxy Server
started by: wastred

Posted by wastred on Jan. 12 2007,21:07
I just installed DSL to the hard-disk, and got my LAN card to work. I am on a college LAN, through which I am connected to the internet. In Windows, we use "172.24.2.1" as the proxy server with port 8080. I used the same setting with success in Firefox. However, if I try to Enable Apt, or install Synaptic, I get the following errors.

Code Sample

Grabbing the compressed dpkg database and programs...
wget: server returned error 504: HTTP/1.0 504 Gateway Time-out
Connecting to 172.24.2.1 [172.24.2.1]:8080
wget: server returned error 504: HTTP/1.0 504 Gateway Time-out
Download error!
Press Enter to continue...


This is after I followed the advice given in the following topic:
< http://www.damnsmalllinux.org/wiki...._Server >

The contents of my /<user>/.bash_profile file are as follows:

Code Sample
#!/bin/bash
export IRCNICK=DSL
export http_proxy='http://172.24.2.1:8080'
export ftp_proxy='http://172.24.2.1:8080'

SSH=`env | grep SSH_CONNECTION`
RUNLEVEL=`runlevel|cut -f2 -d' '`
if [ -z "$SSH" ]; then
  if [ $RUNLEVEL -eq 5 ]; then
      startx
  fi
fi



Due to this, I am unable to install anything, as my version of DSL does not come equipped with a C compiler, owing to which I cannot use ./configure to install external .deb packages.
Please help... :(

Posted by ^thehatsrule^ on Jan. 12 2007,22:33
1. use mydsl - its much easier.

2. If you want to continue to try using apt, I believe you need to change your apt repositories (sources.list)

Posted by Wittfella on Feb. 16 2007,03:44
Try also with a / on the end

eg. http_proxy="http://172.24.2.1:8080/"

Posted by damdoodle on Feb. 21 2007,13:58
This does not seem to be working.

1 - Tried all reasonable permutations of the syntax
2 - The same proxy works when defined in FireFox
3 - The mirror is accessible fine from a Win desktop

Did anyone manage to set this up? Care to share a real-world example? Does it expect username/password (our proxy doesn't need it) and in that case what to enter for such a proxy?

Thanks.

Posted by ^thehatsrule^ on Feb. 21 2007,23:09
Did you relogin/restart after you edited that file?

You could also try something like...
Code Sample
sudo su
export http_proxy="http://172.24.2.1:8080"
apt-get update

Posted by Wittfella on Feb. 21 2007,23:57
If you need to use username/password, it supposedly should be in the form:

http_proxy="http://username:password@server:port/"

Although same as you, I have not had success using this against authenticating proxies.

Posted by damdoodle on Feb. 22 2007,00:07
Hi, what I am saying is I do NOT have an authenticating proxy.

I am modding the .bash_profile file as suggested above and reload the env with >.bash_profile . MyDSL keeps displaying white screens.

Would this approach not be picking up my new export?

Thanks.

Posted by ^thehatsrule^ on Feb. 22 2007,01:41
Quote
reload the env with >.bash_profile
What does that mean?  Did you try the things I had suggested?

Posted by damdoodle on Feb. 22 2007,01:47
I would if I had apt-get but it doesn't come with dsl afaik.
Posted by ^thehatsrule^ on Feb. 22 2007,06:38
Sorry, didn't notice you weren't the topic starter.

Try wget'ing something, or browsing via dillo instead?

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.