LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-07-2008, 03:35 AM   #1
horacioemilio
Member
 
Registered: Dec 2007
Posts: 61

Rep: Reputation: 15
Connect from home to a computer inside an "external" LAN using port forwarding


Hi,

at work we have a LAN, isolated from external but from a ssh proxy.

At work I use at my computer some program which for license reasons connects to a license server on another computer through port 1775.

From home, it does not work. From home I can only connect to a "ssh proxy" machine through port 24. Then and through ssh, I can connect to the rest of machines.

I heard about ssh port forwarding. So I wonder if this could be applied in my case, so I could connect from home to the licenser server, port 1775, in a machine which is inside work's LAN.



Thanks in advance.
 
Old 03-07-2008, 03:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
this has nothing at all to do with programming. moved to Linux - Networking. please try to post in the right forum in future. thanks.

ssh tunneling may be of use to you, but only if you can specify the ip of the "remote" server. by default you would need to change it from the real ip to 127.0.0.1:1755, which ssh can then intercept an throw at the real box at the other end. if you can't change it then there is a possibility of use an iptables rule to do a dnat to point it back at yourself, but that's going to get messy.

so for the basic ssh tunnelling you'd be doing

sshd -L 1755:192.168.12.34:1755 user@remote.ssh.server.com

Last edited by acid_kewpie; 03-07-2008 at 03:39 AM.
 
  


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
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
KDE - "Home" and "My Computer" Icons Missing rrrssssss Fedora 7 07-19-2007 05:08 PM
IPcop, port forwarding, "network" lothario Linux - Networking 2 03-17-2007 08:30 PM
How can I "see" a computer inside my LAN from outside - i.e. from the internet? Thoddy Linux - Networking 6 01-28-2004 08:19 AM
Howto connect to my Linksys LAN withLinksys pcmcia 10/100T "etherfast" wolfzAz Linux - Software 3 12-24-2001 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:40 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
Open Source Consulting | Domain Registration