Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2008 11:45:06 +0200
From:      Tom Wuyts <eenpint@hotmail.com>
To:        Marcone Theisen <marconemlt@gmail.com>, <freebsd-ipfw@freebsd.org>
Subject:   RE: Redirect internal traffic (only port 80) to another link
Message-ID:  <BLU122-W33F5E9047A93F311CF9FA7A2D10@phx.gbl>
In-Reply-To: <ccb97a850805061346lb6a802eo388eed2381d992a2@mail.gmail.com>
References:  <ccb97a850805061346lb6a802eo388eed2381d992a2@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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=



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?BLU122-W33F5E9047A93F311CF9FA7A2D10>