Skip to contentSkip to conversation

Promiscuous mode and xtables

DISCUSSION Jonathan Tripathy 2 participants 4 messages Aug 4, 2011

lore
Share & tools
lore
#0 lore raw

Hi Everyone,

Currently, I use ebtables and iptables to secure my servers. It would be appreciated if someone could please give me some advice on what the best settings are for using a network port in promiscuous mode for network monitoring *only*. I.e. I do not want any of this traffic to be able to access anything on my server.

Thanks

#1 lore raw

If you intend to monitor only, set OUTPUT and FORWARD chains to DROP. Otherwise you can't firewall. Make sure your monitoring software is up to date, as vulnerabilities on it will be the biggest issue.

Regards,
Tyler

Jonathan Tripathy <[email protected]> wrote:

Hi Everyone,

Currently, I use ebtables and iptables to secure my servers. It would be appreciated if someone could please give me some advice on what the best settings are for using a network port in promiscuous mode for network monitoring *only*. I.e. I do not want any of this traffic to be able to access anything on my server.

Thanks
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Shouldn't I also set the input chain to DROP as well?

Thanks

Quoted 23 lines · Tyler J. Wagner

If you intend to monitor only, set OUTPUT and FORWARD chains to DROP. Otherwise you can't firewall. Make sure your monitoring software is up to date, as vulnerabilities on it will be the biggest issue.

Regards,
Tyler

Jonathan Tripathy<[email protected]> wrote:

Hi Everyone,

Currently, I use ebtables and iptables to secure my servers. It would be appreciated if someone could please give me some advice on what the best settings are for using a network port in promiscuous mode for network monitoring *only*. I.e. I do not want any of this traffic to be able to access anything on my server.

Thanks
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Actually, yes. I had assumed you'd need INPUT to be ACCEPT to monitor, but of course you won't. For two reasons:

1. You're (presumably) not interested in monitoring traffic intended for the server itself.
2. Your monitoring software sniffs the traffic using libpcap, which gets its data before netfilter is applied.

That being the case, set all chains to DROP, and just sniff. But again, make sure the application doing the sniffing is secure, and preferably drops privileges as soon as the socket is open.

Regards,
Tyler

Quoted 34 lines · Jonathan Tripathy

Shouldn't I also set the input chain to DROP as well?

Thanks

Quoted 28 lines · Tyler J. Wagner

If you intend to monitor only, set OUTPUT and FORWARD chains to DROP. Otherwise you can't firewall. Make sure your monitoring software is up to date, as vulnerabilities on it will be the biggest issue.

Regards,
Tyler

Jonathan Tripathy<[email protected]> wrote:

Hi Everyone,

Currently, I use ebtables and iptables to secure my servers. It
would be
appreciated if someone could please give me some advice on what
the best
settings are for using a network port in promiscuous mode for
network
monitoring *only*. I.e. I do not want any of this traffic to be
able to
access anything on my server.

Thanks
--
To unsubscribe from this list: send the line "unsubscribe
netfilter" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
A bad analogy is like a leaky screwdriver.