LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2004, 05:03 AM   #1
ajitup
Member
 
Registered: Oct 2004
Location: Indore,India
Distribution: SuSe Linux 10.1 64 bit
Posts: 32

Rep: Reputation: 15
Proxy/firewall Authentication Problem ....Plz Help ???


Hi!

I am a linux newbie!!
I am using Fedora Core2 and sitting behind a "PROXY / Firewall" which requires authentication.

Whenever I use "Synaptic", "Yum" or "apt" for package update, it fails showing authentication error.

Could anybody tell me how to configure Authentication Informtion (userid/passwd) in Synaptic ????

Is it possible that one creates a batch file / setting in some resource file that the Authentication is alive for whole session.


thanks

ajit
 
Old 10-06-2004, 05:12 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

what proxy/firewall are u using??

i am also using that in my setup but i have faced no such problems for apt and yum

and what do u do for authentication???
maybe u can put that in ur shell
/home/name/.bashrc
so that each time u open up ur shell u get some predefined environment

also off the track,where do u hail from indore,i am also from indore

regards
 
Old 10-06-2004, 06:18 AM   #3
ajitup
Member
 
Registered: Oct 2004
Location: Indore,India
Distribution: SuSe Linux 10.1 64 bit
Posts: 32

Original Poster
Rep: Reputation: 15
Hi!

My internet service provider is using some proxy/firewall, I know its IP address only. I use the proxy IP and authentication (userid & pwd) given to me for mozilla and other services.

BUT synaptic does not have option for setting authentication.

Is it possible to set the authentication in some .rc file so that all programs use the same ???

How to set the same in "Environment Variables" ?? or in the file .bashrc??

I am working at Center for Advanced Technology (CAT), indore and stay near Rajendra Nagar. What about you ??
where are u at present ??

regards,
ajit
 
Old 10-06-2004, 11:42 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

for seeing what nvironment variables us have run

env

for changing them

do this

export HOME=/home/gaurav

now run

env | grep HOME

and u will see that u hav chnaged ur PATH
this will remain the environment for that particular bash session
u can put any coomad in /root/.bashrc so that it is executed each time a new session is created using bash,i.e. each time u invoke a new terminal

also what i think is rhat apt-get etc etc work on some ports,and probably ur administrator has only allowed services on some ports like http,smtp etc etc

meanwhile i will get synaptic installed in my system and tell u about it
also does synaptic comes with fedora core 2 installation since i could bot find a package for that in my CD
i am looking to download that .........

also ,i am doing my masters in computer applications from internationnal institute of professional studies(IIPS) .devi ahilya university,khandwa road.

regards
 
Old 10-06-2004, 02:08 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i got synaptic

have u tried the settings in preferences section --->Network tab-->http proxy section

regards
 
Old 10-07-2004, 12:27 AM   #6
ajitup
Member
 
Registered: Oct 2004
Location: Indore,India
Distribution: SuSe Linux 10.1 64 bit
Posts: 32

Original Poster
Rep: Reputation: 15
Hi!

I have set the proxy settings in Synaptic (manual config) but the authentication option is not there !!

I am trying to put some shell script to automate the loging to proxy server, let's see whether it works ??

bye,
ajit
 
Old 10-07-2004, 08:20 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

what i think is ur setup involves a proxy like "squid"
now this proxy server reqires authentication for all appliactions to run,if it has been specified in it config.
now when u run mozilla,it squid asks for authentication which is provided by mozilla (as u had entered the information)
and when this authentication is passed u r allowed to browse the net

now when u use synaptic,squid again asks for authentication,but ur application does not have a module,so u cannot do anything in that case.the applicaiton should support authentication

so what u can do is,ask the offcials at ur computer centre to help u out
sincw it is configured in ur squid proxy server to ask for passwords for all,u can ask if they can give u some privelages and do not ask for password(then only ur apppliactions will work),see if this is possible

also u can try to download that packages and install urself

regards
gaurav
 
Old 10-09-2004, 12:43 AM   #8
ajitup
Member
 
Registered: Oct 2004
Location: Indore,India
Distribution: SuSe Linux 10.1 64 bit
Posts: 32

Original Poster
Rep: Reputation: 15
Hi!


thanks for reply!!

ajit
 
Old 10-09-2004, 04:30 AM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

u r welcome!!!

but is u r problem solved now??

regards
 
Old 10-09-2004, 06:05 AM   #10
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
iirc synaptic relay on apt too. so maybe you'll just have to use the proxy option in your /etc/apt/sources.list?

sl mritch.
 
Old 10-09-2004, 08:30 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

the problem here is not related to proxy server
the problem is that neither synaptic nor apt-get does not have any module which will authenticate the user as of when required by the "squid" proxy server

regards
 
Old 10-09-2004, 08:45 AM   #12
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
man sources.list tells me...

http

The http scheme specifies an HTTP server for the archive. If an
environment variable http_proxy is set with the format
http://serverort/, the proxy server specified in http_proxy
will be used. Users of authenticated HTTP/1.1 proxies may use a
string of the format http://userass@serverort/ Note that
this is an insecure method of authentication.

..so i think with basic (ncsa) auth this should work.

sl mritch.

...aarggh how to disable these f.. smilies?

Last edited by mritch; 10-09-2004 at 08:52 AM.
 
Old 10-09-2004, 01:26 PM   #13
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by mritch
man sources.list tells me...

http

The http scheme specifies an HTTP server for the archive. If an
environment variable http_proxy is set with the format
http://serverort/, the proxy server specified in http_proxy
will be used. Users of authenticated HTTP/1.1 proxies may use a
string of the format http://userass@serverort/ Note that
this is an insecure method of authentication.

..so i think with basic (ncsa) auth this should work.

sl mritch.

...aarggh how to disable these f.. smilies?
hi there

i got it what u r saying
is it that we can use apt with some changes in the sources.list file where we can specify the proxy as well the http authentication we use for there in the file itself so that it will work the way http works??

is it that??

also is it for all sites ??

regards
 
Old 10-09-2004, 03:45 PM   #14
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
http://www.die.net/doc/linux/man/man...es.list.5.html
 
Old 10-09-2004, 03:50 PM   #15
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by mritch
http://www.die.net/doc/linux/man/man...es.list.5.html
hi there

i have seen that man page


regards
 
  


Reply



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
Exchange proxy authentication tagulouss Linux - Networking 0 10-19-2005 12:52 AM
Firewall full of holes. Proxy authentication ? fipeso Linux - Security 3 05-07-2005 03:05 AM
Behind Firewall And Proxy .Need Ur Favour Plz its_m3 Linux - Software 7 07-29-2004 03:33 PM
Multi Network Firewall Proxy and DHCP Problem linedpaper Linux - Security 10 12-13-2003 08:23 PM
proxy authentication joesbox Programming 1 02-23-2003 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 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
Open Source Consulting | Domain Registration