Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
I have set up a linux box with to NICs to act as a router/DHCP server/firewall for my home network. It is connected to a cable modem on one interface (eth0), and to my home LAN on the other interface (eth1...via a switch), and sharing the internet connection with the LAN, using IP masquerading. I am using iptables as my firewall. The router's IP address is 192.168.0.1 on eth1.
1)I would like to allow internal computers and servers to be able to use bittorrent and browse web pages, but hear nothing else, besides what is required for that, from the outside world.
2)I would like to run a squid proxy on the router on port 3128, and pass all web page requests from the internal network through it.
3)I would like to block everything else. I will use port-knocking to open up any additional ports when they are needed. This includes not showing any other open ports on the server (like SSH) to internal computers, unless they knock on them to open them up.
What would my firewall setup script look like for something like this? How can I make sure to only allow the abovementioned types of traffic? What do I need in my FORWARD chain and nat table to make sure things are working properly with the IP masquerading? Anything important I should make sure is in my squid.conf file?
thanks,
jrtayloriv
Last edited by jrtayloriv; 12-23-2006 at 11:13 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.