Here is my rule set:
#default input policy
/sbin/iptables -P INPUT DROP #allow www/https(ssl) /sbin/iptables -A INPUT -s 0/0 -d 172.16.5.92 -p tcp --dport https -j ACCEPT #allow ssh /sbin/iptables -A INPUT -s 0/0 -d 172.16.5.92 -p tcp --dport ssh -j ACCEPT #allow smtp /sbin/iptables -A INPUT -s 0/0 -d 172.16.5.92 -p tcp --dport smtp -j ACCEPT #create a new rule for drop #
log
#/sbin/iptables -N drop-and-log-it #log it #/sbin/iptables -A drop-and-log-it -j LOG --log-level info --log-prefix 'DROPIT' #drop it #/sbin/iptables -A drop-and-log-it -j DROP #now call the rule to drop and log
/sbin/iptables
-A INPUT -j drop-and-log-it
-----------
Thanks
ijg0
|
- Re: iptables and apt-get Dale Amon
- Re: iptables and apt-get Marc Demlenne
- Re: iptables and apt-get I . R . van Dongen
- Re: iptables and apt-get Ian Goodall
- Re: iptables and apt-get I . R . van Dongen
- Re: iptables and apt-get Dale Amon
- Re: iptables and apt-get François TOURDE
- Re: iptables and apt-get Jeff
- Re: iptables and apt-get Victor Calzado Mayo
- RE: iptables and apt-get Jones, Steven
- RE: iptables and apt-get Ian Goodall
- RE: iptables and apt-get Jones, Steven
- Re: iptables and apt-get Ian Goodall
- Re: iptables and apt-get Marc Demlenne
- AW: iptables and apt-get Andreas Vitz
- RE: iptables and apt-get Desai, Jason
- Re: iptables and apt-get Ian Goodall