Re: [gentoo-user] 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 > > [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
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
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
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