Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-03-2005, 06:11 AM   #1
Doug Hammond
LQ Newbie
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Rep: Reputation: 0
linux as a firewall+router

i know this subject must come up every day.
i know there are lots and lots of tutorials/FAQs/software manuals out there to read.


i have NEVER managed to successfully use linux on my machine to share my internet connection with my other PC.

(hereafter referred to as internet -> PC1 -> PC2)

believe me i've tried. i've tried
redhat9, fedora3, slack10, gentoo2004.3, mandrake won't boot, knoppix, debian.

i realise that the flavour of base system doesn't make a huge difference, but i had to try.

the closest i have come so far is to use fedora3 with shorewall.
i have managed to successfully get PC2 to obtain an IP from PC1 (setting up dhcp server), and can ping both ways. i have managed to get the firewall to drop ping packets (to confirm that it's working).

oh, and while all this was happening, PC1 is happily connected to the internet.

i have NEVER managed to get packet forwarding/masquerading/NAT to work.

it's almost qute funny that i can boot into XP and have everything run fine......

anyone have any suggestions?

don't be afraid to answer in technical terms - i know how everything is supposed to work.

[edit: here are a few more details:
internet is provided by USB cable modem - eth1 on PC1
local LAN uses standard NIC's - eth0 on PC1 and irrelevant on PC2
eth0 on PC1 is and runs dhcp server to give a 192.168.0.X address to PC2.
while i stated that FC3 seems my best bet, i'm going to ditch it since it won't write to my ntfs disk.
i have managed the same degree of success with gentoo... but it refuses to compile X grrr. ]

Last edited by Doug Hammond; 02-03-2005 at 06:33 AM.
Old 02-03-2005, 10:18 AM   #2
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Rep: Reputation: 30

You might want to try smoothwall or ipcop. Very easy to configure.


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 05:12 AM
Linux Firewall/Router cmt9000 Linux - Security 12 10-23-2005 11:52 AM
Linux Router/Firewall Books kemplej Linux - Security 7 05-27-2004 01:15 AM
linux firewall - belkin fw/router stoffell General 3 09-30-2003 10:10 PM
pppoe through linux router/firewall ..Tookers.. Linux - Networking 2 04-30-2003 07:34 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:48 AM.

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