From owner-freebsd-questions Thu Oct 22 20:15:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA13189 for freebsd-questions-outgoing; Thu, 22 Oct 1998 20:15:19 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from boingo.pciway.com (boingo.pciway.com [206.0.98.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA13184 for ; Thu, 22 Oct 1998 20:15:15 -0700 (PDT) (envelope-from loren@boingo.pciway.com) Received: from localhost (loren@localhost) by boingo.pciway.com (8.8.8/8.8.8) with SMTP id UAA00255 for ; Thu, 22 Oct 1998 20:13:59 -0700 (PDT) Date: Thu, 22 Oct 1998 20:13:58 -0700 (PDT) From: Loren Daniel Koss Reply-To: Loren Daniel Koss To: freebsd-questions@FreeBSD.ORG Subject: NATD & IPFW.. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Those of you who are going to reply "read the man pages" or "go buy TCP/IP admin" book, please ignore this message and continue with your day. Now, to those of you in the past who have so graciously helped me out, I appreciate it. However, I am still confused and can't seem to get it to work. I hate the fact that my friends with Linux said it worked right out of the box!! Now, here's my new network topology: 206.0.98.1 <-- Router | 206.0.98.10 <-- EP0 192.168.1.1 <--EP1 | | -------Rest of Network - All 192.168.1.x --------- Okay, without doing much, machines cacn ping 206.0.98.10, 192.168.1.1, and other 192.168.1.x machines just fine. The BSD box can get to the internet just fine, as well. Question is how do I masquerade the 192.168.1.x network out to the world through the 206.0.98.10 address. Also, I run a webserver on one of the machines. How is that going to work properly? I host about 7 sites on it with seven unique addresses. I was thinking of hosting them all on one address with different ports and somehow using NATD to route an address to the proper port on that machine. I also noticed when it boots it says "IP Filtering Enabled, Divert Disabled, logging disabled." Is that normal? I have the IPDIVERT option turned on in the kernal. Thanks for everything! What I need: STEP BY STEP INSTRUCTION (ie natd -n ep0 then ipfw blah blah blah). here is some info: netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 206.0.98.1 UGSc 12 0 ep0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.1 link#3 UC 0 0 206.0.98 link#2 UC 0 0 206.0.98.1 0:0:93:64:4b:2e UHLW 13 0 ep0 1167 206.0.98.10 0:60:8c:c9:1e:1f UHLW 1 65 lo0 206.0.98.12/32 link#2 UC 0 0 206.0.98.60/32 link#2 UC 0 0 ifconfig -a lp0: flags=8810 mtu 1500 ep0: flags=8843 mtu 1500 inet 206.0.98.10 netmask 0xffffff00 broadcast 206.0.98.255 inet 206.0.98.60 netmask 0xffffffff broadcast 206.0.98.60 inet 206.0.98.12 netmask 0xffffffff broadcast 206.0.98.12 ether 00:60:8c:c9:1e:1f ep1: flags=8843 mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:60:8c:c8:e1:13 tun0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 ppp0: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message