Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-03-2004, 08:14 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 5
Rep:
|
SSH Tunnel not working... "Administratively Probihited..."
I'm trying to access some stuff behind a router, and the only access I have is port 22 and 23. I really need to open up ports, but if you have ever configured a linksys or smc router with links you are missing a lot of fun (not to mention aggravation). I want to be able to connect to port 4000 and have it forward remotely through the router to the router. My command line at the moment looks like:
ssh -2 -p 22 -l root -R 20000:192.168.2.1:80 -n remote.box
I also tried ssh tunneling to a local port:
ssh -L 16000:remote.box:80 remote.box
And then running netcat to tunnel the connections to the router on the other side, but alas... when I did that I got the following message:
debug1: channel 2: net [direct-tcpip]
channel 2: open failed: administratively prohibited: open failed
debug1: channel 2: free: direct-tcpip: listening port 16000 for remote.box port 2000, connect from 127.0.0.1 port 32807, nchannels 3
I am almost thinking there is a configuration error or something, but I have never had a problem port forwarding before. Any help is greatly appreciated.
|
|
|
01-03-2004, 12:51 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I'm not sure why you are using net cat and not just ssh. Can you clarify a bit?
|
|
|
01-03-2004, 01:04 PM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 5
Original Poster
Rep:
|
I was just experimenting... trying to get it to work. I hadn't messed with it using the -R command line option..
|
|
|
01-03-2004, 01:25 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Ok - If it is as I think, you can do it without netcat at all - am I right with the following:
Code:
_____ ________ _________ ______
| | | | | | | |
| You |---|Router 1|--{Internet}--| Router2 |---|Server|
|_____| |________| |_________| |______|
You want to ssh to linux router 2 which has the public IP and connect to port 80 on Server (192.168.2.1). Then when you connect to http://lcoalhost:4000 you get the web page from Server?
|
|
|
All times are GMT -5. The time now is 02:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|