FreeBSD with xinetd

Dan Mahoney, System Admin danm at prime.gushi.org
Wed Feb 8 16:58:12 UTC 2006


On Wed, 8 Feb 2006, Michael Holstein wrote:

Use ipfw and forward.

ipfw add fwd 127.0.0.1,TORPORT tcp from any to IPADDRESS 80

I used this to run a MUD once and have it sit on port 23.

You may also want to take a look at Thomas Boutell's excellent rinetd 
program, which is a more userspace example of what you want -- except that 
with the IPFW answer, the thing will see the original source IP (not that 
it really matters in the case of TOR)

-Dan

> I'm running a TOR server (nick=csutor) on FreeBSD, using xinetd to forward 
> the connections from 80/443 to higher ports so tor dosen't run as root.
>
> I'm trying to maximize the efficiency of this .. I started with the default 
> of 25 processes under xinetd, but these quickly filled. I then tried 250, 
> which also filled. Now, I'm using 500 processes for xinetd -- and it seems to 
> hover around 300 or so.
>
> Despite what everyone says about TOR being cpu/memory intense, I'm using far 
> more memory keeping all those xinetd connections open. Does anyone know a 
> better way to do this on FreeBSD?
>
> Cheers,
>
> Michael Holstein CISSP GCIA
> Cleveland State University
>

--

Hate fedora with a white hot burning passion right now though ... damn thing is Linux-XP(tm)

-Bill Nolan
2/24/04

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------



More information about the tor-talk mailing list