From owner-freebsd-questions Fri Dec 1 3:44:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail-4.sjc.telocity.net (mail-4.sjc.telocity.net [216.227.56.44]) by hub.freebsd.org (Postfix) with ESMTP id 6731037B400 for ; Fri, 1 Dec 2000 03:44:29 -0800 (PST) Received: from zoso (dsl-216-227-91-85.telocity.com [216.227.91.85]) by mail-4.sjc.telocity.net (8.9.3/8.9.3) with SMTP id DAA27761; Fri, 1 Dec 2000 03:41:58 -0800 (PST) From: "Otter" To: "bpirorm" , Subject: RE: How to set this on FreeBSD box ? Date: Fri, 1 Dec 2000 06:47:16 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200012010907.QAA02573@www.mvsk.ac.th> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG man ipf and ipfw. choose the one that suits your needs and go from there. -Otter }-----Original Message----- }From: owner-freebsd-questions@FreeBSD.ORG }[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of bpirorm }Sent: Friday, December 01, 2000 4:07 AM }To: freebsd-questions@FreeBSD.ORG }Subject: How to set this on FreeBSD box ? } } }I'm FreeBSD newbie. } In linux I can set (in /etc/rc.d/rc.local) } }ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0 up }route add -net 192.168.1.0 netmask 255.255.255.0 eth0:1 }ipfwadm -F -p deny }ipfwadm -F -a m -S 192.168.1.1/32 -D 0.0.0.0/0 }ipfwadm -F -a m -S 192.168.1.2/32 -D 0.0.0.0/0 }ipfwadm -F -a m -S 192.168.1.3/32 -D 0.0.0.0/0 }ipfwadm -F -a m -S 192.168.1.4/32 -D 0.0.0.0/0 } }for one network card (2 IPs - one for private ip and one for }public ip) }and run squid for my network cache proxy. (On this linux box }act as web server database server and proxy server). How can }I set FreeBSD(3.4) }for this purpose and what files related for this job.? (I }want to make FBSD box instead old linux) . Please advise me }for to make this? } }Thanks }bpirom } } }To Unsubscribe: send mail to majordomo@FreeBSD.org }with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message