PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mocks Problem/Config



Mirr0w
02.10.2010, 19:30
wenn ich meinen mocks starte und per proxifier drauf zugreifen will kommt folgender error :

[26:15] Testing Started.
Proxy Server
Address: ***********
Protocol: SOCKS 5
Authentication: YES
Username: test

[26:15] Starting: Test 1: Connection to the Proxy Server
[26:15] IP Address: ***********
[26:15] Connection established
[26:15] Test passed.
[26:15] Starting: Test 2: Connection through the Proxy Server
[26:15] Error : the proxy server uses unsupported methods.
[26:15] Tes ...


kann mir jmd von euch helfen ?
ich denke es liegt an der mocks.conf ;D

Mit freundlichen Grueßen,
Mirr0w

poddels
02.10.2010, 19:32
ich denke es liegt an der mocks.conf ;D
Mirr0w
Dann stell diese doch bitte mit rein...

Mirr0w
02.10.2010, 19:36
ja ich versuch es ja ... klappt aber nunmal nicht :(

poddels
02.10.2010, 19:47
Was klappt daran nicht?
mocks.conf öffnen, Inhalt kopieren und hier posten =/

Mirr0w
02.10.2010, 20:01
#################################################
# #
# Sample configuration file for MOCKS 0.0.2 #
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# #
# I recommend reading the examples in this file #
# and then extending it to suite your needs. #
# #
#################################################



#########################
#
# General daemon config
# ~~~~~~~~~~~~~~~~~~~~~
#
#########################

PORT = 1337 # Port MOCKS is to listen to
MOCKS_ADDR = ********** # IP adress MOCKS is to bind to
LOG_FILE = mocks.log # MOCKS log file
PID_FILE = mocks.pid # File holding MOCKS's process ID
BUFFER_SIZE = 65536 # Traffic buffer size in bytes
BACKLOG = 5 # Backlog for listen()
NEGOTIATION_TIMEOUT = 5
CONNECTION_IDLE_TIMEOUT = 300
BIND_TIMEOUT = 30
SHUTDOWN_TIMEOUT = 3
MAX_CONNECTIONS = 5



################################################## ########################
#
# Client filter config
# ~~~~~~~~~~~~~~~~~~~~
#
# Client filtering means sorting out which clients are allowed
# connection and which are not. This is basically done like this:
# MOCKS has a default behaviour regarding filtering client
# connections. This behaviour is called the 'policy' and can either
# be to ALLOW or to DENY the connection. After setting the policy
# you can specify a list of exceptions. The action MOCKS takes
# for a client matching any of these exceptions is the opposite
# of the policy (that is, if the policy is set to ALLOW the exceptions
# are denied and if the policy is set to DENY the exceptions are allowed).
# An exception is specified in the form ip_address/mask, where mask
# is optional and is an integer ranging from 0 to 32 identifying the
# number of common heading bits that ip_address and the client's IP
# address must have in order to yield a match. If mask is missing,
# 32 will be assumed. For instance, 192.168.1.0/24 will match any IP
# ranging from 192.168.1.1 to 192.168.1.255.
#
# Let's take two examples, one for each type of policy. Let's say we
# only want to allow IPs 10.12.0.0 through 10.12.255.255, 172.23.2.5 and
# 192.168.52.26 to use MOCKS. What we have to to is this:
#
# FILTER_POLICY = DENY
# FILTER_EXCEPTION = 10.12.0.0/16
# FILTER_EXCEPTION = 172.23.2.5 # implied /32
# FILTER_EXCEPTION = 192.168.52.26 # implied /32
#
# Now, let's say this is a public proxy server, but for some reason
# you don't want to let any IP ranging from 192.168.1.1 to 192.168.1.255
# and neither 10.2.5.13 to connect to it:
#
# FILTER_POLICY = ALLOW
# FILTER_EXCEPTION = 192.168.1.0/24
# FILTER_EXCEPTION = 10.2.5.13
#
################################################## #########################

FILTER_POLICY = DENY
FILTER_EXCEPTION = 10.12.0.0/16
FILTER_EXCEPTION = 172.23.2.5
FILTER_EXCEPTION = 192.168.52.26



################################################## ###########################
#
# Upstream proxy config
# ~~~~~~~~~~~~~~~~~~~~~
#
# You can choose to further relay traffic through another proxy server.
# MOCKS supports upstream HTTP CONNECT, SOCKS4 and SOCKS5 proxies. You
# must specify the proxy type (one of HTTPCONNECT, SOCKS4 or SOCKS5), the
# proxy address and the proxy port. Optionally you can specify an user
# name and a password used to authenicate to the upstream proxy. This is
# pretty straight forward, so let's just take an example. Let's say you
# want to use the HTTP CONNECT server at httpconnectproxy.com, on port 3128,
# using the username 'foo' and the password 'bar'. You do it like this:
#
# UP_PROXY_TYPE = SOCKS5
# UP_PROXY_ADDR = ***********
# UP_PROXY_PORT = 1337
# UP_PROXY_USER = test # These two can be missing if you
# UP_PROXY_PASSWD = test # are not required to authenticate
#
################################################## ###########################

UP_PROXY_TYPE = SOCKS5
UP_PROXY_ADDR = ************
UP_PROXY_PORT = 1337
UP_PROXY_USER = test
UP_PROXY_PASSWD = test


das "***********" steht für die ip.

klaxxxor
03.10.2010, 01:58
mach mal aus
FILTER_POLICY = DENY
FILTER_EXCEPTION = 10.12.0.0/16
FILTER_EXCEPTION = 172.23.2.5
FILTER_EXCEPTION = 192.168.52.26

ein

FILTER_POLICY = ALLOW

BigBrother
03.10.2010, 08:17
Wieso wird 2x der Port angegeben? Erst oben "PORT = 1337" und dann unten nochmal..? Darüber hinaus, würd ich die LogFile auf "dev0" stellen, falls der Server nicht loggen sollte ;-)

