LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2004, 04:04 PM   #1
dark_templar
LQ Newbie
 
Registered: Nov 2003
Location: bourbonnais illinois USA
Distribution: redhat 9 mandrake 9.1 knoppix std
Posts: 17

Rep: Reputation: 0
building a router with RH9 or slackware help needed


i plan on setting up a small ftp server for me and my friends

i have a belkin wireless router model F5D6230-3 i think....

i was tring to open up the ports and set my computer up in the DMZ with my router but still no luck..ive upgraded the firmware but still no

so i have a spare compy with a few nics that i plan to make into a router...1 line to my room...1 line to our belkin for our laptops...

id like to use either redhat9 or slackware 9 or 10
for i know these the best


i dont need a firewall for my room all i need is a hub....



any info on what all i would need to configure on either distro would be greatly appreciated....or if you have a better sugestion please share that aswell


thanks
 
Old 07-25-2004, 04:22 PM   #2
atlesn
Member
 
Registered: Oct 2003
Location: Oslo, Norway
Distribution: RedHat 9.0, Fedora Core 1/2/3, Debian 3.0, Smoothwall
Posts: 110

Rep: Reputation: 15
Get two nics in it, and a hub/switch connected to one of them. One line from the hub to the router, and one to your room.

And then, if your internet-NIC is eth0 is your Internet-NIC.
Run

iptables -t nat -A POSTROUTING -i eth1 -s 192.168.0.0/24 -o eth0 -j MASQUERADE (i think)

if your ip's is 192.168.0.0.

Set up your Belkin as a AccessPoint, which bridges the traffic between wired and wireless, rather than a router (Belkin == trouble). It's also easier to have one ip-range.


Btw. have you tried Smoothwall? This is an excellent distro for routing/firewalling. Get it installed with 2NICs and hookup the same way. Less configuring is needed.
 
Old 07-26-2004, 10:57 AM   #3
dark_templar
LQ Newbie
 
Registered: Nov 2003
Location: bourbonnais illinois USA
Distribution: redhat 9 mandrake 9.1 knoppix std
Posts: 17

Original Poster
Rep: Reputation: 0
what ip would i use...im presuimg the router that im making's ip..... right?..
 
Old 07-26-2004, 12:49 PM   #4
atlesn
Member
 
Registered: Oct 2003
Location: Oslo, Norway
Distribution: RedHat 9.0, Fedora Core 1/2/3, Debian 3.0, Smoothwall
Posts: 110

Rep: Reputation: 15
I assumed that your local ip-adresses started with 192.168.0.* with netmask 255.255.255.0., but don't car about that.
Just run

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

If your internet-interface is eth0.

Then

service iptables save

To save the settings, making them load at boot-time (at least works an RH and Fedora).
 
Old 07-26-2004, 03:57 PM   #5
dark_templar
LQ Newbie
 
Registered: Nov 2003
Location: bourbonnais illinois USA
Distribution: redhat 9 mandrake 9.1 knoppix std
Posts: 17

Original Poster
Rep: Reputation: 0
ok il try that......hey...may sound like a stupid question....but how would i get it to load at boot time...i have never had to do anything like that so i was wondering what script i have to edit and whatnot

p.s. my routers ip is 192.168.2.1..if that helps any

Last edited by dark_templar; 07-26-2004 at 03:59 PM.
 
Old 07-26-2004, 04:02 PM   #6
atlesn
Member
 
Registered: Oct 2003
Location: Oslo, Norway
Distribution: RedHat 9.0, Fedora Core 1/2/3, Debian 3.0, Smoothwall
Posts: 110

Rep: Reputation: 15
For readhat, run

chkconfig --level 345 iptables on

To disable, change on with off.

You might also want to ridefine the runlevel iptables should run, but the example above should be ok.

This might work on Slack to (no experience with it).
 
Old 07-26-2004, 04:26 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you follow the last message, the startup scripts should load the saved table during startup. However, don't take this for granted and check it. If you are using mandrake, you can use the MCC's shorewall setup program to set the tables. Since the use of the ftp site is intended for just a few of your friends, you might want to set it up so requests from other outside addresses.

Also, does the belkin router have a web setup interface? Is it a cable/dsl server?

I just found this book title from New Riders on Google. It looks like it is addresses home based firewalls for Cable/ISP users.
Linux Firewalls
( Actually I was looking for a different book on firewalls and internet security that I have at home. It is called Firewalls and Internet Security. Google found the errata and cover gif for it on the net.: Firewalls and Internet Security by William R Cheswick )
 
Old 07-26-2004, 09:16 PM   #8
dark_templar
LQ Newbie
 
Registered: Nov 2003
Location: bourbonnais illinois USA
Distribution: redhat 9 mandrake 9.1 knoppix std
Posts: 17

Original Poster
Rep: Reputation: 0
yea the belkin does have a web interface and i have a cabel modem.....with 7 or 8 computers on it...i still get download and upload speeds of about 200kps so its all good......il take a look at that see what i can figure out.....i think im going to do this on slackware 9 or 10...what were the boot up scripts?...im looking through this book ihave by oriley called running linux....good book very informative and it said something about startup scripts but i dont remember what and where
 
Old 07-27-2004, 05:31 AM   #9
atlesn
Member
 
Registered: Oct 2003
Location: Oslo, Norway
Distribution: RedHat 9.0, Fedora Core 1/2/3, Debian 3.0, Smoothwall
Posts: 110

Rep: Reputation: 15
/etc/rc3.d/
/etc/rc4.d/
/etc/rc5.d/

In these folders, there should be a symbolic link looking like

Sxxiptables

The xx is two numbers. If you se a 'K' and not 'S', iptables is disabled. If it is off, then just rename it, and replace 'K' with 'S' in the name.
 
  


Reply



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
Building a router... THE RADICAL Linux - Networking 10 11-21-2005 07:33 PM
Building Firewall/Router in Slackware darreng23 Linux - Networking 1 05-03-2005 05:51 AM
Building a router, need to buy a little router case. gian2oo1 Linux - Hardware 4 04-22-2005 02:18 PM
Building up a router-firewall on Slackware 9.1 ZeiP Linux - Networking 1 02-11-2004 06:09 PM
Help needed in Web building !!! sachitha Linux - Newbie 5 10-17-2003 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:28 AM.

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
Open Source Consulting | Domain Registration