Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using FreeBSD-10.0-RELEASE:

root@fx:~ # uname -a
FreeBSD fx.alexus.org 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
root@fx:~ # 

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

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

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

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

List of active sessions:
RDR 66.55.138.69    80    <- -> 66.55.138.70    80    [69.10.67.106 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 66.55.138.69:80 66.55.138.70:80
root@fx:~ # 
share|improve this question
1  
ipfilter (ipnat is part from ipfilter) is almost not maintained for now. Better to use pf instead ipnat. –  citrin Feb 24 at 17:16
    
can you provide an example of how to do port forwarding w/ pf? –  alexus Feb 24 at 17:27

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.