From owner-freebsd-net Mon May 8 5:44: 7 2000 Delivered-To: freebsd-net@freebsd.org Received: from apollo.ocsny.com (apollo.ocsny.com [204.107.76.2]) by hub.freebsd.org (Postfix) with ESMTP id CEEBE37B51F; Mon, 8 May 2000 05:43:45 -0700 (PDT) (envelope-from mikel@ocsny.com) Received: from ocsny.com (thoth.upan.org [204.107.76.16]) by apollo.ocsny.com (8.9.2/8.9.3) with ESMTP id IAA68276; Mon, 8 May 2000 08:41:22 -0400 (EDT) Message-ID: <3916B6A4.7F5A3728@ocsny.com> Date: Mon, 08 May 2000 08:44:20 -0400 From: Mikel Organization: Optimized Computer Solutions, Inc. X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en,it MIME-Version: 1.0 To: Fabio Miranda Cc: freebsd-questions@FreeBSD.ORG, FreeBSD-net@FreeBSD.ORG, FreeBSD-isp@FreeBSD.ORG Subject: Re: Request of help! References: <20000508022134.21789.qmail@web125.yahoomail.com> Content-Type: multipart/mixed; boundary="------------1DAE3D92FF4B71017F0BB8F6" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------1DAE3D92FF4B71017F0BB8F6 Content-Type: multipart/alternative; boundary="------------84C0ABF8769A475D786EFF59" --------------84C0ABF8769A475D786EFF59 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Have you tried a more simplistic approach to your route statements? from below you gave us... ifconfig eth0 209.88.252.106 209.88.252.106 netmask 255.255.255.248 ifconfig fxp0 209.88.252.113 netmask 255.255.255.248 route add -net 209.88.252.104/29 209.88.252.105 -interface 209.88.252.106 route add -net 209.88.252.112/29 209.88.252.113 -interface 209.88.252.113 route add -net 0.0.0.0 209.88.252.113 Suggest altering to something like...I am assuming that fxp0 is your eterior interface and eth0 is your interior. # section 1 # 0xfffffff8 should be the same as .248 netmask.... #for /etc/rc.conf network_interfaces="eht0 fxp0 lo0" ifconfig_eth0=" inet $IP netmask $MSK" ifconfig_fxp0="inet 209.88.252.105 netmask 0xfffffff8" # section 2 # recommend creating a file called /usr/local/etc/rc.d/vhosts.sh # then put these entries in it... route add -net 0.0.0.0 -interface fxp0 route add -net 209.88.252.104 netmask 0xfffffff8 -interface fxp0 # oh yeah make sure you set the appropriate permissions... #-rwxr-x--x 1 root wheel 1764 May 2 03:57 /usr/local/etc/rc.d/vhost.sh Ok now how to make this work...personally I wouldn't try using my fBSD box to route same mask traffic accross two interfaces...because if you do then you will have to set up route for each host on the interior network...you would find it far easier to recompile the kernel to add ipfw support, and then use the natd/ipfw combo in which case you can use a fictitious ip block like 10.0.0.0 for $IP and 0xff000000 for $MSK, or if you have trouble with class 'A' scopes then try Class a 'B' 192.168.0.0 for $IP and 0xFFFF0000 for $MSK Then it would be a matter of setting up your firewall rules (in /etc/rc.firewall) and turning natd on (in /etc/rc.conf) Fabio Miranda wrote: > Hi, i've been trying to set up my network and it has > been imposible. I have sent many emails and noone has > pointed me in the right way. Please, can anyone help > me? > Problem: > I'm connecting a network to a leased line from my > local company. I have a sever that uses a isa > card(et5025-16 etinc.com) to connect to a dce > (dsu/csu) and from it to the isp. > The isp router is 209.88.252.105 and my IP is > 209.88.252.106(the point to point link), and we > belongs to 209.88.252.114 subnet. > Also, the ISP gave me a subnet: 209.88.252.104/29 and > i want the same server to have 209.88.252.113 and > 209.88.252.114 to 118 are my local machines. > the diagrama: > ISProuter > (209.88.252.105) > - > - > - > - > eth0(209.88.252.106) > FreeBSD > fxp0(209.88.252.113)----->209.88.252.114to118 > machines. > > I want the freebsd machine to route from > 209.88.252.106 interface to 209.88.252.114 and > viceversa, a multihomed server. > > Friends, i have really tried many things and the > answered of my pasts email are kinda confused. > Can anyone tell me something clear? i want to belongs > to FreeBSD comunity! but, docs and all are hard. > > this is what i have done: > > ifconfig eth0 209.88.252.106 209.88.252.106 netmask > 255.255.255.248 > ifconfig fxp0 209.88.252.113 netmask 255.255.255.248 > route add -net 209.88.252.104/29 209.88.252.105 > -interface 209.88.252.106 > route add -net 209.88.252.112/29 209.88.252.113 > -interface 209.88.252.113 > route add -net 0.0.0.0 209.88.252.113 > > 1. What else do i need to make freebsd a router > between the subnet .104 and .112 and make it use the > .113? (pls, write the commands) > 2. Do i need another software? like gated or routed or > natd? > 3. if i dont need any software, what makes "route" a > packages from any of my local machines to the internet > passing by the gatedway (the server)?. > > Thanks alot for any type of help. > > p.s. servers it's a l440gx intel using 3.4-release, > others machines are win98 > > __________________________________________________ > Do You Yahoo!? > Send instant messages & get email alerts with Yahoo! Messenger. > http://im.yahoo.com/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- Cheers, Mikel +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ | Optimized Computer Solutions, Inc http://www.ocsny.com | 39 W14th Street, Suite 203 212 727 2100 | New York, NY 10011 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ --------------84C0ABF8769A475D786EFF59 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Have you tried a more simplistic approach to your route statements?

 from below you gave us...
