zoukankan      html  css  js  c++  java
  • 我的FreeBSD上IPFW防火墙脚本

    /sbin/ipfw add 00001 deny log ip from any to any ipopt rr
    /sbin/ipfw add 00002 deny log ip from any to any ipopt ts
    /sbin/ipfw add 00003 deny log ip from any to any ipopt ssrr
    /sbin/ipfw add 00004 deny log ip from any to any ipopt lsrr
    /sbin/ipfw add 00005 deny tcp from any to any in tcpflags syn,fin
    /sbin/ipfw add 19997 check-state
    /sbin/ipfw add 19998 allow tcp from any to any out keep-state setup
    /sbin/ipfw add 19999 allow tcp from any to any out
    /sbin/ipfw add 20001 allow udp from any 53 to me in recv rl0
    /sbin/ipfw add 29999 allow udp from any to any out
    /sbin/ipfw add 30000 allow icmp from any to any icmptypes 3
    /sbin/ipfw add 30001 allow icmp from any to any icmptypes 4
    /sbin/ipfw add 30002 allow icmp from any to any icmptypes 8 out
    /sbin/ipfw add 30003 allow icmp from any to any icmptypes 0 in
    /sbin/ipfw add 30004 allow icmp from any to any icmptypes 11 in
    #/sbin/ipfw add 40000 allow all from 192.168.0.0/16 to any
    #/sbin/ipfw add 40001 allow all from any to 192.168.0.0/16
    #/sbin/ipfw flush
  • 相关阅读:
    CSS
    WebStorm快捷键
    每日一题
    周末了周末了
    集合,个人理解
    Linux学习笔记
    Java对象的序列化和反序列化实践
    Android 实现蘑菇街购物车动画效果
    【转】android手势处理揭秘
    【转】android 手势识别和VelocityTracker
  • 原文地址:https://www.cnblogs.com/fred/p/89271.html
Copyright © 2011-2022 走看看