LinuxQuestions.org
Help answer threads with 0 replies.
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 12-14-2012, 11:13 AM   #1
PogMat
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
Ssh port fowording double firewall


Hi everyone,
I have a home pc (I'll call it desktop-pc) behind a firewalled router which maps standard ssh port 22 to the same port on desktop-pc. In my office I have my computer (office-pc, from now on) behind a sophisticated firewall system (say a gateway); however, using a gateway I can normally access to it (using ssh port 22).
Now I'm trying to have the stream coming from my desktop-pc webcam directly on office-pc, with an encrypted ssh tunnel. Let me explain in more detail -

1) I open vlc on desktop-pc and I start to broadcast the stream of my webcam on localhost:10000
2) On office-pc i type "ssh -L 9999:localhost:10000 user_on_desktop-pc@desktop-pc_IP"
3) On office-pc i type "vlc http://localhost:9999"

and I get a lot of errors:

[0x7fc2d4001398] access_http access debug: asking libproxy about url 'http://localhost:9999'
[0x7fc2d4001398] access_http access debug: libproxy suggest to use 'direct://'
[0x7fc2d4001398] access_http access debug: http: server='localhost' port=9999 file=''
[0x7fc2d4001398] main access debug: net: connecting to localhost port 9999
[0x7fc2d4001398] main access debug: connection succeeded (socket = 4)
[0x7fc2d4001398] access_http access error: failed to read answer
[0x7fc2d4001398] access_http access debug: switching to HTTP version 1.0
[0x7fc2d4001398] main access debug: net: connecting to localhost port 9999
[0x7fc2d4001398] main access debug: connection succeeded (socket = 4)
[0x7fc2d4001398] access_http access error: failed to read answer
[0x7fc2d4001398] main access debug: net: connecting to localhost port 9999
[0x7fc2d4001398] main access debug: connection succeeded (socket = 4)
[0x7fc2d4001398] access_mms access error: failed to read answer
[0x7fc2d4001398] main access debug: no access module matching "http" could be loaded
[0x7fc2d4001398] main access debug: TIMER module_need() : 191.539 ms - Total 191.539 ms / 1 intvls (Avg 191.539 ms)
[0x7fc2e0000b28] main input error: open of `http://localhost:9999' failed

Can someone help me?

Thanks a lot
PoggMatt

P.S.: I tried to do the same thing locally (on my home net) and all worked
 
Old 01-13-2013, 12:12 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
Quote:
Originally Posted by PogMat View Post
Code:
[0x7fc2d4001398] main access debug: connection succeeded (socket = 4)
[0x7fc2d4001398] access_http access error: failed to read answer
[0x7fc2d4001398] main access debug: connection succeeded (socket = 4)
[0x7fc2d4001398] access_http access error: failed to read answer
[0x7fc2d4001398] main access debug: connection succeeded (socket = 4)
[0x7fc2d4001398] access_mms access error: failed to read answer
So it tried two access methods but the answer (if any) didn't match either HTTP or MMS. I'd try 'curl -v' or netcat on the URI and see what it actually returns and check the remote server logs for any clues.


//NTLB
 
  


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
how to SSH to work computer behind a firewall from home port forwarding not possible tkmsr Linux - Server 3 05-05-2010 12:20 PM
SSH Port Forwarding behind university firewall metallica1973 Linux - Networking 5 09-15-2008 12:31 AM
SSH port forwarding thru a NAT Firewall whoever Linux - Networking 3 07-29-2005 03:24 AM
SSH port forwarding through a firewall linuxLuser Linux - Networking 1 07-14-2005 11:29 PM
New firewall: ssh on port 80 not working anymore... norbi99 Linux - Security 4 10-09-2004 09:14 AM

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

All times are GMT -5. The time now is 12:44 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