LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-19-2016, 05:06 PM   #1
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Rep: Reputation: 19
Question Get acces to local network from outside.


Hi guys.

I have maybe a strange question, how can I get acces to a website that's only accesable from the linux server itself on another host?

so the situation.

I have 1 switch (managed) with a factory IP adress 192.168.1.1
and I have a server wich is connected to that switch, I can acces that server from outside (public) IP, the switch is not accesable from public, it does not have public IP, but from this same server I can acces it from commandline or web, for example like : telnet 192.168.1.1
or lynks 192.168.1.1
Now what I want to do is do a kind of a portmap sothat I can acces this switch from the public IP of the server on difrent port of course.
Years ago i used something like that, but forgot and dont know how to find it anymore.
I hope somebody can help.

any help / advise is much much aprisciated.

thanks in advance.
 
Old 02-19-2016, 07:12 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You can do it via a ssh tunnel. Is the remote computer running windows or linux?

ssh -L 8080:192.168.1.1:80 user@server

In your web browser use the URL localhost:8080

telnet is similar, change the port numbers and you can use the command

telnet localhost port to access the switch.
 
Old 02-19-2016, 07:25 PM   #3
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
My normal pc is Windows, and here I have a normal web browser wich is needed to do some things on that switch.

normally I have already telnet via linux server to the switch but the telnet is little limited. so I need to be able to login to it with a full option browser.
 
Old 02-19-2016, 07:30 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Very easy to configure putty to set up a ssh tunnel to the switch. Many examples on the web.
 
1 members found this post helpful.
Old 02-19-2016, 08:34 PM   #5
turalo
Member
 
Registered: Sep 2005
Location: NL
Distribution: linux, windows,
Posts: 115

Original Poster
Rep: Reputation: 19
Thumbs up Solved. Thanks

Quote:
Originally Posted by michaelk View Post
Very easy to configure putty to set up a ssh tunnel to the switch. Many examples on the web.

Very nice. thank you very much, indeed searched for ssh tunnel with putty, found it and it worked perfect.

thanks allot.
 
  


Reply



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
How to block any acces from Public IP and allow only local via VPN turalo Linux - Security 4 10-09-2014 01:17 PM
getting acces to a local network from the exterior rm22 Linux - Networking 1 02-04-2008 01:13 PM
can't acces local network webserver as user adibuta Slackware 4 01-13-2006 03:52 AM
Network acces via name not IP + Samba Geepak Linux - Newbie 2 02-08-2005 09:28 AM
Cannot acces internet but network Ok GGSpike Linux - Newbie 5 05-17-2004 08:58 AM

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

All times are GMT -5. The time now is 09:23 PM.

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