NNTPC: using socksified version of nntpcached

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi *,

I'm trying to build and use a socksified version of nntpcached (btw:
nntpcached is the best thing next to sliced bread). 

I'm using a firewalled environment where my news server (running
nntpcached) is inside the DMZ. It has to talk to our bastion host
which in turn could talk to the world.

Up to now I ran nntpcache by simply tunneling through our bastion host
to our isp's news server.

Now I'd like to use several news servers from which to get news from.
I thought using sockd on the bastion host and a socksified version of
nntpcache would solve the problem. sockd (version 4.2beta) setup works
(several other applications are using it successfully) but nntpcache
spits a lot of errors while talking to the servers.

I have compiled nntpcached by inserting  

-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dbind=Rbind
-Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect 

into the Makefile (CFLAGS) and linking with libsocks.a.

My environment:
Linux i386, Debian 1.1 distribution, Kernel 2.0.20, gcc 2.7.2,
sockd42v, plenty of hard disc space

I have attached an excerpt from news.notice.

What gives?
Jan 23 16:04:07 portal /usr/sbin/nntpcached-socks[8746]: bind() directly from root(root) for 0.0.0.0 (0)
Jan 23 16:04:07 portal /usr/sbin/nntpcached-socks[8746]: bind() directly from root(root) for 0.0.0.0 (0)
Jan 23 16:04:07 portal nntpcached-update[8747]: bind() directly from root(root) for 0.0.0.0 (0)
Jan 23 16:04:07 portal nntpcached-update[8747]: connect() from root(root) to pssnews.msn.com (119) using sockd at 172.23.97.253
Jan 23 16:04:07 portal /usr/sbin/nntpcached-socks[8746]: connect() from root(root) to pssnews.msn.com (119) using sockd at 172.23.97.253
Jan 23 16:04:09 portal /usr/sbin/nntpcached-socks[8746]: list.c:284:Illegal seek: list overview.fmt on msnews.microsoft.com. error: 501 Syntax Error in Command^M 
Jan 23 16:04:09 portal /usr/sbin/nntpcached-socks[8746]: bind() from root(root) for pssnews.msn.com (119) using sockd at 172.23.97.253
Jan 23 16:04:11 portal nntpcached-update[8747]: list.c:284:Illegal seek: list active.times on msnews.microsoft.com. error: 501 Syntax Error in Command^M 
Jan 23 16:04:14 portal nntpcached-update[8747]: bind() from root(root) for pssnews.msn.com (119) using sockd at 172.23.97.253
Jan 23 16:04:15 portal /usr/sbin/nntpcached-socks[8746]: sockets.c:348:Transport endpoint is already connected: could not connect to news.uu.net. as DEFAULT
Jan 23 16:04:15 portal /usr/sbin/nntpcached-socks[8746]: sockets.c:70:Transport endpoint is already connected: couldn't connect to news.uu.net. as DEFAULT
Jan 23 16:04:15 portal /usr/sbin/nntpcached-socks[8746]: sockets.c:172:Transport endpoint is already connected: fd too high or low (-1 vs 266)
Jan 23 16:04:15 portal /usr/sbin/nntpcached-socks[8746]: list.c:353:Transport endpoint is already connected: news.uu.net. dropped connection during rebuild of overview.fmt
Jan 23 16:04:18 portal nntpcached-update[8747]: sockets.c:348:Transport endpoint is already connected: could not connect to news.uu.net. as DEFAULT
Jan 23 16:04:18 portal nntpcached-update[8747]: sockets.c:70:Transport endpoint is already connected: couldn't connect to news.uu.net. as DEFAULT
Jan 23 16:04:18 portal nntpcached-update[8747]: sockets.c:172:Transport endpoint is already connected: fd too high or low (-1 vs 266)
Jan 23 16:04:18 portal nntpcached-update[8747]: list.c:353:Transport endpoint is already connected: news.uu.net. dropped connection during rebuild of active
Jan 23 16:04:18 portal nntpcached-update[8747]: bind() from root(root) for pssnews.msn.com (119) using sockd at 172.23.97.253
Jan 23 16:04:19 portal nntpcached-update[8747]: sockets.c:348:Transport endpoint is already connected: could not connect to news.uu.net. as DEFAULT
Jan 23 16:04:19 portal nntpcached-update[8747]: sockets.c:70:Transport endpoint is already connected: couldn't connect to news.uu.net. as DEFAULT
Jan 23 16:04:19 portal nntpcached-update[8747]: sockets.c:172:Transport endpoint is already connected: fd too high or low (-1 vs 266)
Jan 23 16:04:19 portal nntpcached-update[8747]: list.c:353:Transport endpoint is already connected: news.uu.net. dropped connection during rebuild of active.times
Jan 23 16:04:19 portal nntpcached-update[8747]: bind() from root(root) for pssnews.msn.com (119) using sockd at 172.23.97.253
Jan 23 16:04:19 portal nntpcached-update[8747]: sockets.c:348:Transport endpoint is already connected: could not connect to news.uu.net. as DEFAULT
Jan 23 16:04:19 portal nntpcached-update[8747]: sockets.c:70:Transport endpoint is already connected: couldn't connect to news.uu.net. as DEFAULT
Jan 23 16:04:19 portal nntpcached-update[8747]: sockets.c:172:Transport endpoint is already connected: fd too high or low (-1 vs 266)
Jan 23 16:04:19 portal nntpcached-update[8747]: list.c:353:Transport endpoint is already connected: news.uu.net. dropped connection during rebuild of newsgroups
Jan 23 16:08:16 portal /usr/sbin/nntpcached-socks[8746]: nntpcache.c:87:No child processes: caught SIGTERM or SIGINT..syncing database...syncing disks...exiting

[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux