Topic awaiting preservation: Linux Gateway (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Canada |
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?? |
Paranoid (IV) Inmate From: California |
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 |
Paranoid (IV) Inmate From: Dallas, TX |
posted 01-11-2003 23:57
I think we need to ask... |
Bipolar (III) Inmate From: Canada |
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? |
Paranoid (IV) Inmate From: California |
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. |
Bipolar (III) Inmate From: Canada |
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? |
Paranoid (IV) Inmate From: California |
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. |
Bipolar (III) Inmate From: Canada |
posted 01-12-2003 19:11
I have Redhat 8.0. Where is Samba located in GNOME menu?? |
Paranoid (IV) Inmate From: Dallas, TX |
posted 01-12-2003 20:04
wow. |