From owner-freebsd-ipfw@FreeBSD.ORG Wed May 7 09:57:07 2008 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C52F106566C for ; Wed, 7 May 2008 09:57:07 +0000 (UTC) (envelope-from eenpint@hotmail.com) Received: from blu139-omc1-s26.blu139.hotmail.com (blu139-omc1-s26.blu139.hotmail.com [65.55.175.166]) by mx1.freebsd.org (Postfix) with ESMTP id 59DBF8FC1C for ; Wed, 7 May 2008 09:57:06 +0000 (UTC) (envelope-from eenpint@hotmail.com) Received: from BLU122-W33 ([65.55.162.182]) by blu139-omc1-s26.blu139.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 May 2008 02:45:05 -0700 Message-ID: X-Originating-IP: [193.190.253.144] From: Tom Wuyts To: Marcone Theisen , Date: Wed, 7 May 2008 11:45:06 +0200 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 07 May 2008 09:45:05.0991 (UTC) FILETIME=[07BA1D70:01C8B027] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: RE: Redirect internal traffic (only port 80) to another link X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 09:57:07 -0000 set in your rc.conf next line natd_flags=3D"-f /etc/natd.conf" and then add the file natd.conf in your etc/ folder interface em0 (if i'm not mistaking, i don't completely get your question) use_sockets yes dynamic yes redirect_port tcp 192.168.7.105:80 80 this should send all packets arriving at port 80 from your 10.0.0.0 network= to 192.168.7.105 and then restart your network /etc/netstart restart if he complains about natd, while restarting your network, kill natd with "= pkill natd" and then restart your network hope it helps, tom > Date: Tue, 6 May 2008 17:46:06 -0300 > From: marconemlt@gmail.com > To: freebsd-ipfw@freebsd.org > Subject: Redirect internal traffic (only port 80) to another link >=20 > Hi, >=20 > I have 2 links, one em0 and other in vlan2 interface. > My default route is em0. >=20 > The problem is: > I want to direct all internal Internet traffic (port 80) for the link in > vlan2 interface. > How to do it with the IPFW? >=20 > Some information: >=20 > Link em0 interface - 10.40.1.0 > Interna network: em1 interface - 10.10.18.0 > Link vlan2 interface - 192.168.7.0 >=20 > The vlan2 interface is on Trunk port in switch. It's work. >=20 > We have tried the following alternatives: >=20 > I created another route: > Route ADD 192.168.7.107 192.168.7.105 >=20 > ipfw add 00019 divert from 8668 ip 10.10.18.0/24 to any 80 via vlan2 > Traffic continued through dedicated link. >=20 > ipfw add 00019 fwd 192.168.7.105 tcp from 10.10.18.0/24 to any 80 > redirect the traffic on the link vlan2, but did not return anything. >=20 > ipfw add 00019 divert from 8669 ip 10.10.18.0/24 to any 80 via vlan2 > natd-s-m-n-vlan2 p 8669 > Anything! >=20 > All attempts without success. > Thus, how I can redirect my internal Internet traffic to the VLAN2 link w= ith > IPFW ? >=20 > Thank's, > Marcone > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" _________________________________________________________________ Nieuwe lente...Een nieuw online leven...Gratis dankzij Windows Live http://get.live.com=