November 25, 2024, 02:19:12 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Connecting different LANs  (Read 8806 times)

Offline apoorv

  • New Member
  • Posts: 1
Connecting different LANs
« on: October 23, 2003, 07:54:49 PM »
We have 3 eight port hubs supporting three different lans, the pc on the lan runs combination of windoz and Linux. I want to connect two lans through a linux box Running Redhat 7.3,
My requirements are to share files across the different networks. And lan intranet webhosting.

What could be the best way to do that..??
Samba, SSH, or Telnet??

Or Should I use  Iptables????

Please suggest !!

Thank you! in Advance...

taraj

  • Guest
Connecting different LANs
« Reply #1 on: October 26, 2003, 09:06:23 PM »
Here you can do one thing..

You can make your two hubs look like one by enabling ip forwarding through Linux box..
To do so ..
Code: [Select]
echo 1 > /proc/sys/net/ipv4/ip_forward
Then use ur samba to enable file sharing between windows and Linux machine.
Give a look to following address..
http://www.samba.org
http://hr.uoregon.edu/davidrl/samba.html

Regards

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Connecting different LANs
« Reply #2 on: February 15, 2004, 04:15:38 AM »
Samba---> It's meant for file sharing. ( ***USE THIS***)
SSH   ----> It's meant for remote administration of ur server.
Telnet----> Never, never use this. (IT'S 100% INSECURE)

Iptables is meant for packet filtering stuffs (FIREWALL-ing)

So overall to make ur network work nice :)
I suggest u make ur linux box:

1) DHCP Server,
2) Samba File Server
3) An Apache webserver
4) IP Tables is up running.

5)MRTG (Multi Router Traffic Grapher -HEARD B4?) It's optional but nice. :)
Try not to make a box to be multi-Server if possible.