[squid-users] NAT lookup failed: ioctl(SIOCGNATL)

From: ahn <ahn@dont-contact.us>
Date: Wed, 15 Aug 2001 22:42:38 +0900


I wanted to test Transparent caching with Foundry Serverlron Layer4
Test machine is Solaris Sparc 64bit Processor(Solaris 8)

installed squid.2.3.STABLE3
installed ip_filter3.4.20...
setup Foundry Serverlron Layer4

in squid.conf

http port 80
http_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

in ip_nat.rules

rdr eri0 0.0.0.0/0 port 80 -> x.x.x.x port 80 tcp

and run squid...

Error...in cache.log

Nat lookup failed:ioctl(SIOCGNATL)...

hmmm.........

client_side.c 2284 line...

   2284 if ( 63 == siocgnatl_cmd) {
   2285 struct natlookup *nlp = &natLookup;
   2286 x = ioctl (natfd, SIOCGNATL, &nlp);
   2287 } else {
   2288 x = ioctl (natfd, SIOCGNATL, &natLookup);
   2289 }
   2290 if ( x < 0) {
   2291 if (errno != ESRCH) {
   2292 debug(50, 1) ("parseHttpRequest: NAT lookup failed: ioctl(SIOCGNATL)\n");
   2293 close(natfd);
   2294 natfd = -1;
   2295 dlinkDelete(&http->active,&ClientActiveRequests);
   2296 xfree(http->uri);
   2297 cbdataFree(http);
   2298 memFree(http,MEM_CLIENTHTTPREQUEST);
   2299 xfree(inbuf);
   2300 return parseHttpRequestAbort(conn, "error:nat-lookup-failed");
   2301 } else
   2302 snprintf(http->uri, url_sz, "http://%s:%d%s",
   2303 inet_ntoa(http->conn->me.sin_addr), vport, url);
   2304 } else
   2305 snprintf(http->uri, url_sz, "http://%s:%d%s", inet_ntoa(natLookup.nl_realip), vport, url);

variable is
x is -1....
natfd is 10.. ("/dev/ipnat")
SIOCGNATL is -14938475...

what is wrong..?? nat lookup failed..

SIOCGNATL is define.../usr/include/netinet/ip_nat.h
...#define SIOCGNATL _IOWR(r, 63, struct natlookup *)

i think...SIOCGNATL is not Set....
 _IOWR..?? SIOCGNATL..not set...


please...help me...
Received on Wed Aug 15 2001 - 07:49:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:39 MST