Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 May 2000 08:44:20 -0400
From:      Mikel <mikel@ocsny.com>
To:        Fabio Miranda <fmirand@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG, FreeBSD-net@FreeBSD.ORG, FreeBSD-isp@FreeBSD.ORG
Subject:   Re: Request of help!
Message-ID:  <3916B6A4.7F5A3728@ocsny.com>
References:  <20000508022134.21789.qmail@web125.yahoomail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Have you tried a more simplistic approach to your route statements?
<p>&nbsp;from below you gave us...
<br><font color="#000099"><font size=-1>ifconfig eth0 209.88.252.106 209.88.252.106
netmask</font></font>
<br><font color="#000099"><font size=-1>255.255.255.248</font></font>
<br><font color="#000099"><font size=-1>ifconfig fxp0 209.88.252.113 netmask
255.255.255.248</font></font>
<br><font color="#000099"><font size=-1>route add -net 209.88.252.104/29
209.88.252.105</font></font>
<br><font color="#000099"><font size=-1>-interface 209.88.252.106</font></font>
<br><font color="#000099"><font size=-1>route add -net 209.88.252.112/29
209.88.252.113</font></font>
<br><font color="#000099"><font size=-1>-interface 209.88.252.113</font></font>
<br><font color="#000099"><font size=-1>route add -net 0.0.0.0 209.88.252.113</font></font>
<p>&nbsp;Suggest altering to something like...I am assuming that fxp0 is
your eterior interface and eth0 is your interior.
<p><font color="#006600"># section 1</font>
<br><font color="#006600"># 0xfffffff8 should be the same as .248 netmask....</font>
<br><font color="#006600">#for /etc/rc.conf</font>
<br><font color="#006600">network_interfaces="eht0 fxp0 lo0"</font>
<br><font color="#006600">ifconfig_eth0=" inet $IP netmask $MSK"</font>
<br><font color="#006600">ifconfig_fxp0="inet 209.88.252.105 netmask 0xfffffff8"</font><font color="#006600"></font>
<p><font color="#006600"># section 2</font>
<br><font color="#006600"># recommend creating a file called /usr/local/etc/rc.d/vhosts.sh</font>
<br><font color="#006600"># then put these entries in it...</font>
<br><font color="#006600">route add -net 0.0.0.0 -interface fxp0</font>
<br><font color="#006600">route add -net 209.88.252.104 netmask 0xfffffff8
-interface fxp0</font><font color="#006600"></font>
<p><font color="#006600"># oh yeah make sure you set the appropriate permissions...</font>
<br><font color="#006600">#-rwxr-x--x&nbsp; 1 root&nbsp; wheel&nbsp; 1764
May&nbsp; 2 03:57 /usr/local/etc/rc.d/vhost.sh</font>
<p>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)
<br>&nbsp;
<p>Fabio Miranda wrote:
<blockquote TYPE=CITE>Hi, i've been trying to set up my network and it
has
<br>been imposible. I have sent many emails and noone has
<br>pointed me in the right way. Please, can anyone help
<br>me?
<br>Problem:
<br>I'm connecting a network to a leased line from my
<br>local company. I have a sever that uses a isa
<br>card(et5025-16 etinc.com) to connect to a dce
<br>(dsu/csu) and from it to the isp.
<br>The isp router is 209.88.252.105 and my IP is
<br>209.88.252.106(the point to point link), and we
<br>belongs to 209.88.252.114 subnet.
<br>Also, the ISP gave me a subnet: 209.88.252.104/29 and
<br>i want the same server to have 209.88.252.113 and
<br>209.88.252.114 to 118 are my local machines.
<br>the diagrama:
<br>&nbsp;&nbsp;&nbsp; ISProuter
<br>(209.88.252.105)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -
<br>eth0(209.88.252.106)
<br>&nbsp;&nbsp;&nbsp;&nbsp; FreeBSD
<br>fxp0(209.88.252.113)----->209.88.252.114to118
<br>machines.
<p>I want the freebsd machine to route from
<br>209.88.252.106 interface to 209.88.252.114 and
<br>viceversa, a multihomed server.
<p>Friends, i have really tried many things and the
<br>answered of my pasts email are kinda confused.
<br>Can anyone tell me something clear? i want to belongs
<br>to FreeBSD comunity! but, docs and all are hard.
<p>this is what i have done:
<p>ifconfig eth0 209.88.252.106 209.88.252.106 netmask
<br>255.255.255.248
<br>ifconfig fxp0 209.88.252.113 netmask 255.255.255.248
<br>route add -net 209.88.252.104/29 209.88.252.105
<br>-interface 209.88.252.106
<br>route add -net 209.88.252.112/29 209.88.252.113
<br>-interface 209.88.252.113
<br>route add -net 0.0.0.0 209.88.252.113
<p>1. What else do i need to make freebsd a router
<br>between the subnet .104 and .112 and make it use the
<br>.113? (pls, write the commands)
<br>2. Do i need another software? like gated or routed or
<br>natd?
<br>3. if i dont need any software, what makes "route" a
<br>packages from any of my local machines to the internet
<br>passing by the gatedway (the server)?.
<p>Thanks alot for any type of help.
<p>p.s. servers it's a l440gx intel using 3.4-release,
<br>others machines are win98
<p>__________________________________________________
<br>Do You Yahoo!?
<br>Send instant messages &amp; get email alerts with Yahoo! Messenger.
<br><a href="http://im.yahoo.com/">http://im.yahoo.com/</a>;
<p>To Unsubscribe: send mail to majordomo@FreeBSD.org
<br>with "unsubscribe freebsd-net" in the body of the message</blockquote>
--
<br>Cheers,
<br>Mikel
<br>+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
<br>| Optimized Computer Solutions, Inc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A HREF="http://www.ocsny.com">http://www.ocsny.com</A>;
<br>| 39 W14th Street, Suite 203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
212 727 2100
<br>| New York, NY 10011
<br>+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
<br>&nbsp;</html>

--------------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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3916B6A4.7F5A3728>