network settings for ftp.iitb repos

180 views
Skip to first unread message

pranav_j

unread,
Jun 19, 2010, 10:38:15 AM6/19/10
to Web and Coding Club IITB
Hi,

I'm able to connect to the outside repos (including iitm) but for iitb
getting this error msg

Err ftp://ftp.iitb.ac.in karmic Release.gpg
Connection timeout

I believe there are four places in ubuntu where u can set proxies -

1. Under System->Preference->N/wProxy
2. N/w settings in synaptics
3. /etc/apt/apt.conf
4. /etc/environment

Can anybody please tell what should these be for connecting to iitb
repos.

Sudarshan Wadkar

unread,
Jun 19, 2010, 11:12:23 AM6/19/10
to wncc...@googlegroups.com
its upto you where to setup your env vars
but i think you are asking for is
no_proxy=".iitb.ac.in"
google for more

~$udhi
"Success is getting what you want. Happiness is wanting what you get."
- Dale Carnegie
"It's always our decision who we are"
- Robert Solomon in Waking Life



--
You received this message because you are subscribed to the Google Groups "Web and Coding Club IITB" group.
To post to this group, send email to wncc...@googlegroups.com.
To unsubscribe from this group, send email to wncc_iitb+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wncc_iitb?hl=en.


Junaid Azad

unread,
Jun 19, 2010, 1:15:39 PM6/19/10
to wncc...@googlegroups.com
U can also gor for Direct Connection  rather than manual connection
In this way u will get all d repos inside iitb available
hope it helps

Vipul Chaudhary

unread,
Jun 19, 2010, 12:33:14 PM6/19/10
to wncc...@googlegroups.com
shouldnt it be

no_proxy="*.iitb.ac.in"
--
Without Wax,
Vipul Chaudhary
vip...@moodi.org
+91 9930847278

Rohit Garg

unread,
Jun 19, 2010, 4:45:43 PM6/19/10
to wncc...@googlegroups.com
yeah, avoid setting system proxies.

> --
> You received this message because you are subscribed to the Google Groups
> "Web and Coding Club IITB" group.
> To post to this group, send email to wncc...@googlegroups.com.
> To unsubscribe from this group, send email to
> wncc_iitb+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/wncc_iitb?hl=en.
>

--
Rohit Garg

http://rpg-314.blogspot.com/

Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay

Sudarshan Wadkar

unread,
Jun 20, 2010, 4:52:30 AM6/20/10
to wncc...@googlegroups.com
no, according to the poorly documented no_proxy env var http://lynx.isc.org/lynx2.8.5/lynx2-8-5/lynx_help/keystrokes/environments.html

"""
If you wish to override the use of a proxy server completely (i.e.,
globally override any existing proxy variables), set the value of
"no_proxy" to "*". This is the only allowed use of * in no_proxy.

"""

~$udhi
"Success is getting what you want. Happiness is wanting what you get."
- Dale Carnegie
"It's always our decision who we are"
- Robert Solomon in Waking Life


Sudarshan Wadkar

unread,
Jun 20, 2010, 4:47:53 AM6/20/10
to wncc...@googlegroups.com
setting system proxies is the best way to deal with insti firewall/squid
and i think ubuntu 10.04 has insti repos built into their default database
so you dont have to manually edit apt conf files
just select iitb ftp repos from the dropdown list in software sources

the only problem is that you are exposing your password in plain text
i use my dept proxy with a simple password which i dont use anywhere else


~$udhi
"Success is getting what you want. Happiness is wanting what you get."
- Dale Carnegie
"It's always our decision who we are"
- Robert Solomon in Waking Life


pranav_j

unread,
Jun 20, 2010, 10:59:32 AM6/20/10
to Web and Coding Club IITB
Thanks @all for suggestions,

I still ve the problem though. (I'm on karmic so cant see iitb repos
in synaptic)

I have following settings right now -

Case 1
1. Under system->Pref->N/wProxy
Manual proxy config and I've checked 'use same proxy for all
protocols'
Under ignored hosts i've put *.iitb.ac.in
I have applied the proxy system-wide

Under Synaptic N/w Preferences I used Direct Connection
By doing this synaptic is NOT working for any repos (outside/
inside)

If i run
sudo export http_proxy="http://username:pa...@netmon.iitb.ac.in:
80"
sudo apt-get update
Only outside repos are getting connected.

Then I run
sudo export no_proxy='.iitb.ac.in'
Still only outside repos getting connected
(If I use *.iitb.ac.in - NONE of the repos are getting connected)

I open /etc/apt/apt.conf
it has
Acquire::http::proxy "http://netmon.iitb.ac.in:80/";
Acquire::https::proxy "https://netmon.iitb.ac.in:80/";
and similar line for Acquire::ftp which I delete
Then I run sudo apt-get update, No luck.

Case 2 (follows after steps in case1). I change synaptic n/w settings
to Manual proxy config
Give http proxy as netmon
Leave ftp proxy as blank
Put ftp.iitb.ac.in Under NO PROXY FOR field.
Reload repos - Only outside repos are getting connected.

Please help.

P.S. -
All the while my /etc/environment file contains
http_proxy="http://netmon.iitb.ac.in:80/"
https_proxy="https://netmon.iitb.ac.in:80/"




