Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2003 22:56:45 +0300
From:      "Marwan Sultan" <Admin@kifco.net>
To:        freebsd-questions@freebsd.org
Subject:   NATd newbi Problem.
Message-ID:  <20031223152447.M76895@kifco.net>

next in thread | raw e-mail | index | archive | help

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  <-->  <rl0>FreeBSD<rl1> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031223152447.M76895>