Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2001 16:26:19 +0200
From:      "Adriaan Rossouw" <adriaanr@abraxas365.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Firewall + Nat + Gateway with ONE / A  SINGLE / 1 NIC card.
Message-ID:  <00ca01c07b11$4ccdf380$956410ac@abraxas365.com>

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

------=_NextPart_000_00C7_01C07B22.102D90A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

As the subject shows, i only have a single NIC card at my disposal.=20
I have one public IP. and one private IP aliases (192.168.0.1 FYI)
The machine is accessable via both IP's .. now i want requests going =
from
the 192.168.0.x network to public address space, to go through the bsd =
box
etc. (NAT).

I have taken the following steps after reading the Howto's on the =
internet.
1) Recompiled my kernel with IPFIREWALL and IPDIVERT options
2) added the following to rc.conf
    gateway_enable=3D"YES"
    firewall_enable=3D"YES"
    firewall_type=3D"open"
    natd_enable=3D"YES"
    natd_interface=3D"ed0"


Now. what about this setup is wrong, and what do i further need to do to =
complete this.


Thanks in advance, if there is any more information i can furnish you =
with. Please dont hesitate to ask.
After all, I'm the one asking for help.

Regards
  Adriaan AKA Vertice


------=_NextPart_000_00C7_01C07B22.102D90A0
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>As the subject shows, i only have a =
single NIC card=20
at my disposal. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have one public IP. and one private =
IP aliases=20
(192.168.0.1 FYI)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The machine is accessable via both IP's =
.. now i=20
want requests going from</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the 192.168.0.x network to public =
address space, to=20
go through the bsd box</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>etc. (NAT).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have taken the following steps after =
reading the=20
Howto's on the internet.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1) Recompiled my kernel with IPFIREWALL =
and=20
IPDIVERT options</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2) added the following to =
rc.conf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
gateway_enable=3D"YES"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
firewall_enable=3D"YES"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
firewall_type=3D"open"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
natd_enable=3D"YES"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
natd_interface=3D"ed0"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now. what about this setup is wrong, =
and what do i=20
further need to do to complete this.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance, if there is any more =
information=20
i can furnish you with. Please dont hesitate to ask.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>After all, I'm the one asking for=20
help.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Adriaan AKA Vertice</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_00C7_01C07B22.102D90A0--



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?00ca01c07b11$4ccdf380$956410ac>