Date: Thu, 18 Apr 2002 12:39:06 -0400 From: Donnie Jones <donniejones18@yahoo.com> To: "saifuddin Abd. Salam" <saif_addin@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Router/Gateway Message-ID: <20020418123906.68629ef8.donniejones18@yahoo.com> In-Reply-To: <20020418102655.55019.qmail@web11406.mail.yahoo.com> References: <20020418102655.55019.qmail@web11406.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Apr 2002 03:26:55 -0700 (PDT) "saifuddin Abd. Salam" <saif_addin@yahoo.com> wrote: > I have setup the pc router/gateway with this > conditions: > 1. I have added the options into kernel, and compiled > too: > a. options IPFILTER > b. options IPFILTER_LOG > c. options IPFIREWALL_DEFAULT_TO_ACCEPT > > 2. In the rc.conf file, I have these lines: > a. defaultrouter="my.internet.ip.default.gateway" > b. gateway_enable="YES" > c. hostname="my.hostname" > d. network_interface="xl0 lo0 xl1" > e. ifconfig_xl0="inet x.x.x.x netmask > 255.255.255.0" > f. ifconfig_xl1="inet y.y.y.y netmask > 255.255.255.0" > g. ipnat_enable="YES" > h. ipnat_rules="/etc/ipnat.rules" > i. ipfilter_rules="/etc/ipf.rules" > ... > ... > 3. The ipnat.rules has these rules: > a. map xl0 x.x.x.0/24 -> 0.0.0.0/32 portmap > tcp/udp auto > b. map xl0 x.x.x.0/24 -> 0.0.0.0/32 > c. rdr xl0 0.0.0.0/32 port 80 -> my.proxy.op port > 8080 Are you actually running an http proxy? > > 4. Meanwhile my ipf rules was blank > > 5. Ping from router/gateway to host in internal > network is ok. > 6. ping from host internal network to router/gateway > is ok > > Problems: > Ping, browsing from host internal network into outside > the world was failed > > Have the idea to solve? > > thanks > regards > Saifuddin > Have you tested browsing the internet from the freebsd gateway? If only browsing from the internal network fails, is it because you're redirecting to a http proxy that you don't have? or is your http proxy not working correctly? More info needed, Good luck. --Donnie http://www.darthik.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com 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?20020418123906.68629ef8.donniejones18>