[zorp-hu] Inbandrouter nyug ;)

Ifj. Darvas Istvan zorp-hu@lists.balabit.hu
Wed, 25 Feb 2004 14:54:49 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_004C_01C3FBAF.50F13720
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Sziasztok,

volt nekem zorp 2.0.2-vel egy jol mukodo konfigom most a 2.0.7-et nem igazan
akar mukdoni az inband roteres resz

lebutitottam a proxy-t addig, hogy csak egy egyszeru server cim
hozzarendeles legyen de ez sem kaar igazan mukodni....ha megtennetek, hogy
raneztek, mi lehet a gond az nagyon jo lenne...

kovetkezo van 2.4.20-as kernel tproxy-val

policy.py
class TESTHTTP(HttpProxy):
        def config(self):
                HttpProxy.config(self)
                self.session.server_address = SockAddrInet("192.168.1.101",
80)

        def setServerAddress(self, host, port):
                pass

.
.
        Service("test_http", TESTHTTP, router=InbandRouter(),
snat=ForgeClientSourceNAT())
        Listener(SockAddrInet(IP_OUT,51082), "test_http")


A kovetkezot varnam el ettol a konfigtol, hogy a ra iranyulo osszes http
kerest iranyitsa a 192.168.1.101-es gephez az 80-as portra

de nem igazan akarja megcsinalni.....tudom, hogy ezt egyszeruebbn is lehet,
de nekm majd az inband routerre lesz szuksegem, de mar itt ennel az egyszru
dolognal elakad a dolog ;(

a syslog-ot csatoltam...

Udv,
    Istvan



------=_NextPart_000_004C_01C3FBAF.50F13720
Content-Type: text/plain;
	name="syslog.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="syslog.txt"

Feb 25 14:43:10 centaury Test[28103]: (Test@Zorp@Centaury/nosession): =
Incoming connection; protocol=3D'1', =
remote=3D'AF_INET(80.98.2.210:1251)', =
local=3D'AF_INET(195.70.36.4:15000)', =
dest=3D'AF_INET(195.70.36.4:15000)'
Feb 25 14:43:10 centaury Test[28106]: (Log thread): =
/usr/share/zorp/pylib/Zorp/Zone.py:578: FutureWarning: x<<y losing bits =
or changing sign will return a long in Python 2.4 and up
Feb 25 14:43:10 centaury Test[28103]: (Zorp@Centaury/test_http): =
Starting service; name=3D'test_http'
Feb 25 14:43:10 centaury Test[28103]: (Zorp@Centaury/test_http:0): =
Starting proxy instance; client_fd=3D'15', =
client_address=3D'AF_INET(80.98.2.210:1251)', =
client_zone=3D'Zone(internet, 0.0.0.0/0)', =
client_local=3D'AF_INET(195.70.36.4:15000)'
Feb 25 14:43:10 centaury Test[28103]: (Zorp@Centaury/test_http:0/http): =
Proxy starting; class=3D'TESTHTTP', module=3D'http'
Feb 25 14:43:10 centaury Test[28103]: (Test@Zorp@Centaury/nosession): =
accept count; accepts=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
thread starting;
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Attribute fetched; attribute=3D'request', value=3D'<Zorp hash object at =
0x4055b0e0>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Attribute fetched; attribute=3D'request', value=3D'<Zorp hash object at =
0x4055b0e0>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Attribute fetched; attribute=3D'request', value=3D'<Zorp hash object at =
0x4055b0e0>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'max_url_length', value=3D'4096'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'max_header_lines', value=3D'50'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'response', value=3D'<Zorp =
Multidimensional hash object at 0x4055b100>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'max_chunk_length', =
value=3D'262144'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'max_body_length', value=3D'0'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'auth_inband_supported', =
value=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'target_port_range', =
value=3D''80,443''
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'request_header', value=3D'<Zorp =
hash object at 0x4055b0f0>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'parent_proxy_port', value=3D'3128'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'timeout_request', value=3D'10000'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'permit_unicode_url', value=3D'0'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'rewrite_host_header', value=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'strict_header_checking', =
value=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'require_host_header', value=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'auth', value=3D'<NULL>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'error_files_directory', =
value=3D''/usr/share/zorp/http''
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'default_port', value=3D'80'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'permit_server_requests', =
value=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'transparent_mode', value=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'max_hostname_length', =
value=3D'256'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'response_header', value=3D'<Zorp =
hash object at 0x4055b110>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'timeout', value=3D'300000'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'request', value=3D'<Zorp hash =
object at 0x4055b0e0>'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'max_keepalive_requests', =
value=3D'0'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'error_status', value=3D'500'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'error_silent', value=3D'0'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'permit_proxy_requests', =
value=3D'0'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'permit_null_response', value=3D'1'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'parent_proxy', value=3D''''
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'max_line_length', value=3D'4096'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Config dump, attribute value; name=3D'auth_realm', value=3D''Zorp HTTP =
auth''
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
fetching request and headers;
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Request details; command=3D'GET', url=3D'/', version=3D'HTTP/1.0'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
processing request and headers;
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
filtering request and headers;
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
sending request and headers, copying request data;
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
exiting keep-alive loop;
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
An error occurred, serving error file; =
filename=3D'/usr/share/zorp/http/connecterror.html'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Proxy destroy; class=3D'TESTHTTP', module=3D'http'
Feb 25 14:43:10 centaury Test[28117]: =
(Zorp@Centaury/test_http:0/http/client): Shutdown channel; fd=3D'15', =
mode=3D'2'
Feb 25 14:43:10 centaury Test[28117]: =
(Zorp@Centaury/test_http:0/http/client): Closing channel; fd=3D'15'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
Proxy ending; class=3D'TESTHTTP', module=3D'http'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0): =
Ending proxy instance;
Feb 25 14:43:10 centaury Test[28117]: =
(Zorp@Centaury/test_http:0/http/client): accounting info; =
type=3D'stream', duration=3D'0', sent=3D'844', received=3D'296'
Feb 25 14:43:10 centaury Test[28117]: (Zorp@Centaury/test_http:0/http): =
thread exiting;

------=_NextPart_000_004C_01C3FBAF.50F13720--