Archive

Archive for the ‘linux’ Category

How to SSH Tunneling in Windows and Linux

November 9th, 2009 sadegh No comments

If you ever wanted to ssh tunnel your traffic here is how to do that on Linux box or Windows box.

On Linux box then just enter the following line :

ssh -fND localhost:3443 ServerUName@Server

You gotta change ServerUName to Username and Server to the IP or the name of server you are logging into.

On Windows Box you need to download putty ( Download ) then Open it up

It doesn’t require any installation just double click on putty.exe after it opened up in the left menu select SSH in the “Preferred SSH protocol version” choose 2 and above it check the “Enable Compression”

Figure 1

Figure 1

Then click the plus sign beside SSH in left menu to expand it, then select “Tunnels” afterward in the right section in “Source port” enter for example 3443 and below the destination choose dynamic as in the below figure. ( Sorry in this figure I entered 9191 instead of 3443 but it doesnt matter you can enter whatever you want but you gotta change all the others 3443 as well if you change it)

Figure 2

Figure 2

Then hit “Add”, Now in forwarded lists you would see “D3443”.

Now scroll up the left menu and choose “Session” in the “Host Name” enter the IP Address or the host name and then click on “Open” button

Figure

Figure

Then it will ask your credential enter them.

Figure 4

Figure 4

So now in Firefox I go to Edit → Preferences → Advanced → Network → Settings → Choose Manual proxy configuration , Uncheck Use this proxy server for all protocols and clean HTTP proxy and its port Field and all the other fields then go to SOCKS Host and enter localhost into that field and in the port field enter 3443.

Figure 5

Figure 5

Then click on ok and close all the window ,

Now all the traffics in Firefox first go to your server and then from that server goes to outside world or to your Computer.

You can confirm that by going to ipchicken.com, You should see the IP Address of the server that you just set for tunneling not your own IP Address.

VirtualBox - Sharing

August 14th, 2009 sadegh 2 comments
VirtualBox

VirtualBox


VirtualBox OSE 2.1.4 comes along with Ubuntu jaunty jackalope.
Its a great virtualing solution but one part of it may bother you and that is Sharing.
Actually Sharing files & folders is not that much hard or annoying but sometimes it can be and it really bothered me.
I installed windows xp in virtual box easily and just wanted to share my folders with it. So under Devices menu I choosed Shared Folders and I added folder which I wanted to be shared but it did not work , after some googling I noticed that I should install Guest Addition ( its also an Item in Devices menu ) so I selected Install Guest Additions and It downloaded and asked me whether I want it to mount to my virtual machine and I just selected YUP.

Devices menu

Devices menu

But when I clicked on my cd drive on virtual machine it said that “windows cannot read from this disk the disk might be corrupted or it could be using a format that is not compatible with windows”
I googled more and more and it seemed that I am the only person on earth having this issue
in a thread in Ubuntu Forums one of the post contained the virtual box download link , I thought that I should get a new and clean version of virtual box and install it from scratch so I clicked on that link and suddenly instead of starting Kget firefox opened a page that contained a big forbidden message. Afterward I realized that because my ip address is from Iran and VirtualBox is a Sun product so they forbided me as an iranian to download their package , and more importantly I realized that windows was saying can not read the mounted disc because it was not actually a image of a disc but it was a html page that contained forbidden message coz when I click install guest addition it also try to download it from sun web site , instead of package it just download a forbidden web page.
Eventually I found a alternative link to download it and now it works great

ps : download Guest Addition 2.1.4 from here : http://www.dward.us/software/VBoxGuestAdditions_2.1.4.iso

Ubuntu ME edition

July 28th, 2009 sadegh No comments

I just bought a version of Ubuntu middle east edition
The first sign after installing , was the fact that you got a green color rather than decent brown color
Afterward , Beside the cursor you would see some Islamic terms , its really bothering and the worst part is that you cant change it , its a damn bug , the only workaround is to changing your visual effect to non.
I will write about it more later

——————————————————-
Okay Actually When I let Ubuntu to download its latest update everything works just great.