LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-09-2010, 04:20 AM   #1
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
access ssh tunneled location trough lan


Hello,

I'm quite new to ssh tunneling but I now want to make one of my machines at home accessible to my lan network here.

I used the following command to make it available trough 127.0.0.1:5555(lo interface):
ssh -L 5555:192.168.0.15:80 me@xx.xx.xx.xx -N

now I want to make it available to eth0 on 192.168.1.40:5555 How do I do this?

-steven
 
Old 11-09-2010, 04:25 AM   #2
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Original Poster
Rep: Reputation: 25
if found a thread where someone wants to do the same but no-one seems to understand that he want's to do what I want.
http://www.linuxquestions.org/questi...etwork-595181/
to me it's mainly testing purposes and I can monitor the connection by hand.
 
Old 11-09-2010, 05:43 AM   #3
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Hi,

I hope I understood your question correctly, this should work

Code:
ssh -L 192.168.1.40:5555:192.168.0.15:80 me@xx.xx.xx.xx -N
 
1 members found this post helpful.
Old 11-09-2010, 07:14 AM   #4
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Original Poster
Rep: Reputation: 25
yes you did, I just found that out myself as well!

Glad it works now and it really does the job, lets hope others can use this thread as well!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
any software similar to ajaxterm to access a lan via SSH in a restricted firewall tkmsr Linux - Software 1 05-21-2010 10:30 PM
Getting X to work through tunneled VNC over SSH connection Brian5 Linux - Server 5 09-19-2007 05:08 AM
deny ssh access from lan with iptables NuLLiFiEd Linux - Security 10 12-01-2005 08:11 PM
SSH access from outside the LAN? jdp Linux - Newbie 1 05-02-2004 02:12 PM
Slow downloads trough LAN smoketoomuch Linux - Newbie 0 09-17-2002 07:31 AM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration