From owner-freebsd-isp Wed Jun 14 11:59:18 2000 Delivered-To: freebsd-isp@freebsd.org Received: from zagnut.hotpop.com (zagnut.hotpop.com [204.57.55.32]) by hub.freebsd.org (Postfix) with ESMTP id 4C85C37BBB6 for ; Wed, 14 Jun 2000 11:59:09 -0700 (PDT) (envelope-from tywe@hotpop.com) Received: from mach2.mia.bellsouth.net (adsl-61-9-201.mia.bellsouth.net [208.61.9.201]) by zagnut.hotpop.com (Postfix) with SMTP id 8ACED639D9; Wed, 14 Jun 2000 14:59:01 -0400 (EDT) Message-ID: <00c601bfd632$999a5340$02ac14ac@mia.bellsouth.net> From: "tywe" To: "CNNet" Cc: References: <4.3.2.7.2.20000614111227.00ad9b80@cnnet.com> Subject: Re: Routing with Freebsd Date: Wed, 14 Jun 2000 14:58:59 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 To: 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