connection tracking without iptables?
This is probably a dumb question, but is it possible to track connections without iptables/netfilter?
Signature · 4 lines
Jiann-Ming Su
"I have to decide between two equally frightening options.
If I wanted to do that,
I'd vote." --DuckmanYes it is, is inside the code, i think this example could explain you
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD DROP
iptables -A FORWARD -i $inside_interface -o $outside_interface -m state --state NEW -j ACCEPT
iptables -A FORWARD -i $outside_interface -m state --state RELATED,ESTABLISHED -j ACCEPT
That's it, this is what you need in order to get a statefull firewall with 2 interfaces.
Quoted 17 lines
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Jiann-Ming Su
Enviado el: Miércoles, 29 de Septiembre de 2004 17:51
Para: [email protected]
Asunto: connection tracking without iptables?This is probably a dumb question, but is it possible to track connections without iptables/netfilter?
Signature · 4 lines
Jiann-Ming Su "I have to decide between two equally frightening options. If I wanted to do that, I'd vote." --Duckman
Quoted 2 lines · Jiann-Ming Su
This is probably a dumb question, but is it possible to track connections without iptables/netfilter?
modprobe ip_conntrack
-j
Signature · 1 line
Jason Opperisano <[email protected]>
Quoted 2 lines · Jiann-Ming Su
This is probably a dumb question, but is it possible to track connections without iptables/netfilter?
Maybe a good place to start it's the source code of the tool iptstate, that it's a something like top for conntrack connections.
Signature · 12 lines
Jose Maria Lopez Hernandez Director Tecnico de bgSEC [email protected] bgSEC Seguridad y Consultoria de Sistemas Informaticos http://www.bgsec.com ESPAÑA The only people for me are the mad ones -- the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn like fabulous yellow Roman candles. -- Jack Kerouac, "On the Road"