baysao’s blog

Transparent SOCKS proxy client

Posted in Debian by baysao on 18 Tháng Ba, 2007

It’s the way to help the program not support SOCKS implement.

1. Tsocks:

My simple config with /etc/tsocks.conf:

local = [local_address]
server = [sock_server]
server_type = [type]
server_port = [port]

Where is [local_address] is ip address will not using via SOCKS, [socks_server] and [port] is address and port SOCKS server, [type] is 4 or 5 for type of SOCKS server.

2. Dante:

In dante-client side, i edit /etc/dante.conf (in Debian base system) or /etc/socks.conf (in default). I.e, here is my config:

resolveprotocol: fake
route {
from: 0.0.0.0/0 to: 0.0.0.0/0 via: [sock_server] port = [port]
proxyprotocol: socks_v5
}

For detail, man socks.conf

3. Runsocks:

In my opinion, runsocks support SOCKS better than tsocks and dante. In some program as gyachi, squid not work with tsocks, dante-client, but runsocks works fine.

My config in /etc/libsocks5.conf:

noproxy – 172. – - -
socks5 – - – - [socks_server]:[port]

For detail, man runsocks.

2 phản hồi

Subscribe to comments with RSS.

  1. [...] 16th, 2007 at 10:13 pm (Uncategorized) Previous post, we know how to transparent SOCKS proxy with tsocks, dante, runsocks. But now my proxy server has [...]

  2. Ali Sattari said, on 6 Tháng Ba, 2008 at 3:10 chiều

    Just FYI, there is another socksifier for linux: ProxyChains.
    I have tried it with Squid and they are working! ;)


Gửi phản hồi

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Thay đổi )

Twitter picture

You are commenting using your Twitter account. Log Out / Thay đổi )

Facebook photo

You are commenting using your Facebook account. Log Out / Thay đổi )

Connecting to %s

Follow

Get every new post delivered to your Inbox.