Dachte erst das vlt Port 1337 in Doppelter Benutzung ist, aber dein Server hat aktuell Port 1337 garnicht offen.. Maybe liegts echt nur daran, dass Du 2x PORT angegeben hast und beides ja der gleiche ist.

Mirr0w
04.10.2010, 15:13
wie genau würde der code dann aussehen um ihn nonlogging zu machen ?
lg

0x1cedd1ce
04.10.2010, 15:27
UP_PROXY_* darfst nicht auf sich selbst verweisen, da das ja ein zusätzlicher proxy ist durch den die anfrage geleitet wird, wenn es funktionieren würde, dann hättest du eine unendliche proxykette.

Mirr0w
04.10.2010, 15:48
hast du mal ne bsp config für mich ?

0x1cedd1ce
04.10.2010, 15:54
ne beispiel config kann ich dir nicht bieten, ich hab das auch nur aus den kommentaren, die in deiner config drinstehen.

BigBrother
04.10.2010, 16:55
Du kannst einfach der Log-File "mocks.log" CHMOD Rechte geben, wie zB 000 ;) Dann wird nichts reingeschrieben. Weiß jetzt nicht mehr genau, welchen Ordner man angeben muss, um es non-Log zu machen, bzw das es auf dev0 zeigt. Aber mit CHMOD müsste es reichen.
CHMOD 000 mocks.log Greets

Mirr0w
04.10.2010, 16:57
mein problem ist ja das ich mocks erst gar nicht zum laufen bekomme -> hat denn niemand ne bsp config ?

oder gibts noch andere socks5 progs für linux ?

BigBrother
04.10.2010, 16:58
Meld dich mal via ICQ bei mir.. Da kann ich Dir besser helfen ;) Als wenn wir hier zuspammen.

Mirr0w
04.10.2010, 19:07
mocks funktioniert jetzt.

aber kennt einer für den socks5 die passenden codes für user und pass ?
lg

BigBrother
04.10.2010, 19:39
Mocks von SF direkt gesaugt -> Muss man patchen. Patch: SourceForge.net: My Own soCKs Server: Detail: 1552499 - User/pass-authentication (http://sourceforge.net/tracker/index.php?func=detail&aid=1552499&group_id=75122&atid=543000) Patched Version gibts aber auch im Netz zum DL: http://code.stapelberg.de/git/mocks/snapshot/mocks-5c442dc06941e7c5cc90ecc3cbd8e9f88c9a4775.tar.gz Thema hat sich somit erledigt.