Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems using ssh and voip
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon Mar 01, 2010 11:02 am    Post subject: problems using ssh and voip Reply with quote

Hi,

I have got a working remote desktop link to DISPLAY:0 on a remote ubuntu box and have managed to get IHU voip running on both systems and working. Now I want to try to tunnel it.

I set local port forwarding but when I restart IHU in a different terminal it just locks up if that port is blocked on the firewall. This is then unlocked if I open the port. So clearly it is not seeing the port as forwarded via ssh.

Code:
localterm1# ssh -L  1794:localhost:1794 remote.dyndns.info

localterm2# ihu


yet from the ssh FAQ's irc example this would seem correct.
http://www.openssh.com/faq.html#2.11
[EDIT correcting link]

What am I missing?

TIA, Gentree. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu Mar 04, 2010 11:24 am    Post subject: Reply with quote

I don't understand this problem too much.

vnc is working fine through ssh and I just tested the irc example above and that works too.

Is IHU not using the ports correctly that they can't be redirected ?

:?
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Fri Mar 05, 2010 2:58 am    Post subject: Reply with quote

Verify that you configured IHU to use the local port forward. You invoked it without arguments, so unless some configuration file told it to use localhost, it probably tried to go direct.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Mar 05, 2010 8:24 am    Post subject: Reply with quote

Hu wrote:
Verify that you configured IHU to use the local port forward. You invoked it without arguments, so unless some configuration file told it to use localhost, it probably tried to go direct.


Do you have ANY information of how to configure it ? The only doc I can find is the man page which basically just explains the fairly obvious GUI interface.

ihu --help refers to a configuration file option but no explaination of what you may put in it or what other command line options are available.

Much of my problem comes from a lack of proper documentation.

What arguments can I supply to set it for local port forwarding?

If I set a secure link to forward 1794 then start IHU it says it cannot listen on that port. That must be the local port it's trying to listen on since it is not trying to connect at that stage.

Is there something I'm misunderstanding?

thx 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri Mar 05, 2010 8:43 am    Post subject: Reply with quote

Using netcat I can verify the link via ssh having blocked the port in the firewall.

Code:
root@remote:~# nc -l -p 1794

Code:
root@gentoo#nc localhost  1794


I can see what I type being echoed in both directions.

I can set up one way ssh on this forwarding by calling localhost on gentoo end since ihu is caller and does not need to listen. But I can't do this on both ends because at least one needs to listen and it can't be set to "wait for calls" when the port is in use.

Again , if I start IHU it says the it "can't listen on TCP port 1794 (already in use?)" and I get a command line message:
Code:
QServerSocket: failed to bind or listen to the socket


Is the program trying to get exclusive usage of the socket in a way that is incompatible with ssh ??
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Sat Mar 06, 2010 3:02 am    Post subject: Reply with quote

Gentree wrote:
Do you have ANY information of how to configure it ?
No. This thread is the first I have heard of this program.
Gentree wrote:
Again , if I start IHU it says the it "can't listen on TCP port 1794 (already in use?)" and I get a command line message:
Code:
QServerSocket: failed to bind or listen to the socket


Is the program trying to get exclusive usage of the socket in a way that is incompatible with ssh ??
Yes. You cannot have two unrelated programs bind the same socket at the same time.

You might get this to work:

A$ ihu -listen 1794
B$ ssh -L 1795:localhost:1794 A
B$ ihu -connect 1795

I do not know if that is the right invocation, but it should show the idea.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Mar 06, 2010 10:56 am    Post subject: Reply with quote

Thanks for you help. I try out that suggestion. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum