rhel ipv6
/etc/sysconfig/network NETWORKING_IPV6=no /etc/modprobe.conf add: alias net-pf-10 off alias ipv6 off Stop the service: service ip6tables stop Disable the service: chkconfig ip6tables off
rebuild postfix virtual.db
adding new info to the postfix virtual file and need to rebuild virtual.db: postmap virtual will create the virtual.db file from virtual
rhel5 via usb
So I’ve got my spiffy new HP DL360 G5 unboxed and pieced together and then I realize that they don’t come with CD/DVD drives in the low end package, something I should remember by now. That means the DVD of RHEL5.1 I’d burned yesterday to make sure I was ready, is pretty much useless. I […]
listing your gems
getting a list of gems becomes very important when you are running multiple servers with mongrel instances on them. Our environment I’ve been trying to go with a Beta, Stage and Prod environment for everything and Rails gets really mad when your module version doesn’t match what it expects, backwards compatibility doesn’t seem to be […]
block web request with iptables
add a rule to block port 80 web requests: /sbin/iptables -A INPUT -p tcp -s xxIPADDRESSxx –dport 80 -j DROP to remove that rule: /sbin/iptables -D INPUT -p tcp -s xxIPADDRESSxx –dport 80 -j DROP
list open connections
Using this command to list out number of open connections by IP /bin/netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n