LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2003, 04:28 AM   #1
dgwelsh
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
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
 
Old 08-17-2003, 05:04 AM   #2
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
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
 
Old 08-17-2003, 11:23 AM   #3
amocjr
Member
 
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39

Rep: Reputation: 15
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.
 
Old 08-17-2003, 01:27 PM   #4
amocjr
Member
 
Registered: Aug 2003
Location: Connecticut
Distribution: Mandrake, Debian
Posts: 39

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 06:12 AM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 10:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 02:52 AM
Linux Router robe8 Linux - Security 2 03-28-2004 10:49 PM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration