NATd newbi Problem.
Marwan Sultan
Admin at kifco.net
Tue Dec 23 15:49:33 PST 2003
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
More information about the freebsd-questions
mailing list