Download your favorite Linux distribution at LQ ISO.
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 03-02-2009, 01:15 PM   #1
Registered: Dec 2008
Location: Norway
Distribution: Debian
Posts: 43

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

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
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
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
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137

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.


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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:22 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