LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux as a Router (https://www.linuxquestions.org/questions/linux-newbie-8/linux-as-a-router-82770/)

dgwelsh 08-17-2003 03:28 AM

Linux as a Router
 
Hi,
I have set up a text only Linux box with two NIC's. The first is connected to an ADSL box and receives its address from it.
I would like to set the second card up so it services other machines on the network as a SAMBA server.
Then I need to be able to use the machine to route from the 1st NIC to the second.

Can anybody please advise as to where I may be able to find some info. on this topic?

Best Regards

davee 08-17-2003 04:04 AM

You need to look at two things here:

1. Firewall settings with iptables - to stop unwanted traffic
2. Masq'ing with NAT - to disguise your internal network.

Try this tutorial:
http://www.yolinux.com/TUTORIALS/Lin...rkGateway.html

Also, do a search for 'linux iptables NAT tutorial' on your fave search engine.

For setting up SAMBA, I would recommend doing this first with no firewall installed (with no internet connection) so that you can troubleshoot this before you introduce any issues with NAT / firewall.

Let me know how you get on!

Dave

amocjr 08-17-2003 10:23 AM

Two points. First, from a security point of view, I'd recommend *not* setting Samba up on the firewall. The firewall really ought to be running on a machine by itself. Second, I'd recommend a book called Linux Firewalls, Second Edition, by Robert L. Ziegler (New Riders) as a really good reference for building firewalls with iptables.

amocjr 08-17-2003 12:27 PM

Interestingly, there is a new HOW-TO on setting up a gateway and using Samba for authentication. Here's the URL at the Linux Documentation Project: http://www.tldp.org/HOWTO/Samba-Auth...way-HOWTO.html


All times are GMT -5. The time now is 08:16 AM.