RE: routing and networking help. (urgent help please)

2007-01-05 Thread Marwan Sultan

FIXED, ignore this email..

However no one has answered.


Hello Gurus,

   This is an Urgent help, as everything pending, waiting.. a FreeBSD 
Solution.
   and I appologize if I will explain in details, please be  patient with 
me.


   Just yesterday, our ISP installed 2 routers (both 3com) at our main 
office.
   One router acting for Datalink between the office and the branch 
(datarouter)

   One for the internet connection.(internet router)

   one short cable connected from the internet router to datalink router
   So everyone on the WAN has internet access which we donot want.
   So we decided to have our FreeBSD 6.1-R server, managing all the job.

   So I installed a FreeBSD box, with NATd enabled, this is how it works
   Internet router ---  rl0 192.168.0.3 freebsd dc0 192.168.1.1 --- 
switch --- all clinets

   also a cat5 cable hookedup from the datalink router to the switch.
   So the switch having the clinets+datalink router + lan freebsd cable.
   The datalink router connected to the branch site also WAN.

   the internet router has the following configurations.
   IP 192.168.0.2 gateway 192.168.0.254
   and the datalink configuration has the follow
   gateway 192.168.0.253
   WAN (branch site)
   IPs of 192.168.2.xx gateway 192.168.0.254
   ALL can ping each other and see each other..(if there is no freebsd 
server)

   also wan works perfectly.. with no FreeBSD server..
   Here is the problem

   the problem when I configure my fbsd lan interface to 192.168.1.1
   and my clinets will have the IP
   192.168.1.x/24 with gateway 192.168.0.254
   wthey will have the internet.. and will NOT see any datalink clients,
   nor will see the WAN on the branch site. (diffrences of IPs and 
gateways)
   because clinets directed to the fbsd server which regonize 192.168.0.254 
(internet router)


   If I configure my clients behind fbsd nat server to IPs of
   192.168.0.x/24 and gateway 192.168.0.253 (Insted of 192.168.1.x and gw 
192.168.0.254)

   they will see the datalink and wan but no internet.

   How would I make all clinets have my fbsd lan ips 192.168.1.x/24
   and freebsd will have the ability to see the two gateways
   192.168.0.254 (internet router) and 192.168.0.253 (datalink router)

   In short words, all clinets should be connected to FreeBSD server lan 
interface
   but in the same time, freebsd will route and manage to the requests for 
wan.


   Second problem:
   If i have rl0 to host my internet router real IP
   and defautlrouter to the NAT ip, internet will not work.
   ifconfig_rl0=inet 62.215.x.6  netmask 255.255.255.252
   defaultrouter=62.215.x.5 #internet router IP
   No Internet.
   but if i host my rl0 to 192.168.0.3
   and defaultrouter to 192.168.0.254 (internet router gateway)
   internet will work...
   ifconfig_rl0=inet 192.168.0.3  netmask 255.255.255.0
   defaultrouter=192.168.0.254

   The first case, disabling nat from router and having it to freebsd only
   second case, having the router to NAT and again freebsd doing another 
nat.


   Sorry Gurus for the long emails, excuse me, and waiting your reply asap.

   -Marwan Sultan.

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


routing and networking help. (urgent help please)

2007-01-04 Thread Marwan Sultan

Hello Gurus,

   This is an Urgent help, as everything pending, waiting.. a FreeBSD 
Solution.
   and I appologize if I will explain in details, please be  patient with 
me.


   Just yesterday, our ISP installed 2 routers (both 3com) at our main 
office.
   One router acting for Datalink between the office and the branch 
(datarouter)

   One for the internet connection.(internet router)

   one short cable connected from the internet router to datalink router
   So everyone on the WAN has internet access which we donot want.
   So we decided to have our FreeBSD 6.1-R server, managing all the job.

   So I installed a FreeBSD box, with NATd enabled, this is how it works
   Internet router ---  rl0 192.168.0.3 freebsd dc0 192.168.1.1 --- 
switch --- all clinets

   also a cat5 cable hookedup from the datalink router to the switch.
   So the switch having the clinets+datalink router + lan freebsd cable.
   The datalink router connected to the branch site also WAN.

   the internet router has the following configurations.
   IP 192.168.0.2 gateway 192.168.0.254
   and the datalink configuration has the follow
   gateway 192.168.0.253
   WAN (branch site)
   IPs of 192.168.2.xx gateway 192.168.0.254
   ALL can ping each other and see each other..(if there is no freebsd 
server)

   also wan works perfectly.. with no FreeBSD server..
   Here is the problem

   the problem when I configure my fbsd lan interface to 192.168.1.1
   and my clinets will have the IP
   192.168.1.x/24 with gateway 192.168.0.254
   wthey will have the internet.. and will NOT see any datalink clients,
   nor will see the WAN on the branch site. (diffrences of IPs and 
gateways)
   because clinets directed to the fbsd server which regonize 192.168.0.254 
(internet router)


   If I configure my clients behind fbsd nat server to IPs of
   192.168.0.x/24 and gateway 192.168.0.253 (Insted of 192.168.1.x and gw 
192.168.0.254)

   they will see the datalink and wan but no internet.

   How would I make all clinets have my fbsd lan ips 192.168.1.x/24
   and freebsd will have the ability to see the two gateways
   192.168.0.254 (internet router) and 192.168.0.253 (datalink router)

   In short words, all clinets should be connected to FreeBSD server lan 
interface
   but in the same time, freebsd will route and manage to the requests for 
wan.


   Second problem:
   If i have rl0 to host my internet router real IP
   and defautlrouter to the NAT ip, internet will not work.
   ifconfig_rl0=inet 62.215.x.6  netmask 255.255.255.252
   defaultrouter=62.215.x.5 #internet router IP
   No Internet.
   but if i host my rl0 to 192.168.0.3
   and defaultrouter to 192.168.0.254 (internet router gateway)
   internet will work...
   ifconfig_rl0=inet 192.168.0.3  netmask 255.255.255.0
   defaultrouter=192.168.0.254

   The first case, disabling nat from router and having it to freebsd only
   second case, having the router to NAT and again freebsd doing another 
nat.


   Sorry Gurus for the long emails, excuse me, and waiting your reply asap.

   -Marwan Sultan.

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]