Wednesday, July 1, 2009
Thursday, June 18, 2009
Apache-Httunnel - Tunneling through port 80
<
<
If you are using suse OS, Download following binaries from yast
1 .make
2. gcc
1. Download gzip file ....Here
cd /downloaded/path
tar zxf httunnel.tar.gz
cd httunnel
if you have already have webserver running in your system,Please delete httpd-x.x.x.tar.gz.
bash script.sh and provide apxs path when prompted
Please provide a full path to 'apxs' executable: /usr/local/apache2/bin/apxs
2. Test the connectivity
telnet localhost 61616
Second Method:
If you are using suse OS , Download following binaries from yast
1 .make
2. gcc
1. Download apache webserver from below link (If you already have webserver please ignore it)
http://httpd.apache.org/
cd /downloaded/path and execute below commands
tar xzf httpd-x.x.x.tar.gz
cd httpd-x.x.x
./configure
make
make install
2. Download mod_perl-2.0.4 from below link
http://search.cpan.org/~gozer/
cd /downloaded/path and execute below commands
tar xzf mod_perl-2.0.4.tar.gz
cd mod_perl-2.0.4
perl Makefile.PL and provide appropriate values:
Please provide a full path to 'apxs' executable: /usr/local/apache2/bin/apxs
make
make install
3. Download File-FDpasser-0.09 from below link
http://search.cpan.org/~addi/
cd /downloaded/path and execute below commands
perl Makefile.pl
make
make install
5. Download File-FDkeeper-0.06 from the below link
http://search.cpan.org/~patl/
cd /downloaded/path and execute below commands
perl Makefile.pl
make
make install
6. Download Apache-HTTunnel-0.08 from below link
cd /downloaded/path and execute below commands
perl Makefile.pl
make
make install
Open the file Client/httunnel.conf in Apache-HTTunnel-0.08 directory and change the values as below
[local activemq]
local_port = 61616
url =http://example.com/
remote_host = localhost
remote_port = 61616
If you are behind proxy server include following line,
http_proxy=http://proxy server:port no
Delete dns section from the file,ie below 5 lines
[dns proxy]
local_port = 53
protocol = udp
url = http://localhost/httunnel
remote_host = dns
remote_port = 53
7. Start the client daemon:
/usr/bin/httunnel -d Apache-HTTunnel-0.08/Client/
8. Test the connectivity:
Saturday, November 22, 2008
What is Jumpstart?
Friday, November 21, 2008
How to read password from bash script.
read -p "Username: " uname
read -p "Password: " pass;
But normally the terminal will display all text that we enter in to it. So i got the output below.
Username: aneesh
Password: CAPSLOCK
I want to avoid password being displayed. So I modified the above script as below.
ead -p "Username: " uname
stty -echo
read -p "Password: " pass;
echo
stty echo
echo " The entered username and password are $uname and $pass"
Now it works fine..