[zorp-hu] tproxy nyug

Hegedüs Ervin zorp-hu@lists.balabit.hu
Tue, 9 Nov 2004 22:59:01 +0100


hello,

Debian Woody, 2.4.27-el, Zorp 2.0.26, disztib resze

# lsmod
Module                  Size  Used by    Not tainted
ipt_LOG                 3648   0  (unused)
ipt_TPROXY               896   0  (unused)
ipt_tproxy               608   0  (unused)
iptable_tproxy         12128   0  (unused)
ipt_REDIRECT             896   8  (autoclean)
ipt_MASQUERADE          1344   2  (autoclean)
ipt_state                640   1  (autoclean)
iptable_nat            18944   1  (autoclean) [iptable_tproxy ipt_REDIRECT ipt_MASQUERADE]
iptable_filter          1824   1  (autoclean)

ez vajh' mitol lehet:
# /usr/sbin/zorpctl version
ZORP=/usr/lib/zorp/zorp
Zorp 2.0.9
Compile-Date: May 18 2004 10:13:29
Config-Date: 2004/05/18
Trace: off
Debug: off
IPOptions: off
IPFilter-Tproxy: off
^^^^^^^^^^^^^^^^^^^^
Netfilter-Tproxy: on
Netfilter-Linux22-Fallback: on
Linux22-Tproxy: off
Conntrack: on

Zorplib 2.0.26.24
Compile-Date: Oct 29 2003 11:58:13
Trace: off
MemTrace: off
Caps: on
Debug: off
StackDump: on


mert gondolom emiatt van ez:
Nov  9 22:06:39 fwall full[30545]: (host/WD_ssh:1/plug): bind() failed; error='Cannot
assign requested address'

instances.conf:
full --autobind-ip 1.2.3.4 --threads 500 --policy \
/etc/zorp/policy.py --verbose=9

(dummy IF van, 1.2.3.4-el felhuzva)


policy.py:
class WD_ssh(PlugProxy):
        def config(self):
            self.session.server_address = SockAddrInet("192.168.1.100", 22)

def full():
...
        Service('WD_ssh', WD_ssh, router=InbandRouter(forge_addr=TRUE)) 

...
	Listener(SockAddrInet("1.2.3.4", 50022), "WD_ssh")


biztos valami trivialis, de nagyon nem latjuk a hibat...


koszi:
a.

-- 
Minden baj forrása az 1/x függvény.