[SOLVED] Firewall server and how to force client to use it.
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.