From owner-freebsd-questions@FreeBSD.ORG Tue Dec 23 11:36:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C414216A4CE for ; Tue, 23 Dec 2003 11:36:40 -0800 (PST) Received: from kifco.net (host4.kifco.net [216.65.57.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97A0E43D54 for ; Tue, 23 Dec 2003 11:36:38 -0800 (PST) (envelope-from Admin@kifco.net) Received: from kifco.net (deadline@localhost [127.0.0.1]) by kifco.net (8.12.8p1/8.12.8) with ESMTP id hBNFhppD029838 for ; Tue, 23 Dec 2003 15:43:51 GMT (envelope-from Admin@kifco.net) From: "Marwan Sultan" To: "FreeBSD questions List" Date: Tue, 23 Dec 2003 18:43:51 +0300 Message-Id: <20031223152447.M76895@kifco.net> X-Mailer: Open WebMail X-OriginatingIP: 62.150.201.187 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: NATd newbi Problem. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2003 19:36:40 -0000 Hello everyone, Its my first time to setup NAT and I wish someone to fix my bugs here. I have a DSL Router Modem connected to Internet and FreeBSD box as follow DSL-Router <--> FreeBSD HUB <-> 98,XP clients DSL Router = 192.168.0.1 rl0 = 192.168.0.2 rl1 = 192.168.0.3 Problem is: rl0 cannot ping rl1 so clients cannot see rl1 I thought reason cuz both of the NIC's are in same class ? maybe? So I changed the IP of rl1 to match 192.0.192.2 in this case rl0 (192.168.0.2) CAN see both ROUTER and rl1 (192.0.192.2) But clients cannot see rl0 because they start to see rl1 class because they are in same class. in both cases BSD server can access thhe Internet normally because its in same router class and correct conf. well, im missed here. rl0 and rl1 should be in same class? if yes? why they couldnot see each other when they have same class? should they be in diffrent claasses? if YES then clients how they will see rl0 class? what rl1 should be in rc.conf? This machine will act a gateway for clients cuz we need to controll internet access. The follow is compiled in kernel: options IPFIREWALL options IPDIVER options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_VERBOSET Follow is in rc.conf apm_enable="YES" gateway_enable="YES" firewall_enable="YES" firewall_type="OPEN" natd_enable="YES" natd_interface="rl0" natd_flags="" kern_securelevel_enable="NO" linux_enable="YES" nfs_reserved_port_only="YES" nfs_server_enable="YES" sendmail_enable="YES" sshd_enable="YES" usbd_enable="YES" network_interfaces="rl0 rl1 lo0" ifconfig_rl0="inet 192.168.0.2 netmask 255.255.255.0" ifconfig_rl1="inet 192.0.192.2 netmask 255.255.255.0" defaultrouter="192.168.0.1" hostname="telesen.qualitynet.net" -- Marwan Sultan