-   Linux - Newbie (
-   -   Linux as a Router (

dgwelsh 08-17-2003 03:28 AM

Linux as a Router
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:

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!


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:

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