Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2000 14:58:59 -0400
From:      "tywe" <tywe@hotpop.com>
To:        "CNNet" <cnnet@cnnet.com>
Cc:        <freebsd-isp@freebsd.org>
Subject:   Re: Routing with Freebsd
Message-ID:  <00c601bfd632$999a5340$02ac14ac@mia.bellsouth.net>
References:  <4.3.2.7.2.20000614111227.00ad9b80@cnnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I'm still a novice at these things myself, so hopefully someone
else will help you out also, but here is my rc.conf file that I use:

######
hostname="private.foo.net"
inetd_flags=""
tcp_extensions="YES"
network_interfaces="tun0 tun1 tun2 tun3 tun4 tun5 tun6 tun7 tun8 tun9
tun10 tun1
1 tun12 tun13 tun14 tun15 xl0 pn0 lo0"
ifconfig_tun0=
ifconfig_pn0="inet 172.20.172.1 netmask 255.255.255.0"
syslogd_flags="-s -s"
xntpd_enable="YES"
xntpd_flags=""

# -- Routing Options -- #
gateway_enable="YES"
router_enable="YES"
arpproxy_all="YES"

# -- Admin Options -- #
sendmail_enable="NO"
check_quotas="NO"
######

I am simply just sharing a DSL connection (hooked up to xl0) to my
local lan (pn0) and also to some dial-in modems (all those tun#s that
you see).. This setup works great for me, but my DSL uses DHCP to get
it's IP #'s, so your setup might be different.. I noticed that you are
specifying "hostname" and "network_interfaces" twice in your file,
which doesn't seem right to me.. I think hostname should just be the
name of the machine that the rc.conf is residing on, all other
hostnames should be listed in the /etc/hosts file.. And all network
interfaces should just be listed one time, then do "ifconfig_xx0" for
each one to specify ip addresses and netmasks if needed.. oh, you also
shouldn't need the xntpd lines that I have in my file, they are just
to keep the time syncronized.. Hope this helps!



----- Original Message -----
From: CNNet <cnnet@cnnet.com>
To: <freebsd-isp@FreeBSD.ORG>
Sent: Wednesday, June 14, 2000 1:13 PM
Subject: Routing with Freebsd


> Hi could someone help me with a routing problem. I have to network
cards in
> a freebsd 4 machine this is my rc.conf file:
>
> # This file now contains just the overrides from
/etc/defaults/rc.conf
> # please make all changes to this file.
>
> # -- sysinstall generated deltas -- #
> gateway_enable="YES"
> network_interfaces="ed0 lo0"
> ifconfig_ed0="inet 207.229.6.9  netmask 255.255.255.0"
> defaultrouter="207.229.6.9"
> hostname="ua3.foo.com"
> ifconfig_ed2="inet 192.168.1.45  netmask 255.255.255.0"
> network_interfaces="ed2 ed0 lo0"
> defaultrouter="207.229.6.9"
> hostname="private.foo.com"
> router_enable="YES"
>
> What am I doing wrong, i have a internal network that will point to
> 192.168.1.45 as there gateway.
>
> The gateway to the 207.299.6.9 class is 207.229.6.1
>
> Basicall all internal ips will go to this machine and this machine
lets
> them out on the internet
>
> Thanks in advance email address is cnnet@cnnet.com
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c601bfd632$999a5340$02ac14ac>