[zorp-hu] zorp 1.4 vs zorp 2
Hegedus Ferenc
dark@dark.chaos.hu
Tue, 28 Jan 2003 17:31:20 +0100
Udv
A kovetkezo lenne a problemam: Van egy mukodo http proxy
konfigom 1.4.8-as zorp-ben a kovetkezo zona definicioval:
InetZone("ZoneLocal", "127.0.0.1/32",
inbound_services=[""],
outbound_services=["ServiceHttp"]),
InetZone("ZoneInternet", "0.0.0.0/0",
inbound_services=["ServiceHttp"],
outbound_services=[""])
A kovetkezo iptables sorral:
iptables -A OUTPUT -s 0/0 -d 0/0 -t nat -m owner ! --uid-owner 0 -m state --state NEW -p tcp --dport 80 -j REDIRECT --to-port 8080 -o eth0
Ez kb a kovetkezokeppen mukodik: ha localhost-rol nem root
uid-al inditok http keresket, azt megkapja a zorp, ami
root uid-el fut.
A 2.0rc3-as zorp-el ugyanennel a konfignal gondok merultek
fel.
Eloszor azt szeretne, hogy a ZoneLocal inbound_services-be
engedjem be a ServiceHttp-t.
Ha ezt megteszem, egy http lekeresre vegtelen ciklusba kerul
anelkul, hogy megkiserlne kapcsolatot epiteni a cel ip-re.
(zorp/ServiceHttp:0): Starting proxy instance; client_fd='14', client_address='AF_INET(127.0.0.1:35264)', client_zone='Zone(ZoneLocal, 127.0.0.1/32)', client_local='AF_INET(127.0.0.1:8080)'
(zorp/ServiceHttp:0/http): Proxy starting; class='ClassHttp', module='http'
(zorp/ServiceHttp:0/http): GET: http://index.hu/
(zorp/ServiceHttp): Starting service; name='ServiceHttp'
(zorp/ServiceHttp:1): Starting proxy instance; client_fd='16', client_address='AF_INET(127.0.0.1:35265)', client_zone='Zone(ZoneLocal, 127.0.0.1/32)', client_local='AF_INET(127.0.0.1:8080)'
(zorp/ServiceHttp:1/http): Proxy starting; class='ClassHttp', module='http'
(zorp/ServiceHttp:0/http): Server connection established; server_fd='15', server_address='AF_INET(127.0.0.1:8080)', server_zone='Zone(ZoneLocal, 127.0.0.1/32)', server_local='AF_INET(127.0.0.1:35265)'
(zorp/ServiceHttp:1/http): GET: http://index.hu/
(zorp/ServiceHttp): Starting service; name='ServiceHttp'
(zorp/ServiceHttp:2): Starting proxy instance; client_fd='18', client_address='AF_INET(127.0.0.1:35266)', client_zone='Zone(ZoneLocal, 127.0.0.1/32)', client_local='AF_INET(127.0.0.1:8080)'
(zorp/ServiceHttp:2/http): Proxy starting; class='ClassHttp', module='http'
zorp/ServiceHttp:1/http): Server connection established; server_fd='17', server_address='AF_INET(127.0.0.1:8080)', server_zone='Zone(ZoneLocal, 127.0.0.1/32)', server_local='AF_INET(127.0.0.1:35266)'
(zorp/ServiceHttp:2/http): GET: http://index.hu/
...
Mi baja lehet?
Koszi
d