Date: Thu, 13 Dec 2001 10:45:41 -0500 From: Bara Zani <bara_zani@yahoo.com> To: freebsd-questions@freebsd.org Subject: Starnge ipnat problems Message-ID: <20011213104541.A380@weebo>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011213104541.A380>