FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-12-2008, 02:14 PM
"dell core2duo"
 
Default Error in network commands in root mode

Hi,
*Whenever I am trying to do ssh/telnet/emerge --sync in root
mode it gives me error saying "Connection Refused: Forbidden". while
same works fine in user mode.
Below are some examples .

------------------------------------------------------------------------------------------------------------

flukebox flukebox # ssh csews53
Connection Refused: Forbidden
ssh: connect to host csews53 port 22: Connection refused
flukebox flukebox # wget yahoo.com
--2008-02-12 19:50:15--* http://yahoo.com/


Resolving relproxy.iitk.ac.in... 172.31.1.233
Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... Connection Refused: Forbidden
failed: Connection refused.

flukebox flukebox # telnet apah

Trying 172.31.1.33...
Connection Refused: Forbidden
telnet: Unable to connect to remote host: Connection refused
flukebox flukebox #
flukebox flukebox # emerge --sync
>>> Starting rsync with rsync://172.31.76.254/gentoo-portage...


>>> Checking server timestamp ...
Connection Refused: Forbidden
rsync: failed to connect to 172.31.76.254: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(113) [receiver=3.0.0pre8]


>>> Retrying...
-------------------------------------------------------------------------------------------------------------

More interestingly,
when i do "emerge -af something"* then packet is being fetched without any problem


may be because that work is done by portage user.

This error may have something to do with permissions, I guess.
But i have no clue where is the error.

Any help would be appreciated.

Thanks in advance,


Flukebox
 
Old 02-12-2008, 02:41 PM
Markus Schönhaber
 
Default Error in network commands in root mode

dell core2duo schrieb:

> Whenever I am trying to do ssh/telnet/emerge --sync in root mode it gives
> me error saying "Connection Refused: Forbidden". while same works fine in
> user mode.
> Below are some examples .
[...]
> flukebox flukebox # wget yahoo.com
> --2008-02-12 19:50:15-- http://yahoo.com/
Compare this ^^^^^^^^^
> Resolving relproxy.iitk.ac.in... 172.31.1.233
> Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... Connection Refused:
and that ^^^^^^^^^^^^^^^^^^^
> Forbidden
> failed: Connection refused.

With your root account, you're obviously using a proxy that refuses the
request.
Since similar things happen when you use telnet/ssh you're maybe using
socksified versions of those commands.

Check your proxy and socks settings.

Regards
mks
--
gentoo-user@lists.gentoo.org mailing list
 
Old 02-12-2008, 04:01 PM
"dell core2duo"
 
Default Error in network commands in root mode

Hi,
*No, its not due to proxy.
See the output below.
------------------------------------------------------------------------------------------------------
flukebox driver # wget yahoo.com

--2008-02-12 22:30:56--* http://yahoo.com/
Resolving relproxy.iitk.ac.in... 172.31.1.233
Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... Connection Refused: Forbidden

failed: Connection refused.
flukebox driver # exit
exit
flukebox@flukebox ~ $ wget yahoo.com
--2008-02-12 22:31:04--* http://yahoo.com/
Resolving relproxy.iitk.ac.in... 172.31.1.233

Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: http://www.yahoo.com/ [following]
--2008-02-12 22:31:05--* http://www.yahoo.com/

Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 9533 (9.3K) [text/html]
Saving to: `index.html'

100%[================================================== ===============================================>] 9,533****** 45.6K/s** in 0.2s**


2008-02-12 22:31:07 (45.6 KB/s) - `index.html' saved [9533/9533]

flukebox@flukebox ~ $
---------------------------------------------------------------------------------------------------




On Feb 12, 2008 9:11 PM, Markus Schönhaber <gentoo-user@schoenhaber.de> wrote:

dell core2duo schrieb:

> *Whenever I am trying to do ssh/telnet/emerge --sync in root mode it gives
> me error saying "Connection Refused: Forbidden". while same works fine in

> user mode.
> Below are some examples .
[...]
> flukebox flukebox # wget yahoo.com
> --2008-02-12 19:50:15-- *http://yahoo.com/

Compare this * * * * * * * * * * *^^^^^^^^^
> Resolving relproxy.iitk.ac.in... 172.31.1.233
> Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... Connection Refused:

and that * * * *^^^^^^^^^^^^^^^^^^^
> Forbidden
> failed: Connection refused.

With your root account, you're obviously using a proxy that refuses the
request.
Since similar things happen when you use telnet/ssh you're maybe using

socksified versions of those commands.

Check your proxy and socks settings.

Regards
*mks
--
gentoo-user@lists.gentoo.org mailing list
 
Old 02-12-2008, 04:19 PM
Markus Schönhaber
 
Default Error in network commands in root mode

dell core2duo wrote:

> No, its not due to proxy.
> See the output below.
> ------------------------------------------------------------------------------------------------------
> flukebox driver # wget yahoo.com
> --2008-02-12 22:30:56-- http://yahoo.com/
> Resolving relproxy.iitk.ac.in... 172.31.1.233
> Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... Connection Refused:
> Forbidden
> failed: Connection refused.
> flukebox driver # exit
> exit
> flukebox@flukebox ~ $ wget yahoo.com
> --2008-02-12 22:31:04-- http://yahoo.com/
> Resolving relproxy.iitk.ac.in... 172.31.1.233
> Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... connected.

OK, if it's not the proxy refusing the connection but something on your
local machine, I'm not sure what causes it. Some selinux policy maybe?
Or an iptables rule with an owner match on uid 0?

Regards
mks
--
gentoo-user@lists.gentoo.org mailing list
 
Old 02-13-2008, 07:02 AM
Mick
 
Default Error in network commands in root mode

On Tuesday 12 February 2008, Markus Schönhaber wrote:
> dell core2duo wrote:
> > No, its not due to proxy.
> > See the output below.
> > -------------------------------------------------------------------------
> >----------------------------- flukebox driver # wget yahoo.com
> > --2008-02-12 22:30:56-- http://yahoo.com/
> > Resolving relproxy.iitk.ac.in... 172.31.1.233
> > Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... Connection
> > Refused: Forbidden
> > failed: Connection refused.
> > flukebox driver # exit
> > exit
> > flukebox@flukebox ~ $ wget yahoo.com
> > --2008-02-12 22:31:04-- http://yahoo.com/
> > Resolving relproxy.iitk.ac.in... 172.31.1.233
> > Connecting to relproxy.iitk.ac.in|172.31.1.233|:3128... connected.
>
> OK, if it's not the proxy refusing the connection but something on your
> local machine, I'm not sure what causes it. Some selinux policy maybe?
> Or an iptables rule with an owner match on uid 0?

Check how is the proxy variable defined for both users:

# env | grep -i proxy
$ env | grep -i proxy

You may need to define the same proxy user for both, for the proxy server to
accept connections .
--
Regards,
Mick
 

Thread Tools




All times are GMT. The time now is 12:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org