LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-03-2005, 07: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.

however,

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 192.168.0.1 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 07:33 AM.
 
Old 02-03-2005, 11:18 AM   #2
joe83
Member
 
Registered: Sep 2003
Location: Kennesaw GA
Distribution: Slackware-current , Slack81Zip, Smoothwall v2
Posts: 427

Rep: Reputation: 30
Talking

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


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


All times are GMT -5. The time now is 12:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration