Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #11783

Re: Comment on iptables for a home computer?

From Pascal Hambourg <boite-a-spam@plouf.fr.eu.org>
Newsgroups comp.os.linux.misc
Subject Re: Comment on iptables for a home computer?
Date 2014-08-21 22:47 +0200
Organization Plouf !
Message-ID <lt5lt3$j9a$1@saria.nerim.net> (permalink)
References <f71a0f23-7e9c-45bd-98a6-cf0daeccf9ec@googlegroups.com> <c383c655-9bd2-4dd3-91f6-c4eaf4679c71@googlegroups.com>

Show all headers | View raw


nomdeplume82008@googlemail.com a écrit :
> 
> Oops, it seems my loopback line was messed up!

No, the output of "iptables -L" is incomplete by design. Consider using
iptables-save instead.

> iptables --flush
> iptables --policy INPUT DROP
> iptables --policy OUTPUT DROP
> iptables --policy FORWARD DROP
> iptables --append INPUT -i lo -j ACCEPT
> iptables --append OUTPUT -o lo -j ACCEPT
> iptables --append INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> iptables --append OUTPUT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

In short this ruleset allows only outgoing connections.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Comment on iptables for a home computer? nomdeplume82008@googlemail.com - 2014-08-19 10:20 -0700
  Re: Comment on iptables for a home computer? Andreas Kohlbach <aug14.8.ankman@spamgourmet.com> - 2014-08-19 16:41 -0400
  Re: Comment on iptables for a home computer? Rich <rich@example.invalid> - 2014-08-19 21:16 +0000
  Re: Comment on iptables for a home computer? nomdeplume82008@googlemail.com - 2014-08-20 08:53 -0700
    Re: Comment on iptables for a home computer? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-08-21 22:47 +0200
      Re: Comment on iptables for a home computer? The Natural Philosopher <tnp@invalid.invalid> - 2014-08-21 23:37 +0100
        Re: Comment on iptables for a home computer? Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-08-22 10:45 +0200
          Re: Comment on iptables for a home computer? The Natural Philosopher <tnp@invalid.invalid> - 2014-08-22 10:41 +0100
            Re: Comment on iptables for a home computer? Marc Haber <mh+usenetspam1118@zugschl.us> - 2014-08-22 12:00 +0200

csiph-web