PFSense_融合Panabit_企业应用(2)

2019-02-14 23:14

# tar zxvf Panabit_1207_fb8x.tar.gz

# cd /appz/Panabit_1207_fb8x 切换至安装目录

# ./ipeinstall 执行安装程序

根据程序提示,可以按照默认的安装目录,1-2分钟,即可安装完毕。下面是程序运行过程:

Welcome installing panabit!

Please input the directory to install panabit [/usr/panabit]:(默认直接Enter,可以更换目录)

Please input the directory to store log [/usr/panalog]:(默认直接Enter,可以更换目录) Please input the directory to store configuration [/usr/panaetc]:(默认直接Enter,可以更换目录)

The last time to verify your choice:

(1) The directory that you want to install is \ (2) The directory that the log to be stored is \

(3) The directory that the configuration to be stored is \ Above are right(y/n[y])?(Enter \表示确认)

Creating directory \ Creating directory \

Installing Panabit to \

Initializing configurations ...ok Saving configuration to /etc/PG.conf ... ****** Congratulations ******!

You have successfully installed Panabit on your system: (1) The installed path is: /usr/panabit (2) The log path is: /usr/panalog

(3) The configuration path is: /usr/panaetc

To make your system more sutiable for panabit running, it's recomended of tuning your system according your system memory size and cpu frequence.

Do you want to tune your system(y/n[y])(Enter\表示确认)(询问是否调整核心优化参数) Your kernel configuration has been tuned as the followings:

#c

autoboot_delay=\

beastie_disable=\ kern.ipc.nmbclusters=10240 kern.maxdsiz=2000000000

(上面5行,后2行为安装程序自动增加,前3行是系统原有的,这3行不是每个人的系统都有的)

Warning: your em driver has been compiled into kernel.

To optimize panabit performance, we recommend you use the optimized driver panaos provides. To use the optimized driver, please remove em driver from your kernel. (此处为一般性提示,仅作为参考,标准版用户忽略此项)

You should restart your system to make they take effects. (需要重启系统,调整参数才会生效。注意安装完毕,reboot系统)

Following interfaces are installed in your system: em0 em1 em2 em3(这是系统识别的4块网卡清单,供下面选择指定使用)

Please choose one of above as your admin interface: em1(选择em1作为管理埠) Please input ip address of admin interface: 172.16.1.254 Please input network mask of admin interface: 255.255.255.0 Please input default gateway:

注意: default gateway 请留空白不然有可能使用PPPOE拨接上网时.可能会造成无法正常上网(只有DNS会通)

The following interfaces are left for your data processing: em0 em2 em3

Please select data interfaces: em2 em3(指定两个网卡时,用空格隔开,一般选择性能好的网卡作为数据网卡)

Your interface configurations are: Admin interface : em1

Admin ip address : 172.16.1.254 Admin netmask : 255.255.255.0 Default gateway : 172.16.1.254 Data interfaces : em2 em3 (再次显示管理接口参数、数据网络接口)

Thank you for using panabit!

You can issue \

And you can also add the above command to /etc/rc.local file to let the system automaticly start panabit at system startup!

(启动Panabit进程命令:/usr/panabit/bin/ipectrl start,如果安装目录非默认目录,则需要根据实际情况改变路径;为了能开机自动启动,可以将启动进程命令行加入: /etc/rc.local文件)

If you want to stop the currently running panabit, you can issue \ (停止Panabit进程命令:/usr/panabit/bin/ipectrl stop)

Step 3. 设定panabit:

a.)修改开机自动执行panabit 与修正panabit admin管理慢问题

# ee /usr/local/etc/rc.d/panabit_start.sh

Code:

#Start Panabit Service

/usr/panabit/bin/ipectrl start

#Delay ACK to try and piggyback it onto a data packet

sysctl net.inet.tcp.delayed_ack=1

(To exit & save press \

注意:当admin网卡default gateway在初始化设定若有设定,

pnanbit在pppoe拨接之后会启动就会造成无法正常上网现象

# chmod 755 /usr/local/etc/rc.d/panabit_start.sh (变更为可执行文件)

禁止Panabit修改pfsense 网卡 # ee /usr/panabit/bin/ipectrl Code:

# Setup gateway.

# gateway=`netstat -rn | grep \| awk '{print $2}' 2>/dev/null`

# if [ \# ermsg=`route delete default 2>&1` # route add default ${GATEWAY} >/dev/null

# echo \# fi 以上为需要的注释代码

还需要修改ifadmin.conf

# ee /usr/panatec/ifadmin.conf

gateway=${GATEWAY}

# reboot

b.)由浏览器登入panabit,

Ⅰ.开启浏览器于网址列输入https://172.16.1.254 Ⅱ.输入账号密码

账号: admin 密码: panabit

注意:登入地址即为pfsense Lan端IP地址

c.)配置网络

Ⅰ.于管理页面上方[网络配置->左边[数据接口

Ⅱ. 于接口名称em2 => 应用模式选择[网桥 => 接入位置[接外网] => [提交 Ⅲ. 于接口名称em3 => 应用模式选择[网桥 => 接入位置[接内网] => [提交

注意:接口名称会因网卡不同而有不同的名称

Ⅳ.于管理页面上方[网络配置->左边[管理接口 Ⅴ.填入正确的Gateway IP address

注意:当admin网卡default gateway在初始化设定未填,这里应该会出现ISP Router地址

Step 4.网络线配置:

a.)将对外网络接至em0网络卡

b.)将em1网络卡透过CROSSOVER线接至em2 c.)将对内网络接至em3网络卡

注意:网络卡名称会因网卡不同而有不同的名称,在此

em0=pfsense wan em1=pfsense Lan em2=panabit 外网 em3=panabit内网

Step 5.上线测试:

a.) 完成后可https://172.16.1.254 管理 panabit

备注:

a.)查看程序是否启动

# ps ax|grep \ 结果

33219 ?? Ss 0:00.29 /usr/panabit/bin/panaos 33459 ?? R 5:44.25 /usr/panabit/bin/panaos

37902 ?? Is 0:00.07 /usr/panabit/bin/ipe_httpd -u root -T gb2312 -S -E /usr/panabit/admin/admin.pem -d /usr

38133 ?? S 0:00.31 /bin/sh /usr/panabit/bin/ipe_monitor 38324 ?? S 0:00.36 /usr/panabit/bin/ipe_datamon 38605 ?? R 0:10.34 /usr/panabit/bin/ipe_xping 39964 ?? Rs 0:07.01 /usr/panabit/bin/ipe_mgd 24813 0 R+ 0:00.00 grep panabit

b.)启用POLLING选项,如下:

# ifconfig em0 polling

# ifconfig em1 polling

Polling仅需对所有使用的数据接口设置,使可加在启动项目内得开机进入系统自动运行。

注意: polling模式就是让cpu定期去取网卡内存中的数据包。虽然平时看上去这种方法效率低 ,但在网卡处理的包数量很高时能提高CPU的处理效率。并非所有的网卡都支持Polling


PFSense_融合Panabit_企业应用(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:最新-九年级历史与社会第一次月考试卷[上学期] 精品

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: