Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using FreeBSD-10.0-RELEASE:

root@fx:~ # uname -a
FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014  amd64
root@fx:~ # 

and I'm trying to configure ipnat(8) to do redirect for me from port 80 to port 80:

root@fx:~ # cat /etc/ipnat.rules 
rdr bce0 port 80 -> port 80 tcp
root@fx:~ # 

whenever I hit on port 80, I'm getting follwoing:

root@fx:~ # ipnat -l
List of active MAP/Redirect filters:
rdr bce0 port 80 -> port 80 tcp

List of active sessions:
RDR    80    <- ->    80    [ 41677]
root@fx:~ # 

and nothing on the client's end( what am I doing wrong? Can someone give me a hand please? I even tried w/ natd(8).

root@fx:~ # cat /etc/natd.conf
redirect_port tcp
root@fx:~ # 
share|improve this question
ipfilter (ipnat is part from ipfilter) is almost not maintained for now. Better to use pf instead ipnat. – citrin Feb 24 '14 at 17:16
can you provide an example of how to do port forwarding w/ pf? – alexus Feb 24 '14 at 17:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.