ifconfig eth0 209.88.252.106 209.88.252.106 netmask
255.255.255.248
ifconfig fxp0 209.88.252.113 netmask 255.255.255.248
route add -net 209.88.252.104/29 209.88.252.105
-interface 209.88.252.106
route add -net 209.88.252.112/29 209.88.252.113
-interface 209.88.252.113
route add -net 0.0.0.0 209.88.252.113

 Suggest altering to something like...I am assuming that fxp0 is your eterior interface and eth0 is your interior.

# section 1
# 0xfffffff8 should be the same as .248 netmask....
#for /etc/rc.conf
network_interfaces="eht0 fxp0 lo0"
ifconfig_eth0=" inet $IP netmask $MSK"
ifconfig_fxp0="inet 209.88.252.105 netmask 0xfffffff8"

# section 2
# recommend creating a file called /usr/local/etc/rc.d/vhosts.sh
# then put these entries in it...
route add -net 0.0.0.0 -interface fxp0
route add -net 209.88.252.104 netmask 0xfffffff8 -interface fxp0

# oh yeah make sure you set the appropriate permissions...
#-rwxr-x--x  1 root  wheel  1764 May  2 03:57 /usr/local/etc/rc.d/vhost.sh

Ok now how to make this work...personally I wouldn't try using my fBSD box to route same mask traffic accross two interfaces...because if you do then you will have to set up route for each host on the interior network...you would find it far easier to recompile the kernel to add ipfw support, and then use the natd/ipfw combo in which case you can use a fictitious ip block like 10.0.0.0 for $IP and 0xff000000 for $MSK, or if you have trouble with class 'A' scopes then try Class a 'B' 192.168.0.0 for $IP and 0xFFFF0000 for $MSK Then it would be a matter of setting up your firewall rules (in /etc/rc.firewall) and turning natd on (in /etc/rc.conf)
 

Fabio Miranda wrote:

Hi, i've been trying to set up my network and it has
been imposible. I have sent many emails and noone has
pointed me in the right way. Please, can anyone help
me?
Problem:
I'm connecting a network to a leased line from my
local company. I have a sever that uses a isa
card(et5025-16 etinc.com) to connect to a dce
(dsu/csu) and from it to the isp.
The isp router is 209.88.252.105 and my IP is
209.88.252.106(the point to point link), and we
belongs to 209.88.252.114 subnet.
Also, the ISP gave me a subnet: 209.88.252.104/29 and
i want the same server to have 209.88.252.113 and
209.88.252.114 to 118 are my local machines.
the diagrama:
    ISProuter
(209.88.252.105)
       -
       -
       -
       -
eth0(209.88.252.106)
     FreeBSD
fxp0(209.88.252.113)----->209.88.252.114to118
machines.

I want the freebsd machine to route from
209.88.252.106 interface to 209.88.252.114 and
viceversa, a multihomed server.

Friends, i have really tried many things and the
answered of my pasts email are kinda confused.
Can anyone tell me something clear? i want to belongs
to FreeBSD comunity! but, docs and all are hard.

this is what i have done:

ifconfig eth0 209.88.252.106 209.88.252.106 netmask
255.255.255.248
ifconfig fxp0 209.88.252.113 netmask 255.255.255.248
route add -net 209.88.252.104/29 209.88.252.105
-interface 209.88.252.106
route add -net 209.88.252.112/29 209.88.252.113
-interface 209.88.252.113
route add -net 0.0.0.0 209.88.252.113

1. What else do i need to make freebsd a router
between the subnet .104 and .112 and make it use the
.113? (pls, write the commands)
2. Do i need another software? like gated or routed or
natd?
3. if i dont need any software, what makes "route" a
packages from any of my local machines to the internet
passing by the gatedway (the server)?.

Thanks alot for any type of help.

p.s. servers it's a l440gx intel using 3.4-release,
others machines are win98

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message

--
Cheers,
Mikel
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
| Optimized Computer Solutions, Inc        http://www.ocsny.com
| 39 W14th Street, Suite 203                   212 727 2100
| New York, NY 10011
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
  --------------84C0ABF8769A475D786EFF59-- --------------1DAE3D92FF4B71017F0BB8F6 Content-Type: text/x-vcard; charset=us-ascii; name="mikel.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mikel Content-Disposition: attachment; filename="mikel.vcf" begin:vcard n:King;Mikel tel;fax:2124638402 tel;home:http://www.upan.org tel;work:2127272100 x-mozilla-html:TRUE org:Optimized Computer Solutions version:2.1 email;internet:mikel@ocsny.com title:Director of Network Operations & Technology adr;quoted-printable:;;39 W14th St.=0D=0ASte 203;New York;NY;10011;US note;quoted-printable:fBSD, PHP, MySql and OCS Rule!!!=0D=0A=0D=0AGoal is to be MS free by the end of 2k. x-mozilla-cpt:;7312 fn:Mikel King end:vcard --------------1DAE3D92FF4B71017F0BB8F6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message