Tuesday, March 20, 2007

SSH Dynamic and Reverse port forwarding

Dynamic Port Forwarding
Ok, i know some of you guys already know how to use Dynamic port forwarding and reverse port forwarding. For those who don't know, this is it. Dynamic port is very useful in this country. This country is blocking a lot of websites. So in order to bypass it, i use dynamic port forwarding. This will actually pass all traffic over the SSH tunnel, which is also secure because of encryption. But be prepared to experience slowness in speed. SOCKS5 must be an option when using Dynamic port forwarding. Below is a simple diagram where in the first diagram, a user connect straight to the internet. In the second diagram, all traffic will pass by a SSH tunnel and encrypted before reaching the destination.

User -------------> Internet

User --------> SSH tunnel ----------> Internet

The command to do so at the SSH server is: ssh -D 1080 user@remoteserver.com

Open a browser or any application which supports SOCKS5, enter the settings as shown below.



Close the browser and try to surf. There you go, all HTTP traffic is encrypted over a SSH tunnel. So if someone is sniffing the traffic, all he sees is gibberish encrypted text.


Reverse Port Forwarding

Reverse port forwarding is like a remote shell. This technique atually allows you bypass firewall rules. If a firewall is blocking inbound access on port 22(SSH), you can setup a port in the SSH server which is behind the firewall, and reconnect to it as and when you need it. This is known as Reverse port forwading.

On the SSH Server, type: ssh -R 1080:localhost:22 user@your-home-external-ip.com

When you reach home, you type this on your client: ssh -p 1080 user@localhost

36 comments:

YGN Ethical Hacker Group said...

I find it useful.

Anonymous said...

thank you.

hackathology

Anonymous said...

Thanks for finally writing about > "SSH Dynamic and Reverse port forwarding" < Liked it!

Also visit my web blog - Juegos Online

Anonymous said...

When I originally commented I clicked the "Notify me when new comments are added"
checkbox and now each time a comment is added I get
several e-mails with the same comment. Is there any way you can remove me from
that service? Thanks a lot!

My website: jocuri noi online gratis

Anonymous said...

With havin so much written content do you ever run into any issues of plagorism or copyright violation?
My website has a lot of unique content I've either authored myself or outsourced but it appears a lot of it is popping it up all over the internet without my permission. Do you know any solutions to help protect against content from being ripped off? I'd genuinely appreciate it.


My homepage: bancuri alese

Anonymous said...

hi JOJO kindly send me a video on the best ways to make pcb making use of laser printer and
ferric chloride.

Here is my webpage eladversariocubano.wordpress.com

Anonymous said...

These are truly enormous ideas in on the topic of blogging.
You have touched some pleasant points here. Any way keep up wrinting.


Stop by my web-site ... jocuri gratis cu masini

Anonymous said...

Just desire to say your article is as surprising.

The clearness to your post is just excellent and i can
suppose you're an expert on this subject. Fine together with your permission allow me to grab your RSS feed to keep up to date with impending post. Thank you one million and please carry on the gratifying work.

Here is my web blog :: free nude chat

Anonymous said...

I enjoy reading a post that will make men and women think.
Also, thanks for permitting me to comment!

my blog Juegos Gratis

Anonymous said...

You actually make it appear so easy with your
presentation but I to find this topic to
be really something which I believe I'd by no means understand. It seems too complex and extremely vast for me. I'm having a look ahead to your
subsequent submit, I'll try to get the dangle of it!

my weblog; jocuri online masini

Anonymous said...

I like the helpful information you provide to your articles.
I'll bookmark your blog and test once more right here frequently. I'm moderately sure I'll be told lots of new stuff right right here! Good luck for the next!

Also visit my page; Juegos

Anonymous said...

It's possible, although I have actually just had it accompany black. It could be that the cyan toner cartridge is defective, it may be stiff.

Feel free to visit my page :: xerox Phaser 8560 toner

Anonymous said...

