[zorp-hu] tproxy nyug

Ifj. Darvas Istvan zorp-hu@lists.balabit.hu
Sat, 4 Dec 2004 18:54:41 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0029_01C4DA32.B64917C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

sziasztok,

szituacio:
telepitettem egy uj gepet, fel szerettem volna telepiteni arra ugyan azt a
zorp konfigot, ami a masikon van. csak ujabb kernellel. Akkor bele is vagnek
a lenyegbe.

kornyezet:
2.6.8.1-es kernel, megbuheralva a cttproxy-2.6.8.1-2.0.0 csomagotokkal
---->lsmod
Module                  Size  Used by
ipt_tproxy              2176  0
iptable_tproxy         20248  0
ipt_TPROXY              2560  1

iptables-1.2.7a megbuheralva szinten

szepen lefordultak feltelepultek semmi extrat nem tudok mondani...

fent van maga a program is meg a kiegeszitok hozza, szinten hiba nelkul
minden OK nelkul feltelepultek....

libzorp2     2.0.9-8
libzorpll    2.0.26.24-5
zorp         2.0.9-8
zorp-modules 2.0.9-8
python       2.3.4-4
python-extcl 1.2.0zope-2

-------->instances.conf
TESZT --verbose=8 --policy /etc/zorp/policy.py --autobind-ip 1.2.3.4

-------->policy.py
def TESZT():
        Service(
                "inter_TESZT_H12",
                PlugProxy,
                router=DirectedRouter(SockAddrInet(IP_H12,443)),
                snat=ForgeClientSourceNAT()
        )
        Listener(SockAddrInet(IP0,52000), "inter_TESZT_H12")

--------->iptables
    -t tproxy -A PREROUTING -i eth0 -p tcp -d 195.70.41.161 --dport 10000 -j
TPROXY --on-port 52000

err.log csatolva
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12:0/plug):
bind() failed; error='Cannot assign requested address'

en ezt a sort nem ertem, hogy miert nem tud a zorp cimet igenyeleni

Udv,
    Istvan

------=_NextPart_000_0029_01C4DA32.B64917C0
Content-Type: application/octet-stream;
	name="err.log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="err.log"

-
Dec  4 18:40:20 hyperion TESZT[1279]: (TESZT@https-Zorp/nosession): =
Incoming connection; protocol=3D'1', =
remote=3D'AF_INET(80.98.229.71:1401)', =
local=3D'AF_INET(195.70.58.137:52000)', =
dest=3D'AF_INET(195.70.58.137:52000)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (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 =20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12): =
Starting service; name=3D'inter_TESZT_H12'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12): =
Connection accepted; client_address=3D'AF_INET(80.98.229.71:1401)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12:0): =
Starting proxy instance; client_fd=3D'13', =
client_address=3D'AF_INET(80.98.229.71:1401)', =
client_zone=3D'Zone(internet, 0.0.0.0/0)', =
client_local=3D'AF_INET(195.70.58.137:52000)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Proxy starting; =
class=3D'PlugProxy', module=3D'plug'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (TESZT@https-Zorp/nosession): =
Module successfully loaded; module=3D'plug', =
file=3D'/usr/lib/zorp/libplug.so'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): thread starting;=20
Dec  4 18:40:20 hyperion TESZT[1279]: (TESZT@https-Zorp/nosession): =
accept count; accepts=3D'1'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): calling __config__() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): calling config() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'secondary_sessions', value=3D'10'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'copy_to_client', value=3D'1'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'timeout', value=3D'600000'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'secondary_mask', value=3D'15'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'packet_stats_interval_time', value=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'packet_stats_interval_packet', value=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'buffer_size', value=3D'65535'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'copy_to_server', value=3D'1'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Config dump, attribute value; =
name=3D'shutdown_soft', value=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): calling __startup__() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): calling startUp() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Connecting to remote host; =
protocol=3D'1', local=3D'AF_INET(80.98.229.71:0)', =
remote=3D'AF_INET(195.70.41.161:443)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): bind() failed; error=3D'Cannot =
assign requested address'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Server connection failure; =
server_address=3D'AF_INET(195.70.41.161:443)', =
server_zone=3D'Zone(TESZTZONA, 195.70.41.161/32)', server_local=3D'None' =

Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): calling __destroy__() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Proxy destroy; class=3D'PlugProxy', =
module=3D'plug'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug/client): Shutdown channel; fd=3D'13', =
mode=3D'2'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug/client): Closing channel; fd=3D'13'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): Proxy ending; class=3D'PlugProxy', =
module=3D'plug'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12:0): =
Ending proxy instance;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug/client): accounting info; =
type=3D'stream', duration=3D'0', sent=3D'0', received=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:0/plug): thread exiting;=20
Dec  4 18:40:20 hyperion TESZT[1279]: (TESZT@https-Zorp/nosession): =
Incoming connection; protocol=3D'1', =
remote=3D'AF_INET(80.98.229.71:1402)', =
local=3D'AF_INET(195.70.58.137:52000)', =
dest=3D'AF_INET(195.70.58.137:52000)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12): =
Starting service; name=3D'inter_TESZT_H12'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12): =
Connection accepted; client_address=3D'AF_INET(80.98.229.71:1402)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12:1): =
Starting proxy instance; client_fd=3D'13', =
client_address=3D'AF_INET(80.98.229.71:1402)', =
client_zone=3D'Zone(internet, 0.0.0.0/0)', =
client_local=3D'AF_INET(195.70.58.137:52000)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Proxy starting; =
class=3D'PlugProxy', module=3D'plug'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): thread starting;=20
Dec  4 18:40:20 hyperion TESZT[1279]: (TESZT@https-Zorp/nosession): =
accept count; accepts=3D'1'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): calling __config__() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): calling config() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'secondary_sessions', value=3D'10'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'copy_to_client', value=3D'1'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'timeout', value=3D'600000'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'secondary_mask', value=3D'15'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'packet_stats_interval_time', value=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'packet_stats_interval_packet', value=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'buffer_size', value=3D'65535'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'copy_to_server', value=3D'1'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Config dump, attribute value; =
name=3D'shutdown_soft', value=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): calling __startup__() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): calling startUp() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Connecting to remote host; =
protocol=3D'1', local=3D'AF_INET(80.98.229.71:0)', =
remote=3D'AF_INET(195.70.41.161:443)'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): bind() failed; error=3D'Cannot =
assign requested address'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Server connection failure; =
server_address=3D'AF_INET(195.70.41.161:443)', =
server_zone=3D'Zone(TESZTZONA, 195.70.41.161/32)', server_local=3D'None' =

Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): calling __destroy__() event;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Proxy destroy; class=3D'PlugProxy', =
module=3D'plug'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug/client): Shutdown channel; fd=3D'13', =
mode=3D'2'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug/client): Closing channel; fd=3D'13'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): Proxy ending; class=3D'PlugProxy', =
module=3D'plug'=20
Dec  4 18:40:20 hyperion TESZT[1279]: (https-Zorp/inter_TESZT_H12:1): =
Ending proxy instance;=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug/client): accounting info; =
type=3D'stream', duration=3D'0', sent=3D'0', received=3D'0'=20
Dec  4 18:40:20 hyperion TESZT[1279]: =
(https-Zorp/inter_TESZT_H12:1/plug): thread exiting;=20

------=_NextPart_000_0029_01C4DA32.B64917C0--