From owner-freebsd-questions Wed Sep 8 7:12: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from enterprise.sanyusan.se (enterprise.sanyusan.se [195.24.160.51]) by hub.freebsd.org (Postfix) with ESMTP id C5B4015B2F for ; Wed, 8 Sep 1999 07:11:59 -0700 (PDT) (envelope-from anders@enterprise.sanyusan.se) Received: (from anders@localhost) by enterprise.sanyusan.se (8.9.3/8.9.3) id QAA47855 for questions@FreeBSD.ORG; Wed, 8 Sep 1999 16:10:24 +0200 (CEST) (envelope-from anders) Date: Wed, 8 Sep 1999 16:10:24 +0200 From: Anders Andersson To: questions@FreeBSD.ORG Subject: Linux ipfwadm Message-ID: <19990908161024.A47793@enterprise.sanyusan.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a client which now have a Linux box that handles the following: - Server with 2 NIC's, nic 1 has a IP to the Internet and nic 2 got a 192.168. IP for local LAN. - Local LAN clients can now browse the Internet. Linux is setup as following: /sbin/ipfwadm -I -p accept /sbin/ipfwadm -O -p accept /sbin/ipfwadm -F -p deny (two lines, wrapping makes it look bad) /sbin/ipfwadm -F -a masquerade -P all -S 192.168.122.0/255.255.255.0 -D 0.0.0.0/0.0.0.0 /sbin/ipfwadm -F -a masquerade -P all -S 0.0.0.0/0.0.0.0 -D 192.168.122.0/255.255.225.0 How can I do this in FreeBSD? Please let me know if you need more information. Anders -- Anders Andersson anders@sanyusan.se Sanyusan International AB http://www.sanyusan.se/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message