This is a very good tip especially to those new to the blogosphere.

Simple but very precise information… Appreciate your sharing this one.
A must read article!

Visit my page; xerox 8560 black

Anonymous said...

Sir, pls deliver that video clip to my e-mail I.

D. It will certainly be assistance ful 2 make pcb
simple. Thankyou.

Stop by my blog post; lang.Db.ac.kr

Anonymous said...

This is a great guide regarding Postscript limitcheck errors.
I do have one concern, however. You state not to publish using
a printer line. Could you clarify your explanations?


Feel free to visit my web page :: xerox phaser 8560 ink

Anonymous said...

how could i do this on a mac.

My web site xerox phaser 8560 maintenance kit

Anonymous said...

It's really a nice and helpful piece of information. I'm
happy that you just shared this helpful info
with us. Please stay us up to date like
this. Thanks for sharing.

Visit my weblog - xerox 8560 driver

Anonymous said...

Pls for your kindness send me the video hint of
making pcb so easy. Many thanks.

My site :: xerox phaser 8560 ink

Anonymous said...

Many thanks ... dealt with my Lexmark E210 on Windows 8 Pro.


Here is my site; xerox phaser 8560 ram error

Anonymous said...

Hі there! This іs my first comment here so I just wanted to give a quick shout οut and say I truly
enjoy reаding yοur posts. Can you suggest any otheг blogs/websites/forums that
deal with the same toρіcs? Many thankѕ!


My ρage :: sign up for facebook

Anonymous said...


Hey there Phil,.

Also visit my page :: xerox phaser 8560 ink sticks

Anonymous said...

It is appropriate time to make some plans for the
future and it's time to be happy. I've read this post and if I could I desire to suggest you some interesting things
or suggestions. Perhaps you could write next articles referring to this article.
I want to read more things about it!

Also visit my site: Buy LG 42LS5600 ()

Anonymous said...

of course like your web site however you need to check
the spelling on quite a few of your posts. Several of them are rife with
spelling issues and I find it very troublesome to inform the truth then
again I'll surely come again again.

Feel free to visit my web site :: how to get rid of acne

Anonymous said...

free version hp laser jet 1020.

my site: xerox phaser 8560 yellow ink (http://paboom.blogspot.co.uk)

Bushraah88 said...

Thank you so much for letting me express my feeling about your post.
You write every blog post so well. Keep the hard work going and good luck.
Hope to see such beneficial post ahead to.
One Machine Learning
One data science

Bushraah88 said...

your article is valuable for me and for others. Thanks for sharing your information!www.bexteranutrition

China Freight said...

I am grateful to this blog site providing special as well as useful understanding concerning this subject. Shipping from China to Amazon FBA

fatima said...

Customs Clearance agent Felixstowe
Customs Clearance agent Heathrow
Customs Clearance agent Birmingham
Customs broker UK - IMPORTANT
Freight Forwarder UK

fatima said...

Learn Quran Online
Online Quran Classes
Online Quran Reading
Online Quran Teaching
Online Quran Tutors

Mikel lee said...

It is very informative post thanks for sharing the information.
affordable Retail boxes
affordable Rigid boxes

Mikel lee said...

such a great post I like it very much to keep it up.
affordable Soap boxes
afforadable packaging boxes new jersey

Tory Brown said...

I appreciate your post thanks for sharing the information.
affordable printed Cell phone boxes
affordable custom Rigid boxes boxes

Tory Brown said...

It is very informative post thanks for sharing the information.
Rigid boxes box company
bulk custom made Cell phone boxes

Mary Davies said...

Take the competitive edge by using attractive favor boxes, while doing favor boxes business in the market. Interested? Contact IBEX Packaging for more details.

Unkown said...

Amazing! It&rsquo's really awesome article, I have got a much clear idea regarding this article. Visit my blog cigarette boxes.

Visitor said...

I always appreciate the quality content, Thanks to you for sharing such a post.