From owner-freebsd-questions Fri Feb 15 21:59:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from priv-edtnes16-hme0.telusplanet.net (defout.telus.net [199.185.220.240]) by hub.freebsd.org (Postfix) with ESMTP id 187B637B416 for ; Fri, 15 Feb 2002 21:59:26 -0800 (PST) Received: from lantechhome ([142.179.230.5]) by priv-edtnes16-hme0.telusplanet.net (InterMail vM.5.01.04.02 201-253-122-122-102-20011128) with SMTP id <20020216055925.TTTT4645.priv-edtnes16-hme0.telusplanet.net@lantechhome> for ; Fri, 15 Feb 2002 22:59:25 -0700 Message-ID: <001c01c1b6b0$1c09ace0$05e6b38e@lantechhome> From: "Shawn Dillon" To: Subject: Natd,ipfw,vnc and multiple interfaces Date: Fri, 15 Feb 2002 23:06:44 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 I am probably missing something very simple , but after much Coke and snacks I cannot figure this out. System : FreeBSD 4.5 Stable xl1 xl2 xl3 xl4 ________________ (External nics , public IPS) | | | | ___________________ xl0 (Internal Nic) 10.0.11.x 255.255.255.0 Ok , this FreeBSD bx has been working like a charm doing NAT from the internal net to the external (using xl1). I installed the xl2,xl3, and xl4 nics with the following objectives. I want to redirect ports or addresses( I cannot get any ot them to work) from the external interfaces ( ie xl2) to an IP on the internal network ( say 10.0.11.253). Questions 1) Can I define multiple interfaces in the natd.conf file? ( ie interface xl1 xl2 xl3) What is the format? 2) Do I define the redirect_port/redirect_address in the natd? ( I assume so) and in the firewall script( /sbin/ipfw add fwd tcp (external) from any to (internal) (If you have a simple natd.conf and firewall script that you know works with port/address forwarding that would be great) I simply want to get packets from an external NIC , forwarded to an internal IP with responses forwarded back thru the external NIC. One real example is the need to get VNC ( ports 5900-5902) from a external IP to connect to an internal machine , and have that internal machines packets routed so that the VNC session works. Any help is greatly appreciated. Shawn Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message