From owner-freebsd-questions Thu Dec 13 7:48:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 3469037B405 for ; Thu, 13 Dec 2001 07:48:23 -0800 (PST) Received: from user-1121049.dsl.mindspring.com ([66.32.128.137] helo=weebo.dns2go.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16EY5s-0001J7-00 for freebsd-questions@freebsd.org; Thu, 13 Dec 2001 07:48:20 -0800 Received: (from mlevy@localhost) by weebo.dns2go.com (8.11.6/8.11.6) id fBDFjfN00410 for freebsd-questions@freebsd.org; Thu, 13 Dec 2001 10:45:41 -0500 (EST) Date: Thu, 13 Dec 2001 10:45:41 -0500 From: Bara Zani To: freebsd-questions@freebsd.org Subject: Starnge ipnat problems Message-ID: <20011213104541.A380@weebo> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi To All , I'm having a strange startup problem with ipnat ... here's my setup freebsd-release 4.4 i'm using pppoe to connect wiht dsl to internet . my rc.conf has these entries : ipfilter_enable="YES" # Set to YES to enable ipfilter functionality ipnat_enable="YES" # Set to YES for ipnat; needs ipfilter, too! ipmon_enable="YES" # Set to YES for ipmon; needs ipfilter, too! ipmon_flags="-nDP /var/run/ipmon.pid /var/log/ipf.log" this is my ipnat.rules file map tun0 192.168.0.0/24 -> 0/32 rdr tun0 0.0.0.0/0 port 2110 -> 192.168.0.110 port 443 rdr tun0 0.0.0.0/0 port 2111 -> 192.168.0.111 port 443 rdr tun0 0.0.0.0/0 port 2112 -> 192.168.0.112 port 443 after a reboot this is the output of ipnat -l BUT but it's not working ( nat and rdr ) List of active MAP/Redirect filters: map tun0 192.168.0.0/24 -> 0.0.0.0/32 rdr tun0 0.0.0.0/0 port 2110 -> 192.168.0.110 port 443 tcp rdr tun0 0.0.0.0/0 port 2111 -> 192.168.0.111 port 443 tcp rdr tun0 0.0.0.0/0 port 2112 -> 192.168.0.112 port 443 tcp if i run ipnat -CF -f /etc/ipnat.rules on the command line things return to normal .... my /etc/defaults/rc.conf file has the followiing ipnat entries : ipnat_enable="NO" # Set to YES for ipnat; needs ipfilter, too! ipnat_program="/sbin/ipnat -CF -f" # program and how to specify rules file ipnat_rules="/etc/ipnat.rules" # rules definition file for ipnat ipnat_flags="" # additional flags for ipnat any idea's ( besides puuuting an ipnat script in /usr/local/etc/rc.d ;-) --------------------- Barazani --------------------- People who hate microsoft use Linux, people that love unix, use BSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message