PDA

View Full Version : Linking two fedoras together


maxstradamus
2007-05-23, 04:56 PM CDT
i'm trying to set up a small network

i have my main pc (let's call it com1) and my laptop (com2)

com2 is running fc6 and com1 is running fc5
my cable modem is hooked up to eth1 (on com1) and eth0 is connected to com2 through a crossover cable.

i want to be able to juggle files between the two computers as well as surf the web on com2

any suggestions would be greatly appreciated

Brian1
2007-05-23, 05:15 PM CDT
It would be easier to buy a firewall/router and connect the modem to the lan and then connect the two computers to the lan ports.

The way you have can be tricky but not 100percent sure. What you end up is running the com1 as a firewall/router itself. Linux is great at that but can be defficult to setup like you want. Setup like this to try
com1
leave eth1 as is.
set eth0 IP 192.168.1.1 and netmask 255.255.255.0. Do not set a gateway because it will confuse your normal cable connection.

com2
Set eth0 port on it to 192.168.1.2 and netmask to 255.255.255.0. Then you can set a gateway to 192.168.1.1

Now goto http://easyfwgen.morizot.net/gen/ and answers the question it ask to setup a firewall gateway. This generates a script to enable masquerading for com2 to have access to the internet over com1. You will need to disable the iptables service if already running it on the machines so ports are open. ( Not a good idea in my opinion ).

Edit:
The more I think about it the harder it is to explain. You need to open ports for either a samba or nfs connection to do network sharing. This will of course open the machine connected to the modem to world unless doing some special iptable setup. I am not the best in this area to do that. This is why using a router between the modem and machines. This allows you to open the need ports and still be secure from the internet. While at it get one with wireless capibility and then add wireless to the notebook if it does not have it already.
Edit:

Brian

marcrblevins
2007-05-23, 05:29 PM CDT
Get a chepo router as Brian says. My router has ports 80, 20, 21, & 22 open. On the linux box, I have a boatload of ports open. Easier that way in the long run.