Date: Thu, 22 Oct 1998 20:13:58 -0700 (PDT) From: Loren Daniel Koss <loren@boingo.pciway.com> To: freebsd-questions@FreeBSD.ORG Subject: NATD & IPFW.. Message-ID: <Pine.BSF.3.95q.981022200219.209A-100000@boingo.pciway.com>
next in thread | raw e-mail | index | archive | help
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<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:60:8c:c8:e1:13 tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.981022200219.209A-100000>