more
Standard
Funny Commands of Linux
Install sl
root@anit:~# apt-get install sl (In Debian like OS) root@anit:~# yum -y install sl (In Red Hat like OS)
Output
root@anit:~# sl

Install Cowsay
root@anit:~# apt-get install cowsay (for Debian based OS) root@anit:~# yum install cowsay (for Red Hat based OS)
Output
root@anit:~# cowsay I Love Gusaa ____________ < I Love Gusaa > ------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
more
Standard
Iptables rules from scan.
-A INPUT -p tcp --tcp-flags SYN,ACK SYN,ACK -m state --state NEW -j DROP -A INPUT -p tcp --tcp-flags ALL NONE -j DROP -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j DROP -A INPUT -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -j DROP -A INPUT -p tcp --tcp-flags FIN,RST FIN,RST -j DROP -A INPUT -p tcp --tcp-flags ACK,FIN FIN -j DROP -A INPUT -p tcp --tcp-flags ACK,PSH PSH -j DROP -A INPUT -p tcp --tcp-flags ACK,URG URG -j DROP -A INPUT -p tcp -m state --state NEW -m recent --set -A INPUT -p tcp -m state --state NEW -m recent --update --seconds 30 --hitcount 10 -j DROP -A FORWARD -p tcp -m state --state NEW -m recent --set -A FORWARD -p tcp -m state --state NEW -m recent --update --seconds 30 --hitcount 10 -j DROP -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
more
Standard
NFS server iptables
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 2049 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 32769 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 32769 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 892 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 892 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 875 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 875 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 662 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p udp --dport 662 -j ACCEPT
more
Standard
Build and Configuration H264 module for Apache
apache_mod_h264_streaming-2.2.7.tar
yum install httpd-devel yum install httpd mod_ssl cd ~/mod_h264_streaming-2.2.5 ./configure make sudo make install vi /etc/httpd/conf/httpd.conf Add the line 'AddHandler h264-streaming.extensions .mp4' after the line 'LoadModule h264_streaming_module /usr/lib/httpd/modules/mod_h264_streaming.so' /etc/init.d/httpd start
more