FreeBSD4.8 IPFW How to

2016-01-29 18:09 3 1 收藏

FreeBSD4.8 IPFW How to,FreeBSD4.8 IPFW How to

【 tulaoshi.com - Linux 】

FreeBSD4.8 IPFW How to
测试机IP为211.162.77.73 网卡为:xl0 内核中加了流量管理,你可以根据实际需要增删。 uname -a 如果你用的是默认内核GENERIC则如下操作: ============================================= cd /sys/i386/conf cp GENERIC ./GENERIC_IPFW --------------------------------- ee GENERIC_IPFW 添加以下内容 options IPFIREWALL options IPDIVERT options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=100 options IPSTEALTH options ACCEPT_FILTER_DATA options ACCEPT_FILTER_HTTP options ICMP_BANDLIM options DUMMYNET --------------------------------- config ./GENERIC_IPFW cd ../../compile/GENERIC_IPFW make depend all install --------------------------------- ee /etc/rc.conf 添加以下内容 ##########IP-firewall################# firewall_enable="YES" firewall_script="/etc/rc.firewall" firewall_type="/etc/ipfw.conf" firewall_quiet="YES" firewall_logging_enable="YES" --------------------------------- ee /etc/syslog.conf 添加以下内容 !ipfw *.* /var/log/ipfw.log --------------------------------- ee /etc/ipfw.conf 添加以下内容 add 00001 deny log ip from any to any ipopt rr add 00002 deny log ip from any to any ipopt ts add 00003 deny log ip from any to any ipopt ssrr add 00004 deny log ip from any to any ipopt lsrr add 00005 deny tcp from any to any in tcpflags syn,fin #######tcp######### add 10000 allow tcp from 211.162.77.77 to 211.162.77.73 22 in add 10001 allow tcp from any to 211.162.77.73 21,25,80,110,3306,5999 in add 19997 check-state add 19998 allow tcp from any to any out keep-state setup add 19999 allow tcp from any to any out ######udp########## add 20001 allow udp from any 53 to me in recv xl0 add 20002 allow udp from any to 211.162.77.73 53 in recv xl0 add 29999 allow udp from any to any out ######icmp######### add 30000 allow icmp from any to any icmptypes 3,4 add 30001 allow icmp from any to any icmptypes 8 out add 30002 allow icmp from any to any icmptypes 0,11 in

来源:https://www.tulaoshi.com/n/20160129/1504577.html

延伸阅读
1、远程登录: $ssh 192.168.1.90 -l bsduser 2、传输文件 远程机器: $ftp 到自己的机器(开ftp服务)或者:本地机器使用scp$scp 本地文件 用户名@远程地址:远程目标文件名然后输入password即可。 3、安装软件:#sysinstall,直接安装release的二进制包 4、常用软件:wget,lftp,lynx,cvsup,pkg_install,pkg_remove,pkg_tree 5、如...
标签: 电脑入门
出现以下提示就可以进行FTP设置了:User Confirmation Requested Do you want to have anonymous FTP access to this machine? Yes[ No ]选择默认的[ No ] 并按下 Enter 键将仍然可以让在这台机器上有账号的用户访问 FTP。要启用FTP匿名访问,用方向键选择 [ Yes ] 然后按 Enter键。您会看到下面(或类似)的画面: 默认的匿名FTP配置 按 ...
  作者: Niels Kristian Bech Jensen, nkbj@image.dk 译者: 黄则荣 tjhuang@technologist.com v1.4, 23 January 1998 翻译日期: 17 March 1998 -------------------------------------------------------------------------------- 这份文件途述如何在一个系统中使用 Linux 和 FreeBSD. 它介绍 FreeBSD, 并...
文章是转载来的,作者从用词上看应该是港台那边的,可惜不知道名字! 测试的结论是,FreeBSD现在缺乏稳定而且高效率的Filesystem让MySQL MyISAM使用。 先解释一下现在的环境,有两台Tyan Server,上面都是Dual Quad Core与12GB RAM (6*2GB),接两颗73GB SCSI硬碟,两台的差异在于CPU,新进的这台是E5410 ( 2333Mhz,2*6144KB L2...
The purpose of this document is to provide a few OS commands for UNIX  operating systems to gather information about Physical Memory (RAM),   swap memory,CPU usage and idle percentage, whether lots of processes  are in the process run queue and whether too much paging and swapping&n...

经验教程

460

收藏

91

热门标签

微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部