Internet connection through proxyForum: Networking Topic: Internet connection through proxy started by: axel Posted by axel on April 03 2006,19:29
I have installed DSL on my second computer and i want to connect to the internet through a proxy server that i run on my first computer. In other words i want to use http,ftp and apt-get through a proxy.I have read that in debian you just have to add the line Acquire::http::Proxy "http://proxy:8080"; into a file such as /etc/apt/apt.conf.d/proxy However the file /etc/apt doesn't even exist. I tried to create it as well as the file named proxy but i didn't get anywhere. Any ideas? Posted by axel on April 03 2006,21:00
I tried to add the following lines to /opt/bootlocal.sh and to /etc/profileexport http_proxy=http://my.domain.com:port/ export ftp_proxy=http://my.domain.com:port/ export HTTP_PROXY=http://my.domain.com:port/ export FTP_PROXY=http://my.domain.com:port/ None of them worked. In a fedora installation that i have i have created two files which i have placed in /etc/profile.d to gain access through proxy. I suppose something similar i have to do in DSL but i can't figure out what... Those are the files proxy.csh setenv http_proxy < http://my.domain.com:port/ > setenv ftp_proxy < http://my.domain.com:port/ > setenv no_proxy .my.gateway setenv HTTP_PROXY < http://my.domain.com:port/ > setenv FTP_PROXY < http://my.domain.com:port/ > proxy.sh export http_proxy=http://my.domain.com:port/ export ftp_proxy=http://my.domain.com:port/ export no_proxy=.my.gateway export HTTP_PROXY=http://my.domain.com:port/ export FTP_PROXY=http://my.domain.com:port/ Posted by axel on April 03 2006,22:26
SolvedFinally i found it! I added the following lines in my user's .bash_profile after the export line. Logout, login and you have inet. export http_proxy='http://my.domain.com:port/' export https_proxy='http://my.domain.com:port/' export ftp_proxy='http://my.domain.com:port/' export HTTP_PROXY='http://my.domain.com:port/' export HTTPS_PROXY='http://my.domain.com:port/' export FTP_PROXY='http://my.domain.com:port/' In Dillo and Firefox you have to add the proxy info at the options dialog in order them to access the internet. Posted by pr0f3550r on April 04 2006,18:21
That's overkill. You only need:export http_proxy='http://my.domain.com:port/' export ftp_proxy='http://my.domain.com:port/' Then restart bash ( or source .bash_profile) and Dillo, wget, apt-get will automatically get the variables from there. < http://www.damnsmalllinux.org/wiki...._Server > |