Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Apr 2001 17:22:11 -0400
From:      "Craig Tewksbury" <ctewksb1@tampabay.rr.com>
To:        <questions@FreeBSD.org>
Subject:   ipfw and fwd
Message-ID:  <001d01c0be16$7e009820$ca0aa8c0@tampabay.rr.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C0BDF4.F34C2EE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am using FreeBSD v3.2. I am using ipfw and natd. I would like to =
forward inbound ftp traffic to an internal server. I have tried ipfw fwd =
unsuccessfully.  The rule I tried:

ipfw add 200 fwd 192.168.4.2 tcp from any to <oip> ftp

Where 192.168.4.2 is the internal ftp server and <oip> represents the =
public address on my ipfw firewall.

Am I misunderstanding the function of fwd? I have not tried natd =
-redirect_port yet. Would this be a better option? fwd could be added or =
removed dynamically (preferred). Any suggestions are welcome.

Thanks.
Craig Tewksbury

------=_NextPart_000_001A_01C0BDF4.F34C2EE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#c0c0c0>
<DIV><FONT face=3DArial size=3D2>I am using FreeBSD v3.2. I am using =
ipfw and natd.=20
I would like to forward inbound ftp traffic to an internal server. I =
have tried=20
ipfw fwd unsuccessfully.&nbsp; The rule I tried:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ipfw add 200 fwd 192.168.4.2 tcp from =
any to=20
&lt;oip&gt; ftp</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Where 192.168.4.2 is the internal ftp =
server and=20
&lt;oip&gt; represents the public address on my ipfw =
firewall.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Am I misunderstanding the function of =
fwd? I have=20
not tried natd -redirect_port yet. Would this be a better option? fwd =
could be=20
added or removed dynamically (preferred). Any suggestions are=20
welcome.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Craig =
Tewksbury</FONT></DIV></BODY></HTML>

------=_NextPart_000_001A_01C0BDF4.F34C2EE0--


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?001d01c0be16$7e009820$ca0aa8c0>