* iptables and their use.. @ 2002-06-02 14:36 Ted Gervais 2002-06-02 15:00 ` Patrick Schaaf 2002-06-02 15:59 ` Brent Scriver 0 siblings, 2 replies; 4+ messages in thread From: Ted Gervais @ 2002-06-02 14:36 UTC (permalink / raw) To: netfilter@lists.samba.org I am looking at using iptables and have been reading. I have an understanding on how to set up some basic commands to make a firewall but what I have a problem with, is what do I filter? I don't know what is important (to me) to filter. I know we all need some sort of firewall to protect ourselfs and systems against 'sutff' out there, but just what is that. I suppose one could start with making certain subnets available to myself and deny/reject all others, but I am not sure that is how to go about it.. So - as a general rule, what does one do? What do people block and what do they accept?? -- Ted Gervais Coldbrook, Nova Scotia Canada. 1-902-679-2253 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iptables and their use.. 2002-06-02 14:36 iptables and their use Ted Gervais @ 2002-06-02 15:00 ` Patrick Schaaf 2002-06-02 15:24 ` Nick Drage 2002-06-02 15:59 ` Brent Scriver 1 sibling, 1 reply; 4+ messages in thread From: Patrick Schaaf @ 2002-06-02 15:00 UTC (permalink / raw) To: Ted Gervais; +Cc: netfilter@lists.samba.org > So - as a general rule, what does one do? What do people block and what do > they accept?? General rule: block everything, log the blocking, stare at the logs while doing what needs to be done, and then accept what is neccessary, and no more. You'll learn all the common stuff in about 1-2 years. best regards Patrick ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iptables and their use.. 2002-06-02 15:00 ` Patrick Schaaf @ 2002-06-02 15:24 ` Nick Drage 0 siblings, 0 replies; 4+ messages in thread From: Nick Drage @ 2002-06-02 15:24 UTC (permalink / raw) To: netfilter@lists.samba.org On Sun, Jun 02, 2002 at 05:00:44PM +0200, Patrick Schaaf wrote: > > So - as a general rule, what does one do? What do people block and what > > do they accept?? > > General rule: block everything, log the blocking, stare at the logs while > doing what needs to be done, and then accept what is neccessary, and no > more. Spot on - "that which is not explicitly permitted is denied" is the way to go, only allow traffic in that's required. > You'll learn all the common stuff in about 1-2 years. Bah, depending on time and intelligence it shouldn't take that long, plus don't worry about the common stuff... if you block everything then everything's blocked :) -- FunkyJesus System Administration Team ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iptables and their use.. 2002-06-02 14:36 iptables and their use Ted Gervais 2002-06-02 15:00 ` Patrick Schaaf @ 2002-06-02 15:59 ` Brent Scriver 1 sibling, 0 replies; 4+ messages in thread From: Brent Scriver @ 2002-06-02 15:59 UTC (permalink / raw) To: Ted Gervais, netfilter Well, I have a list of things I'm covering in my scripts, which I have available at http://www.oneoddsock.com/resources/linuxrouter.html. I set up everything coming in to DROP in the PREROUTING chain consistent with the drop everything except what you want. I ensure DHCP works. I allow ESTABLISHED,RELATED connections. I ensure that packets coming in from outside don't have a source address from inside my network, and similarly that packets going outside don't have a source address from outside on the internet. After that, I allow inside to internet connections since I have 3 machines on the inside and can see them all :) so I trust them, and I open up a small set of ports and NAT them to the web server (1 of the 3 machines) such as for http, ftp, etc. An extra note is I have ICMP blocked from the outside, so you can't even ping any of the machines and you also don't get an ICMP packet back saying a connection was denied, just as if the box wasn't there. This helps reduce scans because your machine doesn't look like it even exists on the network... HTH, Brent ----- Original Message ----- From: "Ted Gervais" <ve1drg@av.eastlink.ca> To: <netfilter@lists.samba.org> Sent: Sunday, June 02, 2002 7:36 AM Subject: iptables and their use.. > > I am looking at using iptables and have been reading. I have an understanding > on how to set up some basic commands to make a firewall but what I have a > problem with, is what do I filter? > > I don't know what is important (to me) to filter. I know we all need some > sort of firewall to protect ourselfs and systems against 'sutff' out there, > but just what is that. I suppose one could start with making certain subnets > available to myself and deny/reject all others, but I am not sure that is how > to go about it.. > > So - as a general rule, what does one do? What do people block and what do > they accept?? > > -- > Ted Gervais > Coldbrook, Nova Scotia Canada. > 1-902-679-2253 > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-02 15:59 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-06-02 14:36 iptables and their use Ted Gervais 2002-06-02 15:00 ` Patrick Schaaf 2002-06-02 15:24 ` Nick Drage 2002-06-02 15:59 ` Brent Scriver
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox