LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-02-2009, 01:15 PM   #1
Mogget
Member
 
Registered: Dec 2008
Location: Norway
Distribution: Debian
Posts: 43

Rep: Reputation: 15
Firewall server and how to force client to use it.


Hello.
I tried searching the forums, but i could not find a good search word to find information about what i want help for so i'm doing it this way in stead although i probably can find the answers somewhere in the forums.

Tomorow my new low cost server is going to arrive and I'm going to put this server on my home internet connection for training and learning purposes. The problem/question is.

Right now my adsl router is forwarding everything to this computer and iptables are my only firewall and protection for the moment. Tomorow after installing Slack on the server i want to be able to use the server as a firewall for this pc between the local and the outside net. How would i do so? I am comfortable with iptables, but I'm pretty sure that it's not the right tool for this?

I'm thinking that I have to forward all traffic from the router to the server, but from there I'm lost.

My server and client will be connected to the same switch which is connected to the router which right now is using static ip's on the local network and forwarding everything to this machine. Both client and server will be using Slack 12.1 and the server is a HP Proliant low cost server.

What i want is someone pointing in the right direction on how to do this.

Thank you in advance for taking time to answer.
 
Old 03-02-2009, 01:40 PM   #2
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
if I understand your setup correctly, you have two options

1) subnet your lan and use your new server as a router
2) add a nic to your server and replace your switch with the linux server running a linux bridge
 
Old 03-02-2009, 02:00 PM   #3
Mogget
Member
 
Registered: Dec 2008
Location: Norway
Distribution: Debian
Posts: 43

Original Poster
Rep: Reputation: 15
Thank you for the quick answer, adding a nic and doing it that way i understand, or atleast i understand what you mean and can do it with alot of reading.

What do you mean by subnetting and how do i use the server as a router? Won't the adsl router overide the server router?
Maybe you have something i can read on?
 
Old 03-02-2009, 02:02 PM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

definitely you should read iptables howto. There is a brief description how to setup an environment like this.

And yes, iptables is the correct tool to do the job.
 
  


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
connect to my xdmcp server from a client behind a firewall zooper Linux - Networking 1 08-04-2006 03:40 PM
Force samba client to enforce dos time stamps tisource Linux - Networking 2 02-06-2005 01:05 PM
Server timeout, force to use main server? AdrianM Linux - Software 0 08-20-2004 08:08 PM
NET8 client-server connection through firewall agts Linux - Newbie 3 04-23-2004 08:42 AM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM


All times are GMT -5. The time now is 01:42 AM.

Main Menu
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