LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-17-2004, 08:16 PM   #1
Ry12
Member
 
Registered: Jan 2004
Distribution: Slackware 10
Posts: 51

Rep: Reputation: 15
firewall/router


is it possible to setup a dedicated firewall/dsl router? how would i set it up and what hardware would i need?
 
Old 10-17-2004, 08:21 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
basically, to set-up a firewall gateway, you'd need two network interfaces... one goes to the internet and the other goes to your switch/hub (local network)...

the internet interface is your "external" interface, and your lan interface is your "internal" one...

your internal interface gets a private ip such as (for example) 192.168.0.1, while your external interface uses whatever ip your isp provides you with...

you'd need to configure netfilter using iptables to do either MASQUERADING (if your external ip is dynamic) or SNAT (if your external ip is static)...

the idea is that the machines on your lan all get private ips (for example 192.168.0.2, 192.168.0.3, etc.) and use the linux box as their gateway...

here's a link with good iptables info:

http://www.linuxguruz.com/iptables


there's also "front-ends" to iptables such as shorewall, firestarter, and guarddog:

http://www.shorewall.net

http://firestarter.sourceforge.net

http://www.simonzone.com/software/guarddog/


Last edited by win32sux; 10-17-2004 at 08:31 PM.
 
Old 10-17-2004, 10:06 PM   #3
Ry12
Member
 
Registered: Jan 2004
Distribution: Slackware 10
Posts: 51

Original Poster
Rep: Reputation: 15
so can i just use my dsl modem/router and connect it to the external interface or will i need a dedicated dsl modem or something..
 
Old 10-17-2004, 10:15 PM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
yeah, you just connect the modem to the external interface, like usual...

the only difference is you're gonna have a second interface card which will be used to connect to the LAN now...
 
  


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
can I use an old PC as a router/firewall Metalbarthug Linux - Newbie 9 10-21-2004 08:08 PM
Mandrake Firewall/router networked to US Robotics 8000A router jrzplace Linux - Networking 0 11-17-2003 05:48 PM
Router/Firewall Melo Linux - Software 2 07-28-2003 06:10 PM
Router and Firewall jccm01 Linux - Security 2 12-31-2001 03:57 PM


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