You are not logged in.

#1 2013-11-27 20:08:56

Gulver
Member
Registered: 2013-05-24
Posts: 208

Iptables Configuration [SOLVED]

I've tried to configure a firewall with iptables following the wiki and I want to make sure that I don't miss any thing or broke anything.

 Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
 132K  165M ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    1    60 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0           (*especially this rule*)
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8 ctstate NEW
  107 13873 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-proto-unreachable

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 78895 packets, 13M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Am i doin it rit? Is loopback necessary?  smile

Last edited by Gulver (2013-12-02 05:26:59)

Offline

#2 2013-11-27 22:13:57

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: Iptables Configuration [SOLVED]

Gulver wrote:

I've tried to configure a firewall with iptables following the wiki and I want to make sure that I don't miss any thing or broke anything.

You haven't broken anything here!
What I mean is, only you can tell if you've broken something.

Gulver wrote:

Am i doin it rit?

That depends on your goals - if your goal was to block all new connections except ping's then yes, you're spot on.

Gulver wrote:

Is loopback necessary?  smile

Yes.

Offline

#3 2013-11-27 22:19:46

Gulver
Member
Registered: 2013-05-24
Posts: 208

Re: Iptables Configuration [SOLVED]

Thank you for attention, may I ask further, considering I do not open any ports am I in the safe side now? Would you suggest something else to go with iptables to lurk interwebs?

Last edited by Gulver (2013-11-27 22:22:16)

Offline

Board footer

Powered by FluxBB