On Jun 20, 1:47 pm, Sudarshan Wadkar <wad...@gmail.com> wrote:
> setting system proxies is the best way to deal with insti firewall/squid
> and i think ubuntu 10.04 has insti repos built into their default database
> so you dont have to manually edit apt conf files
> just select iitb ftp repos from the dropdown list in software sources
>
> the only problem is that you are exposing your password in plain text
> i use my dept proxy with a simple password which i dont use anywhere else
>
> ~$udhi
> "Success is getting what you want. Happiness is wanting what you get."
> - Dale Carnegie
> "It's always our decision who we are"
> - Robert Solomon in Waking Life
>
> On Sun, Jun 20, 2010 at 2:15 AM, Rohit Garg <rpg....@gmail.com> wrote:
> > yeah, avoid setting system proxies.
>
> > On Sat, Jun 19, 2010 at 10:45 PM, Junaid Azad <junaid.a...@gmail.com>
> > wrote:
> > > U can also gor for Direct Connection  rather than manual connection
> > > In this way u will get all d repos inside iitb available
> > > hope it helps
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Web and Coding Club IITB" group.
> > > To post to this group, send email to wncc...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > wncc_iitb+...@googlegroups.com<wncc_iitb%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/wncc_iitb?hl=en.
>
> > --
> > Rohit Garg
>
> >http://rpg-314.blogspot.com/
>
> > Senior Undergraduate
> > Department of Physics
> > Indian Institute of Technology
> > Bombay
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Web and Coding Club IITB" group.
> > To post to this group, send email to wncc...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > wncc_iitb+...@googlegroups.com<wncc_iitb%2Bunsu...@googlegroups.com>
> > .

shahansad kollaparambath

unread,
Jun 20, 2010, 4:14:33 PM6/20/10
to wncc...@googlegroups.com
For some reasons the GUI and the command line (apt-get) both uses different proxy settings.

for apt-get the proxy should be set at http_proxy system variable
ie in shell type in export http_proxy="username:pass...@iitb.ac.in:80"
note that any special characters should be escaped as '%XX' where xx is the hex code of the character.
Life would be lot easier if you use iitb repos in the case dot set the proxy variable.

for the GUI
It has an inbuilt proxy system. some where in the preference menu i think it wont be hard to find.
You cannot have @ in your password if you are going to set proxy here.

To unsubscribe from this group, send email to wncc_iitb+...@googlegroups.com.

shahansad kollaparambath

unread,
Jun 20, 2010, 4:15:59 PM6/20/10
to wncc...@googlegroups.com
There is karmic ropes in iitb only that you have to configure it manually. I could sent you the .list file if you want me to.

Sudarshan Wadkar

unread,
Jun 20, 2010, 4:42:39 PM6/20/10
to wncc...@googlegroups.com
put your proxy settings into one place only
say some /etc/profile.d/proxy.conf
there export following vars
http_proxy='http://user:pa...@netmon.iitb.ac.in:80'
ftp_proxy=---same--- [or you can skip setting ftp proxy]
no_proxy='iitb.ac.in'
Note : leave the leading dot
then set ftp.iitb.ac.in repos [i dont know what they look like, never bothered using apt-get]
if you leave ftp_proxy blank, you should be able to connect to all http repos outside iitb [no ftp repos]
and ftp repo of iitb
if you set up ftp_proxy and also setup no_proxy then you should be able to connect to all repos

to quickly check if your proxy env vars are good is to use wget
wget google.com
wget iitb.ac.in
should return two .html files in your cwd
if something is wrong, it will return error
and as somebody mentioned, make sure your special chars are properly escaped
or use single quotes for setting vars [should be easier then]


~$udhi
"Success is getting what you want. Happiness is wanting what you get."
- Dale Carnegie
"It's always our decision who we are"
- Robert Solomon in Waking Life


Ankush Jain

unread,
Jun 21, 2010, 12:18:42 AM6/21/10
to wncc...@googlegroups.com
Try 10.200.13.50 instead of netmon.iitb.ac.in . Sometimes its unable to get the DNS server and hence, the query fails.
 
 
--
Ankush Jain.
CSE, IITB.

pranav_j

unread,
Jun 21, 2010, 2:57:42 AM6/21/10
to Web and Coding Club IITB
Hi
It works now!

I had made /etc/profile.d/proxy.sh but there was some problem in
connecting so i left it.

1. I can connect to IITB repos + international repos + (few of the
IITM ftp repos for rest i get service unavailable) via apt-get

I updated
/etc/apt/apt.conf as
Acquire::http::proxy "http://usename:pa...@netmon.iitb.ac.in:80/";
Acquire::ftp::proxy "ftp://username:pa...@netmon.iitb.ac.in:80/";

/etc/environment as
http_proxy="http://username:pa...@netmon.iitb.ac.in:80/"
no_proxy="iitb.ac.in"
https_proxy="https://netmon.iitb.ac.in:80/"

After this I did
export http_proxy= "http://username:pa...@netmon.iitb.ac.in:80/"
export ftp_proxy=
(this apparently clears any ftp proxy)

then logged out and logged in
running
env | grep ftp_proxy
gives nothing
env | grep no_proxy
gives iitb.ac.in

after this apt-get update works fine.

2. Synaptic settings
Preferences->N/w
http proxy -> netmon.iitb.ac.in port 80
ftp proxy -> netmon.iitb.ac.in port 80
no proxy for -> ftp.iitb.ac.in

After reloading IITB and international repos are getting connected
IITM ones are failing (i had gotten 1 hit once for iitm but next time
all of them failed) But this compromise is ok i guess.

Thanks to all.

- Pranav
Reply all
Reply to author
Forward
0 new messages