Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th March 2007, 08:04 PM
corekernel's Avatar
corekernel Offline
Registered User
 
Join Date: Mar 2007
Location: MALAYSIA
Posts: 4
FC6 as router/firewall/webserver/gateway, how?

Hi!

I got an old P4 pc with 2 NIC's so I planned to setup FC6 as router/firewall/webserver/gateway server for my home networking. Currently my home network connect to the internet via TP-LINK router and I can't find good tutorials on the net focused on linux router...what I got just a tutorial for installing linux etc. I already installed fedora & just waiting to configure it.

My eth0 connect to the internet via dhcp & I set eth1 with 192.168.0.1. Can anyone show me the example how to configure it next.

p/s; I'm not talking about router/firewall distro.

Thanks.

Last edited by corekernel; 24th March 2007 at 08:10 PM.
Reply With Quote
  #2  
Old 24th March 2007, 09:42 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
This is what I do. You have eth0 setup. On eth1 make sure to only set the IP and netmask. Do not set a gateway on eth1.

Now goto http://easyfwgen.morizot.net/gen/ and answer the questions it ask to setup a firewall/router gateway. This generates a script that is displayed in the browser. Cut and paste the text of the script shown and save to a file called firewall.sh. Put the file in /etc. Set the script to have the execute attribute. ' /sbin/shmod + /etc/firewall.sh '.

Turn off current Fedora Firewall and disable it from boot.
/sbin/service iptables stop
/sbin/chkconfig --level 345 iptables off

Now goto /etc and run the script likethis' ./firewall.sh '. Got a lan machine and test internet. Then goto say http://www.hackerwatch.org/probe/ and test for open ports. This can be done from any machine on the network.

Thats it. Done a few this way for years.
Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 25th March 2007, 06:36 AM
corekernel's Avatar
corekernel Offline
Registered User
 
Join Date: Mar 2007
Location: MALAYSIA
Posts: 4
Thanks Brian1..

And how do I manage the router?What I mean is for consumer router i.e D-link,aztech etc, they have web based manager to control the PC's in the local network. So do I need to install any 3rd party softwares??
__________________
Visit Malaysia 2007

Last edited by corekernel; 25th March 2007 at 06:54 AM.
Reply With Quote
  #4  
Old 25th March 2007, 05:31 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
You can use one of many firewall tools like shorewall fwbuilder and a number of others. Just search google for these. I don't use them myself. Kind of got a grasp of using iptables from the command line.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
Reply

Tags
fc6

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Linux iptables to set up an internet gateway - firewall - router for office debudayan Servers & Networking 0 3rd May 2007 03:30 PM
webserver + router problems Devo Servers & Networking 9 22nd June 2006 05:42 AM
setting up fc4 as a gateway, router and firewall for a home network ?? alanshort Servers & Networking 1 3rd November 2005 05:18 PM
Setting Up Router For Webserver derek_lee_alby Servers & Networking 13 23rd March 2005 07:10 PM
Router/Firewall/Gateway tomjmalone Servers & Networking 1 2nd August 2004 02:54 PM


Current GMT-time: 17:14 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat