From: Morger Philipp To: "'misc@openbsd.org'" Date: Wed, 25 Apr 2001 20:16:58 +0200 Subject: IPNAT Message-ID: <3D2C2236F3C9194B8328E3375C3ABFDA334ADE@axpzrh-mf01.axept.ch > X-Mailer: Internet Mail Service (5.5.2653.19) Dear OBSD friends My OBSD bites me... and I don't know why... I'm tring to make a IPNAT redirection of some ports... here is the ipnat.rules # $OpenBSD: ipnat.rules,v 1.2 1999/05/08 16:33:10 jason Exp $ # # See /usr/share/ipf/nat.1 for examples. # edit the ipnat= line in /etc/rc.conf to enable Network Address Translation map xl2 10.0.0.0/8 -> xl2/32 #Web rdr xl2 212.23.245.98/32 port 80 -> 10.80.2.2 port 80 tcpudp rdr xl2 212.23.245.98/32 port 443 -> 10.80.2.2 port 443 tcpudp rdr xl1 212.23.245.98/32 port 80 -> 10.80.2.2 port 80 tcpudp rdr xl1 212.23.245.98/32 port 443 -> 10.80.2.2 port 443 tcpudp #FTP rdr xl2 212.23.245.98/32 port 21 -> 212.25.25.10 port 21 tcpudp rdr xl2 212.23.245.98/32 port 20 -> 212.25.25.10 port 20 tcpudp #DNS #rdr xl2 212.23.245.98/32 port 53 -> 10.80.2.2 port 53 tcpudp #Mail rdr xl2 212.23.245.98/32 port 25 -> 10.80.2.2 port 25 tcpudp rdr xl1 212.23.245.98/32 port 25 -> 10.80.2.2 port 25 tcpudp #TS rdr xl2 212.23.245.98/32 port 3389 -> 10.80.2.5 port 3389 tcpudp here is the rc.conf (partly) ipfilter=YES ipnat=YES # for "YES" ipfilter must also be "YES" NATing outbound is fine... just the inbound port redirection dosn't work.... as you see my internal network is 10.80.0.0/255.255.240.0 btw: it's a OBSD 2.8 box I guess it must be something tiny that I miss... thanks Philipp