Subject: port forwarding
To: None <>
From: IvanK. <>
List: tech-net
Date: 06/03/2002 14:18:14
Hi guys,

I need some help with setting up port forwarding on NetBSD 1.5.2 with generic 

My ipf.conf is as follows:

pass in from any to any
pass out from any to any

My ipnat is as follows:

map ne0 -> 0/32 proxy port ftp ftp/tcp
map ne0 -> 0/32 portmap tcp/udp 40000:60000
map ne0 -> 0/32

rdr ne0 0/0 port 80 -> port 80 tcp

ne0 is the external interface that is connected to a cable modem (dynamic IP).

when I portscan my router from work, I see that it has port 80 filtered as I 
expect.  From my internal network I can connect to the http server on  However my connection times out whenever I connect from 
outside.  I have net.inet.ip.forwarding=1 in sysctl.conf.

I'm out of ideas.  What's wrong?


ps: I've also tried rdr IP/32 port 80 -> port 80 tcp, where IP is 
my external IP.  Doesn't work either.