Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge sync and more using a SOCKS proxy HOWTO
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Wed May 07, 2003 9:51 am    Post subject: Emerge sync and more using a SOCKS proxy HOWTO Reply with quote

This howto describes how to setup a SOCKS client for emerging. I had an incredibly difficult time making this work, so I want to make it easier for anyone else trying. I used tsocks (emerge tsocks) as my SOCKS client for a SOCKS v5 server. Note that I also have DNS, HTTP and FTP proxies set up. Some people need to use a specific rsync server IP address as the DNS information does not make it through.

in /etc/make.conf
Code:
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FTP_PROXY="ftp://192.168.0.1:8000"
HTTP_PROXY="http://192.168.0.1:80"
#RSYNC_PROXY="192.168.0.1:873"

Notice that RSYNC_PROXY is commented out. This is critical.

in /etc/socks/tsocks.conf
Code:
# We can access 192.168.0.* directly
local = 192.168.0.0/255.255.255.0
# Otherwise we use the server
path {
reaches = 0.0.0.0/0
server = 192.168.0.1
server_type = 5
default_user = test
default_pass = test
}

192.168.0.1 is the SOCKS server. The default_user and default_pass fields were required to make this work; the test:test combination is meaningless and could be anything.
Back to top
View user's profile Send private message
mog
Apprentice
Apprentice


Joined: 05 Jul 2003
Posts: 253
Location: Auckland [NZ]

PostPosted: Mon Jan 12, 2004 9:22 pm    Post subject: Reply with quote

cool :lol: ... I'll use this for now ... but there are a couple of things where tsocks is not as powerful as dante ... could anyone with experience post how to do a similar thing with dante ... I had a really hard time finding anything useful on dante configuration
_________________
To thine own self be true.
Back to top
View user's profile Send private message
CustardFD
n00b
n00b


Joined: 19 Mar 2003
Posts: 8

PostPosted: Mon Jan 19, 2004 2:35 pm    Post subject: Reply with quote

There is a very detailed dante sample config in /usr/doc/dante*/example/socks.conf.gz. There are so many comments and examples for more complex configurations (such as ms-proxy, http tunneling, etc) that I've stripped all the comments out.

My config at uni (in /etc/socks/socks.conf) is:

Code:
route {
   from: 0.0.0.0/0   to: 127.0.0.0/8  via: direct
   command: connect udpassociate
}

route {
   from: 0.0.0.0/0   to: 10.0.0.0/8   via: direct
}

route {
   from: 0.0.0.0/0   to: 128.240.0.0/8  via: direct
}

route {
   from: 0.0.0.0/0   to: 0.0.0.0/0   via: 128.240.229.66 port = 1080
   protocol: tcp udp
   proxyprotocol: socks_v4 socks_v5
   method: none
}


The 10.0.0.0/8 and 128.240.0.0/16 subnets are on the local network and do not need to go though the socks proxy.
Back to top
View user's profile Send private message
mog
Apprentice
Apprentice


Joined: 05 Jul 2003
Posts: 253
Location: Auckland [NZ]

PostPosted: Mon Jan 19, 2004 9:54 pm    Post subject: Reply with quote

thanks a buch :D .... I must have been looking in the wrong places that I missed that :lol:
_________________
To thine own self be true.
Back to top
View user's profile Send private message
foulsoul
n00b
n00b


Joined: 17 Jan 2004
Posts: 13

PostPosted: Sun Feb 29, 2004 7:45 am    Post subject: Reply with quote

how do i use a socks proxy that isn't on my LAN? I mean through my 192.168.0.1 internet gateway and then through a socks4 proxy? (its to get better bandwidth)
Back to top
View user's profile Send private message
potatoface
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: ::7F00:1

PostPosted: Sat Mar 05, 2005 1:29 am    Post subject: Reply with quote

foulsoul wrote:
how do i use a socks proxy that isn't on my LAN? I mean through my 192.168.0.1 internet gateway and then through a socks4 proxy? (its to get better bandwidth)

i have no problems with mozilla or firefox to connect to the internet trough the socks proxy but how do i tell portage, wget , lynx or konqueror to do this, too?
_________________
The generation of random numbers is too important to be left to chance.
Adopt an unanswered post.
Back to top
View user's profile Send private message
Grimi
n00b
n00b


Joined: 08 Jul 2003
Posts: 13
Location: Germany

PostPosted: Mon Apr 02, 2007 8:36 am    Post subject: Reply with quote

Well, its a little bit dusty here but i give it a try.

potatoface wrote:
i have no problems with mozilla or firefox to connect to the internet trough the socks proxy but how do i tell portage, wget , lynx or konqueror to do this, too?


This i'm asking me for ages!! (especially for konqueror)
any advice would be cool 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum