Closed Thread Icon

Topic awaiting preservation: Linux Gateway (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12574" title="Pages that link to Topic awaiting preservation: Linux Gateway (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Linux Gateway <span class="small">(Page 1 of 1)</span>\

 
marf
Bipolar (III) Inmate

From: Canada
Insane since: Oct 2001

posted posted 01-11-2003 20:45

I have a computer Running Linux. I also have a router. I plugged my internet into my Linux computer, and I have another NIC card for the nnetwork cable to leave and into the WAN port on the router. How do I set up Linux Redhat to be the Gateway, and my router distributes the IP addresses to other computers??

Thanks

Piper
Paranoid (IV) Inmate

From: California
Insane since: Jun 2000

posted posted 01-11-2003 23:39

The way you are thinking about setting it up would make your redhat box the router instead. You will want to plug your second nic into an open port on the switch, not the WAN. You'll need to get a DHCP running as well as iptables. iptablaes is more than likely running already although you will need to make quite a few changes to get it to act as a router. Take a look at this thread at linuxnewbie.org : Click Here. There are tons of threads on this at LNO, keep searching over there if this link didn't help

Unless you are doing this as a learning experience, I recommend leaving the routing and firewall to your hardware router. I always try keep as much of my overhead on external devices as I can. On the other hand, knowing iptables can come in very handy down the road.

Regards,
Charlie



[This message has been edited by Piper (edited 01-11-2003).]

genis
Paranoid (IV) Inmate

From: Dallas, TX
Insane since: Aug 2002

posted posted 01-11-2003 23:57

I think we need to ask...

why do you want your linux box as the gateway and not your router?

what is your end goal?

marf
Bipolar (III) Inmate

From: Canada
Insane since: Oct 2001

posted posted 01-12-2003 02:56

Ok, I'll situate Linux server behind Router. Then what port should I open up for hosting a WEB server and FTP server?

Piper
Paranoid (IV) Inmate

From: California
Insane since: Jun 2000

posted posted 01-12-2003 04:56

FTP is generally on TCP ports 20 and 21. HTTP is on TCP port 80 in most cases. Just make sure you have those TCP ports forwarding to the IP of your Linux box.

Regards,
Charlie

marf
Bipolar (III) Inmate

From: Canada
Insane since: Oct 2001

posted posted 01-12-2003 05:03

Another question, how do I enable Network sharing from a Linuuuux Computer to a Window computer? What program on linux must I use?

Piper
Paranoid (IV) Inmate

From: California
Insane since: Jun 2000

posted posted 01-12-2003 06:27

I use Samba to enable file sharing. http://www.samba.org/ I think RedHat 8.0 has Samba installed outa the box. It should just be a matter of tweaking the config and starting the services needed for it. I did have to open a few ports with iptables to get Samba to work. I can't remember which ports off the top of my head though. I'll see if I can't dig up the port numbers if you need them.

Regards,
Charlie

marf
Bipolar (III) Inmate

From: Canada
Insane since: Oct 2001

posted posted 01-12-2003 19:11

I have Redhat 8.0. Where is Samba located in GNOME menu??

genis
Paranoid (IV) Inmate

From: Dallas, TX
Insane since: Aug 2002

posted posted 01-12-2003 20:04

wow.

Time for you to research.
I'd start with a bash prompt primer.

Here are several thousand helpers --> http://tldp.org/

« BackwardsOnwards »

Show Forum Drop Down Menu