惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
Security Archives - TechRepublic
Security Archives - TechRepublic
Security Latest
Security Latest
K
Kaspersky official blog
P
Palo Alto Networks Blog
T
Threat Research - Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
NISL@THU
NISL@THU
GbyAI
GbyAI
腾讯CDC
罗磊的独立博客
Simon Willison's Weblog
Simon Willison's Weblog
Scott Helme
Scott Helme
S
SegmentFault 最新的问题
Cyberwarzone
Cyberwarzone
Jina AI
Jina AI
S
Schneier on Security
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Spread Privacy
Spread Privacy
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Register - Security
The Register - Security
C
Cybersecurity and Infrastructure Security Agency CISA
L
Lohrmann on Cybersecurity
V
Vulnerabilities – Threatpost
G
GRAHAM CLULEY
P
Proofpoint News Feed
Cisco Talos Blog
Cisco Talos Blog
博客园_首页
雷峰网
雷峰网
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V2EX - 技术
V2EX - 技术
O
OpenAI News
博客园 - 司徒正美
S
Security @ Cisco Blogs
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
博客园 - 叶小钗
Vercel News
Vercel News
AI
AI
博客园 - 聂微东
Webroot Blog
Webroot Blog
J
Java Code Geeks

博客园 - OldHawk

android:themes.xml android:style.xml How to merge two images into one using Actionscript Fms3中client端与server端交互方式汇总 Flex(flash)检测摄像头的3种状态(是否被占用,没安装摄像头,正常) - OldHawk - 博客园 推荐几个Adobe Flex Builder 3的插件(代码格式化和fms服务器通讯文件(main.asc)编写) - OldHawk flex4中list与itemRenderer项目渲染器中子对象之间访问 Linux环境如何升级Python linux运行级别查看并更改研究 Flash builder 4 (Flex builder 4) 正式版序列号生成器 (转)基于svnserve的服务器,权限文件authz配置的常见问题及解答 Linux下SVN安装配置记录 (转)谈linux安全设置 Linux安全配置步骤简述 对linux安全设置中需要注意和掌握的地方 Linux操作系统下SSH默认22端口修改方法 图片与二进制及字符相互换化(转) MSDN帮助文档 "无法显示该网页" 的问题解决方案(转) - OldHawk 修改flex应用默认的装载界面
install flashpolicyd
OldHawk · 2010-11-28 · via 博客园 - OldHawk

Posted on 2010-11-28 20:07  OldHawk  阅读(542)  评论()    收藏  举报

Installation¶ I wrote this on RedHat Enterprise 5.1, you need to install Ruby that is included in the base repositories now and it has no external requirements not met by Ruby. On the download site is a RPM that will install the daemon, but I include below full manual install procedures that will help you get it going on other distros. These instructions apply to RedHat and includes a service that will activate the daemon at startup. Once Ruby installed grab the tarball and extract it: # tar -xvzf flashpolicyd-0.1.tgz # cd flashpolicyd-0.1 # mv flashpolicyd /usr/sbin # mv flashpolicyd.init /etc/init.d/ You need to create a XML file to serve up, by default this should be placed in /etc/flashpolicy.xml. Next you need to enable the service, this runs as root since it has to listen on port 843. # chkconfig --add flashpolicyd # chkconfig flashpolicyd on This assumes a lot of defaults, you can override these in /etc/sysconfig/flashpolicyd a sample file can be seen below: TIMEOUT=10 XML=/etc/flashpolicy.xml LOGFREQ=1800 LOGFILE=/var/log/flashpolicyd.log USER=nobodyRC Script Configuration TIMEOUT If a request does not complete in this many seconds the socket will disconnect XML The file to serve up to clients LOGFREQ This is a frequency in seconds that the server will log general stats to log file LOGFILE The logfile to write, the file will auto rotate based on size, you should not be rotating it with your systems logrotation tool USER The user to run as after opening the port If you are a Puppet user I've also included a module that will install this for you, locations etc are correct as for Red Hat Enterprise, see the puppet subdirectory. Usage¶ The server runs on port 843 as the root user, you can run it with --verbose manually and you'll get a lot of debug in your log file. I, [2008-09-13T08:05:48.443178 #2941] INFO -- : -604375936: Had 1246803 clients and 37262 bogus clients. Uptime 58 days 14 hours 30 min. 0 connection(s) in use now.A bogus client is any client that did not end in a successful request, this may be due to timeouts or simply not receiving a valid request from the client. The script includes a complete --help output but you need to install Ruby::RDoc - you can find this in the ruby-rdoc package from RedHat - to use the --help directly, you could just look at the top of the script the help is all there. The daemon responds to several signals that can be sent using the kill command: Signal Description USR1 Prints a single line stat message, during normal running this stat will be printed every 30 minutes by default, settable using --logfreq USR2 Dumps the current threads and their statusses HUP Toggles debug mode which will print more lines in the log file TERM Exit the process closing all the sockets Monitoring¶ The tarball includes a check script for this service. The script will work with Nagios and other compatible monitoring systems, to get it going is pretty simple: % ./check_flashpolicyd.rb --host your.server.com OK: Got XML response in 0.043149 seconds % ./check_flashpolicyd.rb --host your.server.com CRITICAL: 5 seconds TIMEOUT exceededYou can extend the timeout using the --timeout option to the check script. Making this work with your nagios installation is out of the scope of this doc. Known Issues¶