tag:blogger.com,1999:blog-65038962918917972452024-03-19T00:28:10.028-07:00Get IT Solution from IT Hub InfoAnonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.comBlogger59125tag:blogger.com,1999:blog-6503896291891797245.post-26687503934516227382018-04-27T00:32:00.004-07:002018-04-27T00:32:58.173-07:00Install XRDP in Centos 7<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm<br />
<br />
yum update<br />
<br />
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"<br />
<br />
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target<br />
<br />
reboot<br />
<br />
install xrdp package :<br />
yum -y install xrdp tigervnc-server<br />
<br />
start xrdp service :<br />
<br />
systemctl start xrdp<br />
<br />
check status of xrdp :<br />
<br />
netstat -antup | grep xrdp<br />
<br />
enable xrdp to automatic start on boot :<br />
<br />
systemctl enable xrdp<br />
<br />
Edit xrdp.in file and make below entry:<br />
<br />
vi /etc/xrdp/xrdp.ini is now:<br />
<br />
[xrdp1]<br />
name=my.default<br />
lib=libvnc.so<br />
username=ask<br />
password=ask<br />
ip=127.0.0.1<br />
port=5900<br />
<br />
save and exit<br />
<br />
systemctl restart xrdp<br />
<br />
Allow port in firewall :<br />
<br />
firewall-cmd --permanent --add-port=3389/tcp<br />
firewall-cmd --reload<br />
<br />
if enable selinux :<br />
<br />
chcon --type=bin_t /usr/sbin/xrdp<br />
chcon --type=bin_t /usr/sbin/xrdp-sesman<br />
<div>
<br /></div>
<div>
Enjoy XRDP connection</div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-78320524162586311122017-04-03T21:45:00.000-07:002017-04-03T21:45:31.497-07:00Reset Grace Period of Windows Server 2012 RDS <div dir="ltr" style="text-align: left;" trbidi="on">
Error:<br />
<br />
the remote session was disconnected because there are no remote desktop license servers available to provide license in aws<br />
<br />
Solution:<br />
<br />
The solution is to delete the REG_BINARY in:<br />
<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod<br />
<br />
To delete the key you must take ownership and give admin users full control.<br />
<br />
After a restart the server will reset the grace period to 120 days.<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com5tag:blogger.com,1999:blog-6503896291891797245.post-53599673641652842782017-02-10T23:58:00.003-08:002017-02-10T23:59:45.280-08:00Install awscli on windows using cygwin<div dir="ltr" style="text-align: left;" trbidi="on">
1. download https://cygwin.com/install.html and Install cygwin with following packages python -(select this package python:python language interpreter ), curl (select all)<br />
<br />
2. open cygwin terminal and run below command<br />
<br />
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"<br />
python get-pip.py<br />
<br />
Then, we need to install awscli via pip:<br />
<br />
pip install awscli<br />
<br />
3. Configure aws account in awscli<br />
$aws configure<br />
<br />
run upload command<br />
$aws s3 cp /cygdrive/e/file.vhd s3://bucketname<br />
<br />
Comman error :<br />
curl: (48) An unknown option was passed in to libcurl<br />
solution: <br />
<br />
install proper curl package or may be resolve by install apt-cyg<br />
<br />
error :<br />
-bash: python: command not found<br />
<br />
solution:<br />
run again cygwin setup file and select package python - python:python language interpreter and install it </div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com2tag:blogger.com,1999:blog-6503896291891797245.post-54508091070453738702017-01-24T23:47:00.001-08:002017-01-24T23:47:20.316-08:00The requested URL returned error: 403 Forbidden<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #0b5394;"><b>Error : </b></span><br />
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/xxxx/store.git/info/refs<br /><br />fatal: HTTP request failed<br />
<br />
<span style="color: #0b5394;"><b>Solution :</b></span><br />
<br />
check git version ; may be using older version if using older version please update it<br /><br />Install require packages<br /># yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel<br /><br />Download latest git source<br /><br /># cd /usr/src<br /># wget https://git-core.googlecode.com/files/git-1.8.5.3.tar.gz<br /># tar xzf git-1.8.5.3.tar.gz<br /><br />3. Install it<br /><br /># cd git-1.8.5.3<br /># make prefix=/usr/src/git all<br /># make prefix=/usr/src/git install<br /># echo "export PATH=$PATH:/usr/src/git/bin" >> /etc/bashrc<br /># source /etc/bashrc<br /><br />4. git version<br /><br /># git --version<br />git version 1.8.5.3</div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-61256699261823013802016-12-30T00:20:00.000-08:002016-12-30T00:20:42.355-08:00How to Send Email via SMTP Server from gmail Account or other mail account<div dir="ltr" style="text-align: left;" trbidi="on">
Configure SSMTP on Linux/Centos<br />
<br />
1. install ssmtp package <br />
#yum install ssmtp<br />
<br />
2. Configure SSMTP - edit vi /etc/ssmtp/ssmtp.conf<br />
#mailhub=mail<br />
root=abc@gmail.com<br />
mailhub=smtp.gmail.com:587<br />
AuthUser=abc@gmail.com<br />
AuthPass=xxxxxx<br />
UseSTARTTLS=YES<br />
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt<br />
RewriteDomain=localhost<br />
Hostname=localhost<br />
<br />
save and exit.<br />
<br />
3. Test sendmail command line<br />
#ssmtp xxxx@gmail.com<br />
type masg<br />
Ctrl+D ( close and send the massage)<br />
<br />
4. Send mail to multiple recipients using in script<br />
#ssmtp abc@gmail.com, zyz@gmail.com < msg.txt</div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-5272300329748173652016-12-11T22:50:00.003-08:002016-12-11T22:50:41.864-08:00Allow/block ports in Linux/centos/redhat iptables <div dir="ltr" style="text-align: left;" trbidi="on">
If you want to open port in firewall via command line<br />
<br />
vi /etc/sysconfig/iptables and add below line<br />
<br />
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT<br />
<br />
save and exit.<br />
<br />
#service iptables restart</div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com3tag:blogger.com,1999:blog-6503896291891797245.post-37294092512664654202016-01-09T04:34:00.003-08:002016-01-09T04:38:41.095-08:00Mount AWS S3 bucket in linux<div dir="ltr" style="text-align: left;" trbidi="on">
yum remove fuse fuse-s3fs<br />
yum install automake fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel<br />
cd s3fs-fuse<br />
cd /opt/<br />
git clone https://github.com/s3fs-fuse/s3fs-fuse.git<br />
cd s3fs-fuse<br />
./autogen.sh<br />
./configure<br />
make<br />
make install<br />
echo MYIDENTITY:MYCREDENTIAL > ~/.passwd-s3fs<br />
chmod 600 ~/.passwd-s3fs<br />
mkdir /tmp/cache<br />
mkdir -p /s3localfolder<br />
chmod 777 /tmp/cache /s3localfolder<br />
s3fs -o use_cache=/tmp/cache s3bucket /s3localfolder<br />
<br />
create script: <br />
vi /usr/bin/mounts3.sh<br />
#!/bin/bash<br />
sleep 60<br />
s3fs -o use_cache=/tmp/cache s3bucket /s3localfolder<br />
echo "Amazon S3 bucket connected!"<br />
save and exit<br />
<br />
Create systemd service for S3FS<br />
<br />
create new file:<br />
/etc/systemd/system/mounts3.service<br />
<br />
and put below data :<br />
<br />
[Unit]<br />
Description=Mounts Amazon S3 bucket<br />
After=syslog.target<br />
After=network.target<br />
<br />
[Service]<br />
User=root<br />
WorkingDirectory=/usr/bin<br />
ExecStart=/bin/bash mounts3.sh start<br />
Type=forking<br />
KillMode=process<br />
<br />
# Time for the shell script to start up<br />
TimeoutSec=120<br />
<br />
[Install]<br />
WantedBy=multi-user.target<br />
<br />
save and exit<br />
<br />
Check service :<br />
<br />
systemctl start/stop mounts3<br />
Enable service on system boot:<br />
<br />
systemctl enable mounts3<br />
<br />
<br />
Thats it..... </div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-59794033588444963772014-09-25T22:15:00.001-07:002014-09-30T23:38:53.135-07:00(bash vulnerability) Bash software bug could be bigger threat than Heartbleed, experts warn<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<b><span style="color: #b45f06; font-family: inherit;">Secure your Linux , apple pc, servers</span></b></div>
<div style="text-align: left;">
<span style="font-family: inherit;">Try the vulnerability test (in Terminal): </span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<blockquote style="text-align: left;">
<span style="font-family: inherit;">$ env x='() { :;}; echo vulnerable' bash -c 'echo hello' </span><br />
<span style="font-family: inherit;">if you are vulnerable, you get back:</span><br />
<span style="font-family: inherit;">vulnerable</span><br />
<span style="font-family: inherit;">hello</span></blockquote>
<div style="text-align: left;">
<span style="font-family: inherit;">if get it "</span>vulnerable"<span style="font-family: inherit;"> please immediate update bash shell at linux.</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">for Centos\RHEL linux :</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">yum update bash </span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">For ubuntu :</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> update
apt</span><span class="pln">apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> install </span><span class="pun">--</span><span class="pln">only</span><span class="pun">-</span><span class="pln">upgrade bash</span><span class="pln">
</span></span><span class="pln"><span style="font-family: inherit;">or</span><br /> </span><span class="pln" style="font-family: Arial, Helvetica, sans-serif;">
</span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">mkdir src</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">cd src</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">wget http</span><span class="pun">://</span><span class="pln">ftp</span><span class="pun">.</span><span class="pln">gnu</span><span class="pun">.</span><span class="pln">org</span><span class="pun">/</span><span class="pln">gnu</span><span class="pun">/</span><span class="pln">bash</span><span class="pun">/</span><span class="pln">bash</span><span class="pun">-</span><span class="lit">4.3</span><span class="pun">.</span><span class="pln">tar</span><span class="pun">.</span><span class="pln">gz<br />
</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="com">#download all patches</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="kwd">for</span><span class="pln"> i </span><span class="kwd">in</span><span class="pln"> $</span><span class="pun">(</span><span class="pln">seq </span><span class="pun">-</span><span class="pln">f </span><span class="str">"%03g"</span><span class="pln"> </span><span class="lit">0</span><span class="pln"> </span><span class="lit">25</span><span class="pun">);</span><span class="pln"> </span><span class="kwd">do</span><span class="pln"> wget http</span><span class="pun">://</span><span class="pln">ftp</span><span class="pun">.</span><span class="pln">gnu</span><span class="pun">.</span><span class="pln">org</span><span class="pun">/</span><span class="pln">gnu</span><span class="pun">/</span><span class="pln">bash</span><span class="pun">/</span><span class="pln">bash</span><span class="pun">-</span><span class="lit">4.3</span><span class="pun">-</span><span class="pln">patches</span><span class="pun">/</span><span class="pln">bash43</span><span class="pun">-</span><span class="pln">$i</span><span class="pun">;</span><span class="pln"> </span><span class="kwd">done</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">tar zxvf bash</span><span class="pun">-</span><span class="lit">4.3</span><span class="pun">.</span><span class="pln">tar</span><span class="pun">.</span><span class="pln">gz
cd bash</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">cd bash</span><span class="pun">-</span><span class="lit">4.3</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="com">#apply all patches</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="kwd">for</span><span class="pln"> i </span><span class="kwd">in</span><span class="pln"> $</span><span class="pun">(</span><span class="pln">seq </span><span class="pun">-</span><span class="pln">f </span><span class="str">"%03g"</span><span class="pln"> </span><span class="lit">0</span><span class="pln"> </span><span class="lit">25</span><span class="pun">);</span><span class="kwd">do</span><span class="pln"> patch </span><span class="pun">-</span><span class="pln">p0 </span><span class="pun"><</span><span class="pln"> </span><span class="pun">../</span><span class="pln">bash43</span><span class="pun">-</span><span class="pln">$i</span><span class="pun">;</span><span class="pln"> </span><span class="kwd">done</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="com">#build and install</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pun">./</span><span class="pln">configure </span><span class="pun">&&</span><span class="pln"> make </span><span class="pun">&&</span><span class="pln"> make install
cd<br /> </span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">cd </span><span class="pun">..</span><span class="pln">
cd<br /> </span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">cd </span><span class="pun">..</span></code></span><span style="font-family: Arial, Helvetica, sans-serif;"><code><span class="pln">rm </span><span class="pun">-</span><span class="pln">r src</span></code><span class="pln">
</span></span></div>
<span style="font-family: inherit;"><b>
Verify patch</b><br /><span class="kwd">export</span><span class="pln"> VULNCHECK</span><span class="pun">=</span><span class="str">'() { :; }; echo You are still vulnerable'</span><span class="pun">;</span><span class="pln"> bash</span><br /><span class="pun">“</span><span class="typ">You</span><span class="pln"> are still vulnerable</span><span class="pun">”</span></span><br />
<div style="text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">You can see if you’re vulnerable by running the following command:</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">In a vulnerable environment, it’ll say:</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">And again check vulnerability if look like its fine.</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">or</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">$ env X="() { :;} ; echo busted" /bin/sh -c "echo hello"</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">hello</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"> or</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">otherwise you get:</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">bash: warning: x: ignoring function definition attempt</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;">bash: error importing function definition for `x'</span></div>
<div>
<span style="font-family: inherit;">hello</span></div>
</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-41058242353120593592014-09-23T04:56:00.000-07:002014-09-23T04:56:30.806-07:00Install and configure atlassian jira and atlassian confluence for mysql on Linux\Centos\RHEL<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #7f6000;"><b>Download jira and confluence package</b></span><br />
cd /opt<br />
wget http://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.3-x64.bin<br />
<br />
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-6.1-x64.bin<br />
<br />
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.26.tar.gz/from/http://cdn.mysql.com/<br />
<br />
<span style="color: #7f6000;">Make executable jira/confluence bin file</span><br />
chmod +x *.bin<br />
<br />
tar -xvzf mysql-connector-java-5.1.26.tar.gz<br />
<br />
<span style="color: #7f6000;">Installing mysql server</span><br />
<br />
yum install mysql-server mysql<br />
service mysqld start<br />
chkconfig mysqld on (auto start service on system reboot)<br />
<br />
<span style="color: #7f6000;">Setup jira database </span><br />
mysql -u root -p<br />
CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;<br />
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jiradb.* TO 'jirauser'@'localhost' IDENTIFIED BY 'jiradb';<br />
FLUSH PRIVILEGES;<br />
QUIT<br />
<br />
./atlassian-jira-6.1-x64.bin<br />
<br />
<span style="color: #7f6000;">Configure atlassian jira for mysql</span><br />
cd mysql-connector-java-5.1.26<br />
cp *.jar /opt/atlassian/jira/lib/<br />
service jira stop<br />
service jira start<br />
chkconfig jira on (auto start service on system reboot)<br />
<br />
<span style="color: #7f6000;">Open jira on web browser and complete setup</span><br />
http://localhost:8080<br />
<br />
<br />
<span style="color: #7f6000;"><b>Setup confluence for mysql</b></span><br />
<br />
mysql -u root -p<br />
CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;<br />
GRANT ALL PRIVILEGES ON confluence.* TO 'confluenceuser'@'localhost' IDENTIFIED BY 'confluence';<br />
FLUSH PRIVILEGES;<br />
QUIT<br />
<br />
./atlassian-confluence-5.3-x64.bin<br />
cd mysql-connector-java-5.1.26<br />
cp *.jar /opt/atlassian/confluence/lib/<br />
service confluence restart<br />
chkconfig confluence on<br />
<br />
<span style="color: #7f6000;">Open confluence on web browser and complete setup</span><br />
http://localhost:8090<br />
<br />
<br />
<br />
<br /></div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-26793266586103551212014-09-17T06:16:00.001-07:002014-09-17T06:16:06.816-07:00OpenVPN Server and Client common issue<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #0b5394;"><b>1. How to automatically log in to OpenVPN on Windows :</b></span><br />
<br />
The following launch string is needed for either method:<br />
<br />
For 32 bit Windows - "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect client.ovpn<br />
<br />
For 64 bit Windows - "C:\Program Files (x86)\OpenVPN\bin\openvpn-gui.exe" --connect client.ovpn<br />
<br />
The <b>client</b> is replaced with the name of the OpenVPN configuration file you wish to start. Your list of available .ovpn files can be found in the 'OpenVPN/config' folder on your computer.<br />
<br />
You now need to add this to your WIndows registry start settings. Open regedit on your computer and go to:<br />
<br />
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run<br />
<br />
Add a new string entry. Give it a name you can identify later such as "openvpn" then add the above string.<br />
<br />
OpenVPN auto start<br />
<br />
<span style="color: #0b5394;"><b>2. TLS related Error :</b></span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
Wed Aug 27 16:05:18 2014 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)<br />
Wed Aug 27 16:05:18 2014 TLS Error: TLS handshake failed<br />
<br />
<span style="color: #38761d;">Solution :</span><br />
1. may be openvpn server was not start<br />
2. Check firewall - may respected port is not opened or try with disabled windows or third party firewall<br />
<br />
----------------------------------------------------------------------------------<br />
<b style="background-color: white;"><span style="color: #0b5394;">3. Error: </span></b><br />
<br />
VERIFY ERROR: depth=1, error=certificate is not yet valid: in openvpn<br />
<br />
<span style="color: #38761d;">Solution :</span><br />
<br />
It may be date/time is not correct server and client machine.<br />
<br />
----------------------------------------------------------------------------------<br />
<span style="color: #0b5394;"><b>4. Error: </b></span><br />
<br />
No server certificate verification method has been enabled.<br />
<br />
<span style="color: #38761d;">Solution :</span><br />
make entry in client.ovpn file<br />
ns-cert-type server<br />
<br />
<br /></div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-25051131575917083512014-09-17T06:04:00.003-07:002014-09-17T06:18:38.027-07:00Install and configure latest OpenVPN Server and Client on Windows machine <div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #b45f06;">ON VPN SERVER :</span><br />
<br />
1. On windows machine Enabling TCP/IP Forwarding<br />
<br />
Use Registry Editor (Regedt32.exe) to view the following registry key:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters<br />
Set the following registry value:<br />
Value Name: IPEnableRouter<br />
Value type: REG_DWORD<br />
Value Data: 1<br />
NOTE: A value of 1 enables TCP/IP forwarding for all network connections installed and used by this computer.<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
2. Install openvpn (openvpn-install-2.3.4-I603-x86_64) with full packages, you will get easy-rsa tools<br />
3. Create certificate for server and client<br />
cd cd "Program Files\OpenVPN\easy-rsa"<br />
C:\Program Files\OpenVPN\easy-rsa>init-config.bat ( it's simply copy vars.bat.sample to vars.bat )<br />
C:\Program Files\OpenVPN\easy-rsa>vars.bat ( open vars and modify according to our requirement , like<br />
set KEY_COUNTRY=IN<br />
set KEY_PROVINCE=DL<br />
set KEY_CITY=DELHI<br />
set KEY_ORG=ABC<br />
set KEY_EMAIL=abc@gmail.com<br />
set KEY_CN=DELHI-IN<br />
set KEY_NAME=DELHI-IN<br />
set KEY_OU=ABCXYZ<br />
set PKCS11_MODULE_PATH=changeme<br />
set PKCS11_PIN=1234<br />
C:\Program Files\OpenVPN\easy-rsa>clean-all.bat<br />
C:\Program Files\OpenVPN\easy-rsa>build-ca.bat<br />
C:\Program Files\OpenVPN\easy-rsa>build-key-server server<br />
C:\Program Files\OpenVPN\easy-rsa>build-key client<br />
note : please be sure Common Name value and Name value should be change<br />
C:\Program Files\OpenVPN\easy-rsa>build-dh.bat<br />
<br />
4. All keys files are stored in keys folder (C:\Program Files\OpenVPN\easy-rsa\keys) copy ca.crt, server.crt, server.key,dh1024.pem and<br />
past in C:\Program Files\OpenVPN\config folder<br />
5. copy server.ovpn from server (C:\Program Files\OpenVPN\sample-config\) and past in (C:\Program Files\OpenVPN\config) folder<br />
<br />
6. open server.ovpn and make below changes and save it.<br />
<br />
<span style="color: #bf9000;">Server config :</span><br />
<br />
local 192.168.1.20 (OpenVPN Server ip)<br />
port 1194<br />
proto udp<br />
dev tun<br />
ca ca.crt<br />
cert server.crt<br />
key server.key # This file should be kept secret<br />
dh dh1024.pem<br />
server 10.8.0.0 255.255.255.0<br />
ifconfig-pool-persist ipp.txt<br />
push "route 192.168.1.0 255.255.255.0" (OpenVPN server network ips)<br />
push "dhcp-option DOMAIN xxxx.com" (if you are using domain)<br />
client-to-client<br />
keepalive 10 120<br />
cipher AES-256-CBC<br />
comp-lzo<br />
persist-key<br />
persist-tun<br />
status openvpn-status.log<br />
verb 3<br />
<br />
7. Go to services.msc and make openVpn to start automatic on system start.<br />
<br />
8. Be sure udp 1194 port should be open on firewall.<br />
<br />
DONE................... server configuration<br />
<br />
openVPN client configuration :<br />
<br />
1. Install openvpn (openvpn-install-2.3.4-I603-x86_64) on default mode.<br />
2. copy copy ca.crt, client.crt, client.key from server and past in client machine C:\Program Files\OpenVPN\config<br />
3. copy client.ovpn from server (C:\Program Files\OpenVPN\sample-config\) and past it on client machine (C:\Program Files\OpenVPN\config)<br />
<br />
4. open client.ovpn and make below changes<br />
<span style="color: #bf9000;">client config :</span><br />
client<br />
dev tun<br />
proto udp<br />
remote openvpn server ip 1194<br />
resolv-retry infinite<br />
nobind<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert client.crt<br />
key client.key<br />
ns-cert-type server<br />
cipher AES-256-CBC<br />
comp-lzo<br />
verb 3<br />
<br />
5. Click on OpenVPN GUI and connect to OpenVPN SERVER<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb3Su4Moj5boOp0vqbEv5yR21Ooi45FdjXuoBZFGbAXdXeq0ulm0GY2fWZnSsENFo4svJ487uvSeGGfoRtdGyLIELgvwKXeWGAAnr2BlctRmu38TLwXHzfTv7izDOX9jJz-z97UD7WvEXh/s1600/connectopenvpn.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb3Su4Moj5boOp0vqbEv5yR21Ooi45FdjXuoBZFGbAXdXeq0ulm0GY2fWZnSsENFo4svJ487uvSeGGfoRtdGyLIELgvwKXeWGAAnr2BlctRmu38TLwXHzfTv7izDOX9jJz-z97UD7WvEXh/s1600/connectopenvpn.png" height="157" width="320" /></a></div>
<br />
<br />
or<br />
<br />
OpenVPN GUI connect command line<br />
<br />
cd C:\Program Files\OpenVPN\bin<br />
openvpn-gui.exe --config client.ovpn or openvpn.exe --config client.ovpn<br />
<br />
<span style="color: #bf9000;"><b>Done!.....</b></span><br />
<br /></div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-84526444900768504372014-09-12T04:48:00.004-07:002014-09-23T20:57:14.741-07:00XEN SERVER 6.2- apply hotfixes,install client, xentools<div dir="ltr" style="text-align: left;" trbidi="on">
<h3>
<span style="color: #0b5394;">XenServer 6.2</span></h3>
<div>
Download latest all hotfixes from below link :</div>
http://support.citrix.com/article/CTX138115#XenServer%206.2<br />
<br />
<span style="color: #0b5394;"><b>Apply hotfixes on XENSERVER </b></span><br />
<br />
[root@xenserver ~]#<br />
5 xe patch-upload file-name=XS62ESP1008.xsupdate<br />
7 xe patch-list | more ( find patch uuid )<br />
8 xe host-list (find host uuid)<br />
12 xe patch-apply uuid=0850b186-4d47-11e3-a720-001b2151a503 host-uuid=b079bb9c-ab15-499b-90ad-93fd8142fde5<br />
15 xe-toolstack-restart<br />
<span style="background-color: white; line-height: 38px;"><span style="font-family: inherit;"><b>Error when applying Update 3: The upload update already exist. Check your settings and try again</b></span></span><br />
http://support.citrix.com/article/ctx121325<br />
<br />
<b><span style="color: #0b5394;">Clean hotfix first then apply again :</span></b><br />
<br />
type the command xe patch-list end press Enter.<br />
Write down the Universally unique Identifier (UUID) of the Update 3 which is 1244e029-4f48-4503-82c7-db4e2ec8f70d.<br />
<br />
Type the command xe patch-clean uuid=1244e029-4f48-4503-82c7-db4e2ec8f70d and press Enter.<br />
<br />
<b><span style="color: #0b5394;">Create NFS ISO library :</span></b><br />
<br />
NFS ISO Library [10.201.8.2:/opt/images]<br />
<br />
<b><span style="color: #0b5394;">Installing XenServer Tools on Windows VMs</span></b><br />
<br />
Important: Note that installing XenServer Tools will cause any media in the virtual machine's CD/DVD-drive to be ejected. Do not attempt to install XenServer Tools if the virtual machine's CD/DVD-drive is in use, for example, during OS install from CD.<br />
Select the VM in the Resources pane, right-click, and then click Install XenServer Tools on the shortcut menu. Alternatively, on the VM menu, click Install XenServer Tools.<br />
Click Install XenServer Tools on the message dialog to go to the VM's console and begin the installation.<br />
If Autoplay is enabled for the VM's CD drive, installation will be started automatically after a few moments. If Autoplay is not enabled, double-click on the CD drive to begin installing XenServer Tools.<br />
Follow the on-screen instructions, and reboot the VM when prompted.<br />
<br />
<b><span style="color: #0b5394;">Installing XenServer Tools on Linux VMs </span></b><br />
<br />
Select the VM in the Resources pane, right-click, and then click Install XenServer Tools on the shortcut menu. Alternatively, on the VM menu, click Install XenServer Tools.<br />
Click Install XenServer Tools on the message dialog to go to the VM's console.<br />
As the root user, mount the image into the VM:<br />
mount /dev/xvdd /mntExecute the installation script as the root user:<br />
<br />
/mnt/Linux/install.sh<br />
<br />
<b><span style="color: #0b5394;">Download and Install xencenter client on windows:</span></b><br />
<br />
http://downloadns.citrix.com.edgesuite.net/8708/XenCenter.msi<br />
<br />
<b><span style="color: #0b5394;">Install openxenmanager( xencenter client) on linux/centos :</span></b><br />
<br />
1008 cd /opt<br />
1009 wget http://sourceforge.net/projects/openxenmanager/files/openxenmanager_rev48.tar.gz<br />
1010 tar -xvzf openxenmanager_rev48.tar.gz<br />
1012 cd openxenmanager<br />
1014 vi /usr/bin/xenmanager<br />
1015 chmod 755 /usr/bin/xenmanager<br />
1019 yum install rrdtool<br />
1023 yum search python|grep gtk<br />
1024 yum install gtk-vnc-python.x86_64<br />
<br />
1025 yum install pygtk2.x86_64<br />
<br />
<br />
<b><span style="color: #0b5394;">Create template :</span></b><br />
<br />
<br />
https://www.youtube.com/watch?v=hK0P6I-JPgo<br />
<br />
<b><span style="color: #0b5394;">Change DNS SERVER IP in xen server :</span></b><br />
1. login shell prompt<br />
2. Now you'll want to run xe pif-list<br />
Take note of the uuid of your management interface.<br />
3. Now you'll want to run the xe pif-reconfigure-ip uuid=youruuid mode=static IP=192.168.1.12 netmask=255.255.255.0 gateway=192.168.1.1 DNS=192.168.1.1,8.8.8.8<br />
<br />
Press enter and you're set :)<br />
Comman error:<br />
<br />
Error:<br />
0x000000FE<br />
<br />
Solution :<br />
<br />
Change clone machine name<br />
<br />
Error on clone machine :<br />
<br />
ERROR:<br />
<br />
[root@localhost ~]# yum install php ( installing any package )<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was<br />
14: PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"<br />
Error: Cannot find a valid baseurl for repo: base<br />
[root@localhost ~]#<br />
<br />
Solution :<br />
network issue related to internet<br />
<div>
<br /></div>
<br />
<b><br /></b></div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-17341792469731781962014-06-18T22:57:00.001-07:002014-09-30T23:49:32.888-07:00Upgrading Redmine old version to new version<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h4 class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-align: left;">
<span style="color: #984806; font-family: "Verdana","sans-serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-themecolor: accent6; mso-themeshade: 128;">Easy way to </span><span style="color: #984806; font-family: "Verdana","sans-serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-style: italic; mso-bidi-font-weight: bold; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US; mso-themecolor: accent6; mso-themeshade: 128;">Redmine upgrade</span></h4>
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<b style="mso-bidi-font-weight: normal;"><span style="color: #0070c0; font-family: "Verdana","sans-serif";">Activity done on old
installation:<o:p></o:p></span></b></div>
<br />
<div class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.75in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -0.5in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">1.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">#/opt/redmine/ctlscript.sh stop</span><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 16pt; line-height: 115%;"><o:p></o:p></span></b></div>
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">2.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">#/opt/redmine/ctlscript.sh start mysql</span><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 16pt; line-height: 115%;"><o:p></o:p></span></b><br />
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">3.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">#/opt/redmine/mysql/bin/mysqldump –u
bitnami -p bitnami_redmine > </span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"> </span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Courier New"; mso-fareast-font-family: "Times New Roman";">bitnami_redmine06162014.sql</span><br />
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; margin: 0in 0in 0pt 0.75in; mso-add-space: auto; mso-list: l1 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -0.5in;">
<!--[if !supportLists]--><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">4.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman";">Backup uploaded files : <o:p></o:p></span></div>
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman";">#cd /opt/redmine/apps/redmine/htdocs<o:p></o:p></span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman";"># cp –rvf files files.bak ( and take it in safe place)<o:p></o:p></span><br />
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">5.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Courier New"; mso-fareast-font-family: "Times New Roman";">Uninstall old redmine : </span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><o:p></o:p></span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Courier New"; mso-fareast-font-family: "Times New Roman";">#cd
/opt/redmine<o:p></o:p></span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Courier New"; mso-fareast-font-family: "Times New Roman";">#./uninstall<span style="mso-spacerun: yes;"> </span>- press enter<o:p></o:p></span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Courier New"; mso-fareast-font-family: "Times New Roman";">#rm
–rf /opt/redmine</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<b style="mso-bidi-font-weight: normal;"><span style="color: #0070c0; font-family: "Verdana","sans-serif";">Activity done on new
installation:<o:p></o:p></span></b></div>
<br />
<div class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.5in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">1.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">Download latest redmine stack </span><a href="https://bitnami.com/stack/redmine"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="color: blue;">https://bitnami.com/stack/redmine</span></span></a><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">
and install it.<o:p></o:p></span></div>
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">2.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">Then check the database details in
database.yml , where you have define the</span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"> installation path using vi
/opt/redmine/apps/redmine/htdocs/config/database.yml<o:p></o:p></span><br />
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.5in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">3.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">Login in database using root user <o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">#/opt/redmine/mysql/bin/mysql
-u root –p<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span>Password: ****<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span>mysql> drop database bitnami_redmine;<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span>mysql> create database bitnami_redmine;<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span>mysql> grant all privileges on bitnami_redmine.*
to 'bitnami'@'localhost'<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span>identified by 'DATABASE_PASSWORD';<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpLast" style="line-height: normal; margin: 0in 0in 10pt 49.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: -0.5in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";"><span style="mso-list: Ignore;">4.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";">Restore
the new database:<o:p></o:p></span></div>
<span style="font-family: "Courier New"; font-size: 10pt; mso-fareast-font-family: "Times New Roman";"><span style="mso-spacerun: yes;"> </span>#mysql -u bitnami -p bitnami_redmine
< bitnami_redmine06162014.sql<o:p></o:p></span><br />
<br />
<div class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.5in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">5.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">Restore file backup :<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 49.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.5in;">
<!--[if !supportLists]--><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"> #cp files.bak/* /opt/redmine/apps/redmine/htdocs/files/<o:p></o:p></span></div>
<br />
<div class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 49.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -0.5in;">
<!--[if !supportLists]--><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana;"><span style="mso-list: Ignore;">7.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: Calibri;">Support this new version and run the
following command</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">: <o:p></o:p></span></div>
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span>#cd /opt/redmine/apps/redmine/htdocs/ <o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt; text-indent: 0.5in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span>#/opt/redmine/ruby/bin/ruby bin/rake
db:migrate RAILS_ENV=production<o:p></o:p></span></div>
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";"><span style="mso-list: Ignore;">8.<span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";">Finally
you should clean the cache and the sessions:<o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 30pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span style="font-family: "Courier New"; font-size: 10pt; mso-fareast-font-family: "Times New Roman";"><span style="mso-tab-count: 1;"> </span># ruby bin/rake tmp:cache:clear<o:p></o:p></span></div>
<span style="font-family: "Courier New"; font-size: 10pt; mso-fareast-font-family: "Times New Roman";"><span style="mso-tab-count: 1;"> </span># ruby bin/rake tmp:sessions:clear<o:p></o:p></span><br />
<b style="mso-bidi-font-weight: normal;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri;">9.</span><span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal "Times New Roman";">
</span></span></span></b><!--[endif]--><span style="font-family: Calibri;">Restart the servers and you can access to
your new Redmine.</span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>#/opt/redmine/ctlscript.sh
restart <o:p></o:p></span><br />
<br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">Index
file location: <o:p></o:p></span><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">/opt/redmine/apache2/htdocs/index.html<o:p></o:p></span><br />
<br />
<div class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 0.75in; mso-add-space: auto;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"><o:p>Enjoy with latest Redmine............! </o:p></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/13255371123216148596noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-42657823527958340432014-04-23T04:52:00.000-07:002014-06-18T22:58:13.064-07:00Remove remi php5.4 package and install php5.3 on Centos linux machine<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
# Remove the Remi packages. Note the reversed command order<br />
<br />
yum remove php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml<br />
yum remove httpd php php-common<br />
<br />
# Install the CentOS packages.<br />
<br />
yum install httpd php php-common<br />
yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-16068064609724130322014-04-23T04:49:00.003-07:002014-04-23T04:49:53.425-07:00Directory index forbidden by Options directive<div dir="ltr" style="text-align: left;" trbidi="on">
<strong>Solution :</strong><br />
<br />
open httpd.conf file and make entry <br />
<br />
vi /etc/httpd/conf/httpd.conf<br />
<br />
<Directory "/var/www/html"><br /> Options -Indexes FollowSymLinks +ExecCGI<br /> AllowOverride AuthConfig FileInfo<br /> DirectoryIndex index.php index.html<br /> Order allow,deny<br /> Allow from all<br /></Directory><br />
<br />
<br />
If using fastcgi then make entry below mentioned.<br />
<br />
<Directory "/var/www/html"><br /> Options -Indexes FollowSymLinks +ExecCGI<br /> AllowOverride AuthConfig FileInfo<br /> AddHandler php5-fastcgi .php<br /> Action php5-fastcgi /cgi-bin/php.fcgi<br /> DirectoryIndex index.php index.html<br /> Order allow,deny<br /> Allow from all<br /></Directory><br />
<br />
then restart httpd service.<br />
#/etc/init.d/httpd restart<br />
</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-56357270321835296062014-03-29T03:24:00.001-07:002014-04-01T21:14:29.436-07:00How to Install and configure mysql multi instance in ubuntu 12.04/13.04 server<div dir="ltr" style="text-align: left;" trbidi="on">
<strong>Create multi MySQL slave on single Ubuntu server</strong><br />
<br />
<b><span style="font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Step-1:</span></b><span style="font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Login to your server
as root user</span><span style="font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";"><br />
<br />
</span><b><span style="font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Step-2:</span></b><span style="font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Login to your mysql
server as root and execute the following command</span><span style="font-family: "Times New Roman","serif"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span style="color: black; font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Courier New"; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman";">mysql></span><b style="mso-bidi-font-weight: normal;"><span style="color: black; font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Courier New"; mso-fareast-font-family: "Times New Roman";">GRANT
SHUTDOWN ON *.* TO 'multi_admin'@'localhost' IDENTIFIED BY 'password';</span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "Courier New"; font-size: 10pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">
<span style="color: black; font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Courier New"; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman";">mysql></span><b style="mso-bidi-font-weight: normal;"><span style="color: black; font-family: "Abyssinica SIL","serif"; font-size: 12pt; mso-bidi-font-family: "Courier New"; mso-fareast-font-family: "Times New Roman";">FLUSH
PRIVILEGES;</span></b><span style="font-family: "Courier New"; font-size: 10pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: "Times New Roman","serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;"><br />
</span><b><span style="font-family: "Abyssinica SIL","serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;">Step-3:</span></b><span style="font-family: "Abyssinica SIL","serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;">come
out of mysql prompt and stop mysql server.To stop you can execute</span><span style="font-family: "Times New Roman","serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;"><br />
</span><span style="font-family: "Abyssinica SIL","serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;">[root@localhost
~]# <b style="mso-bidi-font-weight: normal;">service mysql stop</b></span><span style="font-family: "Times New Roman","serif"; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;"><br style="mso-special-character: line-break;" />
<!--[if !supportLineBreakNewLine]-->
<!--[endif]--></span><br />
#cd /etc/mysql<br />
#vi my.cnf <br />
[mysqld_safe]<br />
#log-error=/var/log/mysqld.log<br />
#pid-file=/var/run/mysqld/mysqld.pid<br />
[mysqld_multi]<br />
mysqld = /usr/bin/mysqld_safe<br />
mysqladmin = /usr/bin/mysqladmin<br />
log = /var/log/mysqld_multi.log<br />
user = multi_admin<br />
password = password<br />
<br />
[mysqld1]<br />
port = 3306<br />
datadir = /var/lib/mysql<br />
pid-file = /var/lib/mysql/mysqld.pid<br />
socket = /var/lib/mysql/mysql.sock<br />
user = mysql<br />
log-error = /var/log/mysqlerp.err<br />
server-id = 4<br />
relay-log= /var/lib/mysql/relay-bin.log<br />
log-bin = /var/lib/mysql/mysql-bin.log<br />
binlog_do_db = dbname<br />
binlog-format=mixed<br />
<br />
[mysqld2]<br />
port = 3307<br />
datadir = /var/lib/mysql2<br />
pid-file = /var/lib/mysql2/mysql.pid<br />
socket = /var/lib/mysql2/mysql.sock<br />
user = mysql<br />
server-id = 3<br />
relay-log= /var/lib/mysql2/relay-bin.log<br />
log-bin = /var/lib/mysql2/mysql-bin.log<br />
binlog_do_db = dbname<br />
binlog-format=mixed<br />
log-error = /var/log/mysqlcrm.err<br />
<br />
vi /etc/apparmor.d/usr.sbin.mysqld<br />
# vim:syntax=apparmor<br />
# Last Modified: Tue Jun 19 17:37:30 2007<br />
#include <tunables/global><br />
/usr/sbin/mysqld {<br />
#include <abstractions/base><br />
#include <abstractions/nameservice><br />
#include <abstractions/user-tmp><br />
#include <abstractions/mysql><br />
#include <abstractions/winbind><br />
capability dac_override,<br />
capability sys_resource,<br />
capability setgid,<br />
capability setuid,<br />
network tcp,<br />
/etc/hosts.allow r,<br />
/etc/hosts.deny r,<br />
/etc/mysql/*.pem r,<br />
/etc/mysql/conf.d/ r,<br />
/etc/mysql/conf.d/* r,<br />
/etc/mysql/*.cnf r,<br />
/usr/lib/mysql/plugin/ r,<br />
/usr/lib/mysql/plugin/*.so* mr,<br />
/usr/sbin/mysqld mr,<br />
/usr/share/mysql/** r,<br />
/var/log/mysql.log rw,<br />
/var/log/mysql.err rw,<br />
+ /var/log/mysql[1-9].log rw,<br />
+ /var/log/mysql[1-9].err rw,<br />
/var/lib/mysql/ r,<br />
/var/lib/mysql/** rwk,<br />
+ /var/lib/mysql[1-9]/ r,<br />
+ /var/lib/mysql[1-9]/** rwk,<br />
/var/log/mysql/ r,<br />
/var/log/mysql/* rw,<br />
+ /var/log/mysql[1-9]/ r,<br />
+ /var/log/mysql[1-9]/* rw,<br />
+ /var/run/mysqld/mysqld.pid rw,<br />
+ /var/run/mysqld/mysqld.sock w,<br />
/run/mysqld/mysqld.pid rw,<br />
/run/mysqld/mysqld.sock w,<br />
/sys/devices/system/cpu/ r,<br />
# Site-specific additions and overrides. See local/README for details.<br />
#include <local/usr.sbin.mysqld><br />
}<br />
<br />
<br />
#/etc/init.d/apparmor restart<br />
<br />
#mkdir -p /var/lib/mysql2<br />
cp -r /var/lib/mysql/ /var/lib/mysql2/<br />
chown -R mysql:mysql /var/lib/mysql2<br />
<br />
mysqld_multi command <br />
check status :<br />
mysqld_multi report<br />
Start All Mysql Instance <br />
mysqld_multi start<br />
Stop All Mysql Instance<br />
mysqld_multi stop<br />
Start specific Mysql Instance <br />
mysqld_multi start 1 , 2 , 3.... and so on<br />
Stop specific Mysql Instance<br />
mysqld_multi stop 1 , 2 ,3.... and so on<br />
<br />
Check MySQL service : <br />
ps -aux | grep mysql | grep -v grep<br />
<br />
Access mysql instance :<br />
mysql -uroot -h127.0.0.1 -P3306 -p<br />
mysql -uroot -h127.0.0.1 -P3307 -p<br />
<br />
</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-19846449255224458292014-03-28T23:34:00.004-07:002014-03-28T23:34:37.120-07:00MySQL server is not starting <div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: red;">Error massage :</span><br />
[ERROR] /usr/sbin/mysqld: Can't find file: './mysql/host.frm' (errno: 13)<br />140329 5:47:35 <br />
[ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)<br />
<br />
<strong><span style="color: #38761d;">Solution:</span></strong> Please change ownership of MySQL root folder<br />
<br />
chown -R mysql:mysql /var/lib/MySQL<br />
<br />
and restart MySQL service </div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-80100997670223276132014-03-27T21:36:00.000-07:002014-03-27T21:36:11.732-07:00How to Install and configure sendmail for Windows Task Scheduler<div dir="ltr" style="text-align: left;" trbidi="on">
Easy way to install and configure sendmail on windows machine.<br />
<br />
If you want using send mail on windows without installing smtp server<br />
you can done it, fallow below step and done process.<br />
<br />
Requirement : <br />
<br />
1. Windows 7/vista , 2003/2008 server<br />
2. sendEmail-v156-notls.zip or above ( download to this link <br />
<a href="http://caspian.dotconf.net/menu/Software/SendEmail/">http://caspian.dotconf.net/menu/Software/SendEmail/</a> ) <br />
<br />
Put the zip file where you want like C:\sendEmail-v156-notls.zip <br />
extract this and rename folder name : sendEmail-v156-notls to sendmail<br />
<br />
c:\sendmail<br />
<br />
<span style="font-family: Calibri;">Add event :</span><br />
<span style="font-family: Calibri;">Got o Event Viewer > Task Scheduler > Operational > right click on alert massage and attached task to this event</span><br />
<span style="font-family: Calibri;"></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1g9eFEndlrqsAkZ2ld3X2s8KxNCXxtksKZK88sEfGK1CjXbJxekXHokWCrDwD8rhlMTTggxY9W2NGwEFkQLiSPC5_3LYWtlpsbSMrFSf41dvhdxRED8HrM2lfJETA0MmHCjhQMwr3LN4/s1600/task1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1g9eFEndlrqsAkZ2ld3X2s8KxNCXxtksKZK88sEfGK1CjXbJxekXHokWCrDwD8rhlMTTggxY9W2NGwEFkQLiSPC5_3LYWtlpsbSMrFSf41dvhdxRED8HrM2lfJETA0MmHCjhQMwr3LN4/s1600/task1.png" height="180" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4KZV-alVFGah79nuASw8kT9VfYMKr4x-x-nzwvfltxyD9VXL2XDpxz_LkmoMpI8ahcajHwxgXpg586K9li3WgDMY_Ag-4vBtHTg7tJVq8Dorp4PHGBmcT7M3rSLU2A9UnZhMyVePqpC1q/s1600/task2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4KZV-alVFGah79nuASw8kT9VfYMKr4x-x-nzwvfltxyD9VXL2XDpxz_LkmoMpI8ahcajHwxgXpg586K9li3WgDMY_Ag-4vBtHTg7tJVq8Dorp4PHGBmcT7M3rSLU2A9UnZhMyVePqpC1q/s1600/task2.png" height="180" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCN4gWhPcN6nfympUAEN6uNFHmzL6K7oKGilgAOsEfkmXHY3vQslY_LNZHHDzHpkgftZmw6mcYb_YuU0xKeWLGUYwcvkY7b5Eq5kIOG7b6T7rAucfWa_wUnPvhbryTyZr14PMmuum8M-dq/s1600/task3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCN4gWhPcN6nfympUAEN6uNFHmzL6K7oKGilgAOsEfkmXHY3vQslY_LNZHHDzHpkgftZmw6mcYb_YuU0xKeWLGUYwcvkY7b5Eq5kIOG7b6T7rAucfWa_wUnPvhbryTyZr14PMmuum8M-dq/s1600/task3.png" height="180" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;"><strong>Program/script:</strong> click on browse and select sendEmail.exe </span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;">C:\sendmail\sendEmail.exe</span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri;">Add
arguments(optional) :<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;">-f <a href="mailto:abc@zyx.com">abc@zyx.com</a> -t
<a href="mailto:abc@xyz.com">abc@xyz.com</a> -u Subject -m Task start Failed! -s
mail.abc.com:25 -xu abc<a href="mailto:abc@xyz.com">@xyz.com</a> -xp password</span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;">Send multiple mail :</span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;">-f </span><a href="mailto:abc@zyx.com"><span style="font-family: Calibri;">abc@zyx.com</span></a><span style="font-family: Calibri;"> -t </span><a href="mailto:abc@xyz.com"><span style="font-family: Calibri;">abc@xyz.com</span></a><span style="font-family: Calibri;"> -t <a href="mailto:alina@xyz.com">alina</a><a href="https://www.blogger.com/null">@xyz.com</a> -u Subject -m Task start Failed! -s mail.abc.com:25 -xu abc</span><a href="mailto:abc@xyz.com"><span style="font-family: Calibri;">@xyz.com</span></a><span style="font-family: Calibri;"> -xp password</span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsooTb04smZmOABcFIZ1CuXWrmMHHVhUiaknOAO79kwAbs_3x_Mlkq1ps7YR3jYf8F37S29FStRLYtMkr-iswI08fp1FLkDL6mLINr1Blxdc7NHRV1yVTB-j7-UEP69BX5_R_TZ_qZRmyC/s1600/task4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsooTb04smZmOABcFIZ1CuXWrmMHHVhUiaknOAO79kwAbs_3x_Mlkq1ps7YR3jYf8F37S29FStRLYtMkr-iswI08fp1FLkDL6mLINr1Blxdc7NHRV1yVTB-j7-UEP69BX5_R_TZ_qZRmyC/s1600/task4.png" height="180" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
click next and finish configuration!</div>
<br />
<br />
<br />
<br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span><br />
<span style="padding-left: 50px;"></span> </div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-42880530230933457262014-03-24T22:33:00.000-07:002014-03-24T22:33:28.352-07:00How to fix : The Recycle Bin C:\ is corrupted. Do you want to empty the Recycle Bin for this drive.<div dir="ltr" style="text-align: left;" trbidi="on">
<strong><span style="color: red;">Error massage :</span></strong><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP8UZKn9hyphenhyphenRoAIJDPSn1z5HJ_PnvYz0ZyVeYvl4ZUUPpZ9V1PYZA4rJp10_FQE5lPQ_W025E7F_DG_mm7W2RtTuctq7HHg2a1gYfNS1FqV7OTkOOh0BcIctytB3SdAmz9lF_u_kSdYD_j5/s1600/recycline_error.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP8UZKn9hyphenhyphenRoAIJDPSn1z5HJ_PnvYz0ZyVeYvl4ZUUPpZ9V1PYZA4rJp10_FQE5lPQ_W025E7F_DG_mm7W2RtTuctq7HHg2a1gYfNS1FqV7OTkOOh0BcIctytB3SdAmz9lF_u_kSdYD_j5/s1600/recycline_error.png" height="83" width="320" /></a><br />
<br />
<br />
<strong><span style="color: #38761d;">Solution :</span></strong> <br />
<br />
1. Login with Administrator > Click Start button and type cmd<br />
2. At the command prompt enter the following line and press Enter:<br />
rd /s c:\$recycle.bin<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNliRtM1m62r9bIDc8dfGYTnB8vzHhO6X1fXVs2eV7utqEe_cyjD9qeKSEs3OdvdbRFtEpO_nEvLJQQqNDiQfplAPnt-RMGRPzfF2qTiuqs35U_SQ4Nf2VYPWx9q12vpSjjVzeYqg3Ao0c/s1600/solution.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNliRtM1m62r9bIDc8dfGYTnB8vzHhO6X1fXVs2eV7utqEe_cyjD9qeKSEs3OdvdbRFtEpO_nEvLJQQqNDiQfplAPnt-RMGRPzfF2qTiuqs35U_SQ4Nf2VYPWx9q12vpSjjVzeYqg3Ao0c/s1600/solution.png" height="164" width="320" /></a></div>
<br />
3. When prompted to confirm the deletion type Y and press Enter to confirm.<br />
4. Close the command prompt window and restart the PC.<br />
A new recycle directory will have been created.</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-91474172529187827072013-11-18T02:12:00.003-08:002013-11-18T02:12:54.137-08:00How to install and configure Xvfb in Linux/Centos<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Step to install and configure xvfb : <br />
<br />
First check the xvfb install or not <br />
# yum info xorg-x11-server-Xvfb<br />
<br />
<strong><span style="color: #0b5394;">If installed then look like this :</span></strong><br />
[root@server ~]# yum info xorg-x11-server-Xvfb<br />Loaded plugins: fastestmirror, refresh-packagekit, security<br />Loading mirror speeds from cached hostfile<br /> * base: mirror.leapswitch.com<br /> * epel: mirrors.vinahost.vn<br /> * extras: mirror.leapswitch.com<br /> * rpmforge: mirror-fpt-telecom.fpt.net<br /> * updates: mirror.leapswitch.com<br /> * webtatic: us-east.repo.webtatic.com<br />Installed Packages<br />Name : xorg-x11-server-Xvfb<br />Arch : x86_64<br />Version : 1.13.0<br />Release : 11.1.el6.centos.2<br />Size : 1.8 M<br />Repo : installed<br />From repo : updates<br />Summary : A X Windows System virtual framebuffer X server.<br />URL : <a href="http://www.x.org/">http://www.x.org</a><br />License : MIT and GPLv2<br />Description : Xvfb (X Virtual Frame Buffer) is an X server that is able to run<br /> : on machines with no display hardware and no physical input<br /> : devices. Xvfb simulates a dumb framebuffer using virtual memory.<br /> : Xvfb does not open any devices, but behaves otherwise as an X<br /> : display. Xvfb is normally used for testing servers.<br />
[root@server ~]#<br />
If it's not installed, please install it :<br />
# yum info xorg-x11-server-Xvfb<br />
# yum install firefox<br />
<br />
check firewall version :<br />
#firefox -v<br />
<br />
Run firefox browser in backend service :<br />
<br />
/usr/bin/Xvfb :1 -screen 0 1024x768x24 &<br />export DISPLAY=:1 ( note you can change display number)<br />echo 'display is set'<br />firefox &</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com1tag:blogger.com,1999:blog-6503896291891797245.post-62305518011166700492013-10-01T05:36:00.004-07:002013-10-01T05:36:48.857-07:00master status empty set 0.00 sec<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Calibri;"><strong><span style="color: red;">Error :</span></strong> </span><br />
<span style="font-family: Calibri;">mysql> SHOW MASTER STATUS;</span><br />
<span style="font-family: Calibri;">Empty set (0.00 sec)</span><br />
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;"><strong><span style="color: #38761d;">Soluton :</span></strong> </span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;">#touch /var/lib/mysql/mysql-bin.log</span></div>
<span style="font-family: Calibri;">#vi /etc/my.cnf</span><br />
<span style="font-family: Calibri;">log-bin = /var/lib/mysql/mysql-bin.log</span><br />
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;">save and exit.</span></div>
<span style="font-family: Calibri;">#service mysqld restart</span><br />
<span style="font-family: Calibri;">#mysql –u root –p<span style="mso-spacerun: yes;">
</span>(login in mysql and run command)</span><br />
<span style="font-family: Calibri;">mysql> SHOW MASTER STATUS;</span><br />
<span style="font-family: Calibri;">+----------------+----------+--------------+------------------+</span><br />
<span style="font-family: Calibri;">| File<span style="mso-spacerun: yes;"> </span>|
Position | Binlog_Do_DB | Binlog_Ignore_DB |</span><br />
<span style="font-family: Calibri;">+----------------+----------+--------------+------------------+</span><br />
<span style="font-family: Calibri;">| mysql-bin.000001 |<span style="mso-spacerun: yes;">
</span>107 | xyzdb<span style="mso-spacerun: yes;"> </span>|<span style="mso-spacerun: yes;"> </span>|</span><br />
<span style="font-family: Calibri;">+----------------+----------+--------------+------------------+</span><br />
<span style="font-family: Calibri;">1 row in set (0.00 sec)</span><br />
<br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<o:p><span style="font-family: Calibri;"> </span></o:p><span style="font-family: Calibri;">mysql></span></div>
</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-48002873237963803792013-09-29T23:44:00.000-07:002013-09-30T01:29:52.203-07:00Step by Step Install and configure transparent squid proxy on linux/Centos<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-outline-level: 3;">
<b><span style="color: #38761d; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">How to
install and configure squid transparent proxy on Linux/Centos 5.x</span></b><b><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></b></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #0b5394; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Interface configuration:</span></b><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">WAN IP : eth0 –
x.x.x.x , LAN IP : eth1 -192.168.1.1 </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit;"><span style="color: #0b5394; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Hardware Requirements:</span><span style="mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Machine
configuration depends on users load. This proxy using for 0 - 250 users.</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Processor
: Xeon </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Ram
: 8 GB</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">OS
: Centos 5.8 ( you can use it Centos 5.x series )</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit;"><span style="color: #0b5394; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Packages Requirements:</span><span style="mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> DNS , squid , httpd (it’s
require for sarg log report)</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">How to install package:</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#yum install bind*
caching-nameserver*</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#yum
install squid*</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#yum
install httpd*</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Before
configuration DNS, please disable to selinux </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"># vi /etc/sysconfig/selinux</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">SELINUX=enforcing</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: #1f497d; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-themecolor: text2;">Change to</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">SELINUX=disabled</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Save
and exit </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#init
6 (restart system)</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Configure
DNS server : </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#vi
/etc/hosts</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">127.0.0.1
localhost.localdomain localhost<br />
::1 localhost6.localdomain6 localhost6<br />
172.17.0.250 xbc.net server</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#vi
/etc/sysconfig/network</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">NETWORKING=yes<br />
NETWORKING_IPV6=no<br />
HOSTNAME=xbc.net</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#hostname server.xbc.net</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#vi
/etc/resolv.conf</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">search
xbc.net<br />
nameserver 192.168.1.1 </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Make the entry in named.conf file</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#vi
/etc/named.conf</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">options
{</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">directory
“/var/named”;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">dump-file
“/var/named/data/cache_dump.db”;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">statistics-file
“/var/named/data/named_stats.txt”;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">memstatistics-file
“/var/named/data/named_mem_stats.txt”;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">query-source
port 53;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">};</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">zone
“” IN {</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">type
master;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">file
“xbc.net.forward”;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">allow-update
{ none; };</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">};</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">zone
“1.168.192.in-addr.arpa” IN {</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">type
master;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">file
“xbc.net.reverse”;</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">allow-update
{ none; };</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">};</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="color: #0b5394; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Create forward and
reverse zone for DNS</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#cd
/var/named</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#
cp localhost.zone xbc.net.reverse</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#
cp named.local xbc.net.reverse</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#vi
xbc.net.reverse</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">$TTL
86400</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">@
IN SOA xbc.net. root.xbc.net. (</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
42 ; serial (d. adams)</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
3H ; refresh</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
15M ; retry</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
1W ; expiry</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
1D
) ; minimum</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
IN
NS
xbc.net</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
IN
A
127.0.0.1
</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">xbc
IN
A
192.168.1.1</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#vi xbc.net.reverse</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">$TTL
86400</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">@
IN SOA xbc.net.
root.xbc.net. (</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
1997022700 ; Serial</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
28800 ; Refresh</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
14400 ; Retry</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
3600000 ; Expire</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
86400 ) ; Minimum</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">
IN NS xbc.net.</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">1
IN PTR xbc.net.</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="color: #0b5394; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Restart the named service
:</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#service
named restart</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#chkconfig
named on </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#bind-chroot-admin
-d</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#bind-chroot-admin
-e</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#dig
xbc.net</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#dig
-x 192.168.1.1</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: #0b5394; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Install and configure squid transparent proxy:</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#yum install squid*</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#vi
/etc/squid/squid.conf</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">hierarchy_stoplist
cgi-bin ?</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
QUERY urlpath_regex cgi-bin \?</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">no_cache
deny QUERY</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">cache_dir
ufs /var/spool/squid 2000 16 256</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">dns_nameservers
202.138.96.2 202.138.97.193 202.56.215.6 202.56.230.6</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#redirect_program
/usr/bin/squidguard -c /etc/squid/squidguard.conf</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">auth_param
basic children 5</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">auth_param
basic realm Squid proxy-caching web server</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">auth_param
basic credentialsttl 2 hours</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">auth_param
basic casesensitive off</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">refresh_pattern
^ftp:
1440 20% 10080</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">refresh_pattern
^gopher: 1440
0% 1440</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">refresh_pattern
. </span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
all src 0.0.0.0/0.0.0.0</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
manager proto cache_object</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
localhost src 127.0.0.1/255.255.255.255</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
to_localhost dst 127.0.0.0/8</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
SSL_ports port 443 563</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 5901</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 8080 #webcache</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 2323 #tomcat</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 1023 #tomcat</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 8180 #tomcat</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 80 # http</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 20 # ftp</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 21 # ftp</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 22 # ssh</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 443 563 # https, snews</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 1494 #ctx</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 2598 #ctx</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 563 # https, snews</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 70 #
gopher</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 210 # wais</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 1025-65535 # unregistered ports</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 280 # http-mgmt</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 488 # gss-http</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 591 # filemaker</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 777 # multiling
http</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 25 #smtp</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 110 #smtp</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
Safe_ports port 8443 #bax</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
CONNECT method CONNECT</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
allow manager localhost</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
deny manager</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
deny !Safe_ports</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
deny CONNECT !SSL_ports</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
utsav_network src 192.168.1.0/24</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
fullaccess arp 38:60:77:60:6F:33</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
allow fullaccess</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
keybaord url_regex -i proxy gambling hacking ringtones sports spyware
virusinfected warez whitelist thepiratebay orkut movie movies softonic torrent
tor-browser audlts antispyware artnudes ultrasurf cric cricket crick cricinfo
zapak nimbuzz music olimpic olimpics olympic olympics sex sexy pron songs song
cybermediadice .orkut.* /orkut .orkut .orkut* baaja</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
deny keybaord</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
limitedaccess arp 20:CF:40:EA:E4:DF</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
allow limitedaccess</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
ravi arp E0:69:97:AB:D6:6E</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
allow ravi</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">acl
youtube url_regex -i youtube .mp3 .mp4 .aac .flv .m4a .swf</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
deny youtube</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
allow utsav_network</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_access
allow localhost</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">icp_access
allow all</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">http_port
3128 transparent</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">hierarchy_stoplist
cgi-bin ?</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">cache_mem
1024 MB</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">maximum_object_size_in_memory
100 KB</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">minimum_object_size
0 KB</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">maximum_object_size
4096 KB</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">cache_swap_low
90</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">cache_swap_high
95</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">access_log
/var/log/squid/access.log squid</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">coredump_dir
/var/spool/squid</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#service squid restart</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#chkconfig
squid on</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#squid
-z</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="color: #0b5394; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Next step work with firewall :</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">flush
all rules of iptabes for transparent mode</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-F</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-t nat -F</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-t mangle -F</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">now
delete this chanis bye</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-X</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-t nat -X</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-t mangle -X</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">now
time to save iptables so type</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">service
iptables save</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">service
iptables restart</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Now
all rules and chains will clear !</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">check
it by /etc/sysconfig/iptables which has all defaults rules set to accept.</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">now
/etc/rc.d/rc.local</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">and
insert line</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">echo
” 1 “> /proc/sys/net/ipv4/ip_forward</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">and
then save and close.</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">now
assuming that your internet interface is eth0 then type :</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">iptables
-t nat -A POSTROUTING -o eth0 -j MASQUERADE</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">service
iptables save</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">service
iptables restart</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span style="font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">#init
6 (reboot machine)</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt;">
<span style="color: #0b5394; font-family: inherit; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Congratulation you have
successfully configured Squid Transparent proxy ,</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<span style="font-family: inherit;"></span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 6pt;">
<span style="font-family: inherit;"><b style="mso-bidi-font-weight: normal;"><span style="color: red; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Note :</span></b><span style="mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> <span style="color: #002060;">Don’t have
require put proxy ip in client machine</span>.</span><span style="mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></span></div>
</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-72706502616672821152013-09-27T02:24:00.001-07:002013-09-27T02:24:38.953-07:00How to Apache Tomcat Intigration with mod_jk on Linux/Centos<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Calibri;">httpd-devel (provides /usr/sbin/apxs )<br />
apr-devel (provides the appropriate include files) <br />
apr (required by apr-devel) <br />
apr-util-devel (required by httpd-devel) <br />
apr-util (required by apr-util)</span><br />
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: Calibri;">#yum install
httpd-devel apr-devel apr apr-util-devel apr-util </span></div>
<span style="font-family: Calibri;">#cd /opt/</span><br />
<span style="font-family: Calibri;"></span><br />
<span style="font-family: Calibri;">Download connector:</span><br />
<span style="font-family: Calibri;"> <a href="http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.37-src.tar.gz">http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.37-src.tar.gz</a></span><br />
<span style="font-family: Calibri;">#tar -zxvf tomcat-connectors-1.2.37-src.tar.gz</span><br />
<span style="font-family: Calibri;">#cd tomcat-connectors-1.2.37-src/native/</span><br />
<span style="font-family: Calibri;">#which apxs (if not getting any output please install gcc)</span><br />
<br />
<span style="font-family: Calibri;"><span style="mso-spacerun: yes;">#</span>yum install gcc gcc-cpp gcc-c++</span><br />
<span style="font-family: "Courier New"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";">#which apxs<o:p></o:p></span><br />
<span style="font-family: "Courier New"; font-size: 12pt; mso-fareast-font-family: "Times New Roman";">/usr/sbin/apxs<o:p></o:p></span><br />
<span style="font-family: Calibri;"><span style="mso-spacerun: yes;">#</span>./configure --with-apxs=/usr/sbin/apxs
--enable-api-compatibility</span><br />
<span style="font-family: Calibri;"><span style="mso-spacerun: yes;"> </span>#find / -name mod_jk.so (if you got mod_jk.so , it's fine)</span><br />
<span style="font-family: Calibri;"><span style="mso-spacerun: yes;">#</span>make</span><br />
#<span style="font-family: Calibri;">make install</span><br />
</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-62856061584080874182013-09-26T22:05:00.003-07:002013-09-26T22:05:36.289-07:00make: Nothing to be done for `all'<div dir="ltr" style="text-align: left;" trbidi="on">
<strong><span style="color: #cc0000;"><span style="color: #274e13;">If you are facing make running error on Linux/Centos please follow below step</span>.</span></strong><br />
<strong><span style="color: #cc0000;"></span></strong><br />
<strong><span style="color: #cc0000;">ERROR:</span></strong><br />[root@locahost sarg-2.3.1]# make<br />make: Nothing to be done for `all'.<br />
<strong><span style="color: #0b5394;">Solution :</span></strong><br />[root@locahost sarg-2.3.1]# make clean<br />make -C po clean<br />make[1]: Entering directory `/opt/sarg-2.3.1/po'<br />rm -f *.insert-header<br />rm -f remove-potcdate.sed<br />rm -f stamp-poT<br />rm -f core core.* sarg.po sarg.1po sarg.2po *.new.po<br />rm -fr *.o<br />make[1]: Leaving directory `/opt/sarg-2.3.1/po'<br />rm -f sarg *.o core<br />
[root@locahost sarg-2.3.1]# make distclean<br />make -C po clean<br />make[1]: Entering directory `/opt/sarg-2.3.1/po'<br />rm -f *.insert-header<br />rm -f remove-potcdate.sed<br />rm -f stamp-poT<br />rm -f core core.* sarg.po sarg.1po sarg.2po *.new.po<br />rm -fr *.o<br />make[1]: Leaving directory `/opt/sarg-2.3.1/po'<br />rm -f sarg *.o core<br />rm -f Makefile config.status config.cache config.log<br />
<br />
After completed this task please run make command:<br />
[root@locahost sarg-2.3.1]# make</div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0tag:blogger.com,1999:blog-6503896291891797245.post-12038271520643615052013-07-25T00:31:00.001-07:002013-07-25T00:31:11.103-07:00Working with screen in linux<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Screen : most useful feature available in Linux for run command from remote end user.<br />
without interrupting you command would be run backend.<br />
<br />
Install screen in Linux :<br />
<br />
#yum install screen<br />
<br />
Work with screen :<br />
Enter in screen<br />#screen<br />Come out from screen<br />Ctrl+AD<br />List screen id :<br />#screen -RD<br />Enter in screen( if multiple screen running)<br />#screen -RD screen_id<br />
Enter in screen (if single screen running)<br />#screen -RD </div>
Best thermosteel bottle in reasonable pricehttp://www.blogger.com/profile/15389929006036510244noreply@blogger.com0