LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2003, 01:14 PM   #1
EDarkness
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Problems setting up Mandrake Firewall/Router....


Hey guys, I'm new to the whole Linux thing and I heard that using Linux as a router would be a good thing to do so what's what I did. The thing is, I'm having a problem getting the two NICs to broadcast to the other computers. I can surf the web on router machine, but it's not sending information to the other computers on the LAN. So I guess what I need to know is what is the proper configuration for this type of thing. I figure I have something misconfigured. I used the Mandrake connection Wizard to setup what I have so far. But I'm going to go back and set it up from scratch. I just need to know what numbers and things I need to use and do both cards need to be DHCP.

Thanks in advance.


-EDarkness
 
Old 10-19-2003, 10:02 PM   #2
EDarkness
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Just bumping this up to the top. After a couple of days I'm still stuck....


-EDarkness
 
Old 10-19-2003, 10:14 PM   #3
brew1brew
Member
 
Registered: Jul 2003
Location: Plano TX (north of Dallas)
Distribution: Kubuntu
Posts: 165

Rep: Reputation: 30
did you set up network connection sharing? and firewall?

you can find network connection sharing in Mandrake control center under "Network & Internet" -> "DrakeGw"

you can find firewall in Mandrake control center under "Security" -> "DreakFirewall"

The wizards are fairly easy to use. I use Mandrake for my firewall at home and have setup a firewall for a friend of mine. It works great. I'm thinking of downloading the Multi Network Firewall (MNF) Iso and using it instead.
 
Old 10-29-2003, 03:28 PM   #4
EDarkness
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I have tried everything and I can't get it to work. I used the wizard, but I don't know what values to give each NIC. It'll connect to the internet, but it won't broadcast the information over the network for other computers to see. Which is why I'm wondering if I set it up right. I've been looking all over the net for the correct way to set it up, but I can't find it anywhere. Which is why I posted in this forum. It's getting very frustrating.


-EDarkness
 
Old 10-29-2003, 06:50 PM   #5
brew1brew
Member
 
Registered: Jul 2003
Location: Plano TX (north of Dallas)
Distribution: Kubuntu
Posts: 165

Rep: Reputation: 30
ok, See if this helps. I'm going to make some assumptions.

1. you have 2 Ethernet cards, I will call them eth0 & eth1. eth0 will be outside interface and eth1 will be inside interface (outside being public net, inside private net).

2. your internet provider gives you a public address with DHCP.

3. your firewall/router will be the DHCP server for your PCs on your private network.

ok here we go

eth0 will have to be setup to get an address from your provider, if your provider gives that to you though DHCP you will have to have dhcpcd running on eth0 to get the address.

eth1 needs to be static address with a private network address, I would set it up for 192.168.x.1 with a mask of 255.255.255.0, x= any address from 1 to 255. eth1 will also be the gateway address from your private network. all of your other hosts will have to be in the same /24 address space, I would run dhcpd to assign addresses to the rest of your network. I would also configure dhcpd to assign eth1 as the default gateway and assign your providers DNS servers addresses to your local hosts as well. you can find out HowTo set up dhcpd.conf.

Last Shorewall has to be setup. I'm not going to go into that, the wizards will set it up for you. But if you want to do it yourself, go to www.shorewall.net. click on the quick start guide. Shorewall site will tell you to remove shorewall that mandrake installed and to reinstall the package from the shorewall site. I DID NOT DO THIS AND IT WORKS FINE, I have manually modified the rules file, but it is not necessary.

Now having said all that, I would use Mandrake control center to set it all up, I have done it several times for me and my friends, first setup eth0 & eth1 as I stated above, then internet connection sharing then firewall, all of them can be setup with the wizards. The wizards will configure DHCP client for eth0 and DHCP server for eth1, it will also setup Shorewall firewall.

Last setup all your hosts in your private network to get ip address automaticly or use DHCP to get an address.
 
Old 10-29-2003, 08:57 PM   #6
brew1brew
Member
 
Registered: Jul 2003
Location: Plano TX (north of Dallas)
Distribution: Kubuntu
Posts: 165

Rep: Reputation: 30
oh, One other thing, if this box is just a firewall, not used as a printer/file server, then I would think about using Mandrakes Multi Network Firewall (MNF). I have not tried MNF yet, however your setup would be the same, outside interface DHCP, inside interface static private address and provides DHCP service to hosts on private network. It will also do VPN.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Firewall, roUTER and Antivirus frog-newbie Linux - Networking 2 05-31-2006 07:03 AM
setting up a firewall behind a router mattmc97 Linux - Security 3 05-05-2004 04:36 PM
Mandrake Firewall/router networked to US Robotics 8000A router jrzplace Linux - Networking 0 11-17-2003 04:48 PM
Setting up a linux router/firewall Biscuitman Linux - Hardware 1 04-25-2003 06:32 PM
Setting up a linux firewall behind a cisco router totfc Linux - Security 2 06-03-2002 09:47 PM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration