Re: [gentoo-user] Error in network commands in root mode

2008-02-13 Thread Mick
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
  [EMAIL PROTECTED] ~ $ 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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Error in network commands in root mode

2008-02-12 Thread Markus Schönhaber
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
 [EMAIL PROTECTED] ~ $ 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



Re: [gentoo-user] Error in network commands in root mode

2008-02-12 Thread dell core2duo
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
[EMAIL PROTECTED] ~ $ 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]

[EMAIL PROTECTED] ~ $
---



On Feb 12, 2008 9:11 PM, Markus Schönhaber [EMAIL PROTECTED]
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




Re: [gentoo-user] Error in network commands in root mode

2008-02-12 Thread Markus Schönhaber
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



[gentoo-user] Error in network commands in root mode

2008-02-12 Thread dell core2duo
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