Summary: General TCP proxy Name: blackhole Version: REV Release: 1 license: GPL Vendor: Solucorp Group: Networking/util Source0: blackhole-REV.src.tar.gz BuildRoot: /var/tmp/blackhole Requires: tlmp BuildRequires: tlmp-devel %description %prep %setup %build make BUILD_SVNVER=REV %install if [ "$RPM_BUILD_ROOT" != "" ] ; then rm -rf $RPM_BUILD_ROOT fi mkdir -p $RPM_BUILD_ROOT/usr/sbin export RPM_BUILD_ROOT make install %files %defattr(-,root,root) /usr/sbin/blackhole /usr/sbin/blackhole-control /usr/sbin/blackhole-rulefilter /usr/sbin/blackhole-gensecret /usr/sbin/blackhole-stats /usr/sbin/blackhole-summary /usr/sbin/blackhole-monitor /usr/sbin/blackhole-logs /etc/rc.d/init.d/blackhole /lib/systemd/system/blackhole.service %config(noreplace) /etc/blackhole-rules.sh %config(noreplace) /etc/blackhole-options.conf %doc %_mandir/man8/blackhole.8.gz %doc %_mandir/man8/blackhole-control.8.gz %doc %_mandir/man8/blackhole-gensecret.8.gz %doc %_mandir/man8/blackhole-monitor.8.gz %package horizon Summary: Horizon server running on host Group: Networking/util %description horizon The horizon server is installed on each host and get connection request from service on that host. It passes request up to the blackhole server. %files horizon /usr/sbin/horizon /usr/sbin/horizon-control /usr/sbin/horizon-vipalias /etc/rc.d/init.d/horizon /lib/systemd/system/horizon.service %config(noreplace) /etc/horizon-rules.sh %config(noreplace) /etc/horizon-options.conf %doc %_mandir/man8/horizon.8.gz %doc %_mandir/man8/horizon-control.8.gz /usr/sbin/findproc /usr/sbin/findproc-control /usr/sbin/findproc-mapug /etc/rc.d/init.d/findproc /usr/sbin/horizon-ident /usr/sbin/horizon-ident-control %package wormhole Summary: Wormhole server running on various gateways and network hot spots Group: Networking/util %description wormhole The wormhole server acts as a quicker (better located) proxy between horizon servers. The blackhole server decides if a wormhole server may better connect to horizons. Using wormhole is optionnal. %files wormhole /usr/sbin/wormhole /usr/sbin/wormhole-control /etc/rc.d/init.d/wormhole %config(noreplace) /etc/wormhole-rules.sh %doc %_mandir/man8/wormhole.8.gz %doc %_mandir/man8/wormhole-control.8.gz %package conproxy Summary: Generic high performance TCP proxy Group: Networking/util %description conproxy High performance TCP connection proxy (copies back and forth between two TCP socket). Supports non blocking operation. Single process. It must be installed along with blackhole, wormhole and horizon server. It will be used by those server if running. If not, those servers will use forked process to handle each TCP connection. %files conproxy /usr/sbin/conproxy /usr/sbin/conproxy-control /usr/sbin/conproxy-connections /etc/rc.d/init.d/conproxy /lib/systemd/system/conproxy.service %config(noreplace) /etc/conproxy-options.conf %doc %_mandir/man8/conproxy.8.gz %doc %_mandir/man8/conproxy-control.8.gz %package misc Summary: Some tools to help test the blackhole project Group: Networking/util %description misc A client to use the horizon proxy mode. A udp to tcp proxy and tcp to udp, to pass UDP stuff through blackhole. A set of ping/pong tools. They help to see how it works. They help to test performance. %files misc /usr/sbin/rawtest /usr/sbin/tcpecho /usr/sbin/proxyclient /usr/sbin/udpproxy /usr/sbin/blackhole-devnull /usr/sbin/blackhole-devnull-control /usr/sbin/protocheck-2factors /usr/sbin/protocheck-2factors-control /etc/rc.d/init.d/blackhole-devnull /etc/rc.d/init.d/udpproxy /usr/sbin/http_proxy /usr/sbin/http_proxy-control /etc/rc.d/init.d/http_proxy %config(noreplace) /etc/udpproxy-options.conf %clean if [ "$RPM_BUILD_ROOT" != "" ] ; then rm -rf $RPM_BUILD_ROOT fi %post id blackhole >/dev/null 2>/dev/null || useradd -r blackhole %post horizon id blackhole >/dev/null 2>/dev/null || useradd -r blackhole %post wormhole id blackhole >/dev/null 2>/dev/null || useradd -r blackhole %postun %pre %preun