Subject: Re: More mappings in IPNAT?
To: =?ISO-8859-1?Q?Florian_St=F6hr?= <netbsd@wolfnode.de>
From: Alex Dumitriu <alex@bitblot.com>
List: netbsd-users
Date: 02/17/2004 13:54:29
> Hm, I run NAT with filesaring clients without problems, maybe your
> configuration is wrong?
>
> Can you post the /etc/ipnat.conf?

Can do:

map ex0 192.168.1.1/24 -> 0/32 portmap tcp/udp 40000:60000
map ex0 192.168.1.1/24 -> 0/32
#
#
#Gnutella
rdr ex0 0.0.0.0/0 port 3312 -> tit port 3312 tcp/udp
rdr ex0 0.0.0.0/0 port 3412 -> nem port 3412 tcp/udp
rdr ex0 0.0.0.0/0 port 3512 -> cal port 3512 tcp/udp
#FastTrack
rdr ex0 0.0.0.0/0 port 1215 -> tit port 1215 tcp/udp
rdr ex0 0.0.0.0/0 port 1315 -> cal port 1315 tcp/udp
#Overnet / ED2k
rdr ex0 0.0.0.0/0 port 4661 -> nem port 4661 tcp/udp

As I said, the table fills up with or without the rdr lines. Also, it
seems to be Gnutella in particular that open a ridiculous number of
connections (I agree that it's a poorly behaved client, but I'd still
like to be able to configure my server to work around it). Also, my
maximum number of connections is definately 256. The other 9 I thought I
saw (for a grand total of 265) were actaully an artifact of my using
ipnat -l | wc -l and not discounting the initial lines that denote the
redirects.

Thanks again!

-alex
=-=-=-=-=-=-=-=-=-=
The Consultant's Curse:
	When the customer has beaten upon you long enough, give him
what he asks for, instead of what he needs.  This is very strong
medicine, and is normally only required once.