Date: Sun, 17 Dec 2000 17:06:14 -0500 From: jaid <jaid@home.com> To: freebsd-questions@freebsd.org Subject: IPFW Weirdness (Seeking an explanation)... Message-ID: <5.0.2.1.2.20001217165402.00ac15a0@mail.rdc1.mi.home.com>
next in thread | raw e-mail | index | archive | help
I have a question in regards to a couple ipfw rules that i have setup. A little explanation info: box a: freebsd box running ipfw/natd/iplog and basically, nothing else. Interfaces fxp0 (cable) and fxp1(internal) box b: freebsd box running apache and a few other services. box c: windows box. Recently I decided that I wanted to be able to access the apache server on box b, from box c, via the cable ip address on box a. I tried a ton of different rules, and finally have something that seems to work. However, I dont understand why it works, and why it has to be *EXACTLY* like this: 00020 divert 8668 ip from 192.168.0.0/24 to xxx.xxx.xxx.xxx via fxp1 00020 divert 8668 ip from 192.168.0.0/24 to 192.168.0.0/24 via fxp1 (xxx.xxx.xxx.xxx = cable static ip) If either rule is missing, it wont work. If i change the 192.168.0.0/24 to the internal address of box c, it wont work. If both rules are not the same number (in this case 00020), it wont work. If the rule listed second here, is entered in first, it wont work. It has to be just like its shown, in that order, or it doesnt work. Could someone please explain to me what the heck is making it work? TIA -jaid 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?5.0.2.1.2.20001217165402.00ac15a0>