Skip to content

Instantly share code, notes, and snippets.

@huazhouji
Last active December 31, 2015 11:48
Show Gist options
  • Save huazhouji/7981558 to your computer and use it in GitHub Desktop.
Save huazhouji/7981558 to your computer and use it in GitHub Desktop.
iptables -t nat -A POSTROUTING -s 172.16.36.0/255.255.255.0 -j SNAT --to-source `ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk 'NR==1 { print $1}'`;
service iptables save
yum -y install patch make gcc gcc-c++ libtool libtool-libs autoconf libjpeg libjpeg-devel libpng libpng-devel;
yum -y install freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel;
yum -y install bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5;
yum -y install krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap;
yum -y install openldap-clients openldap-servers;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment