Re: bind: Can't assign requested address using ssh (or anything else) -- resolution

2008-01-22 Thread perlcat
> > $ ssh -X -N -L 127.0.0.3:13390:192.168.1.44:3390 [EMAIL PROTECTED]
> > [EMAIL PROTECTED]'s password:
> > bind: Can't assign requested address
> > channel_setup_fwd_listener: cannot listen to port: 13390
> > Could not request local forwarding.
>
> Ofcourse it fails, you are trying to bind to address 127.0.0.3,
> however there is no such address assigned to a local network
> interface. Either:
>
>   You don't explain what this 127.0.0.3 is.

This does it.
> 2) ifconfig lo0 add 127.3/32

Thanks for responding!

The vpn software I need to use requires me to configure and bind a VPN  
connection from 127.0.0.x:port to the loopback. It is a handy way of grabbing 
an entirely unique IP that doesn't collide with whatever network you're on. 
Of course, it probably isn't the best idea if a bunch of different apps start 
to pull stuff like this -- but I wasn't the brainiac that came up with this 
idea. Anyway, it seems to be a fairly common way of doing this, so I'm 
explaining in detail to benefit future searches.

Some methods (SSH) allow me to manually select the IP/port, so for my example 
I use it. Others (Juniper Networks) just go and pick the IP for me, and can 
assign any number of connections depending upon configuration. In a Windows 
world, since there're no controls and stupid things are allowed to happen, 
the IP address/port assignment is done on the fly, and you then have to view 
the active VPN connections to figure out what IP address/port are in use. 
With a real OS, privileged things like this need to be done by a privileged 
user before the client can assign to it.

Since they don't change without human intervention (the number is permanent 
based upon the order they load -- 127.2, 127.3, etc.) and are assigned in a 
logical fashion, I should be able to bind the new addresses that it will use 
to lo0 and it should Just Work. And it does. tsclient can now load and get me 
onto the Windows Server I need to control. It's a hollow victory -- I feel so 
*dirty* when I work with Windows, but I have to if I want to get paid...

The Juniper Network client info:
===setup information
RDP Direct option:
Remote Server: 
Client Port: 33890
Server Port: 3389

==
Restarted the Secure 
Application manager.

=error info===
In the Secure Application Manager Window, when I click on the Details Tab.
I see the application I added with an error: cannot bind to the port 33890.

after ifconfig==
Now it works.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: bind: Can't assign requested address using ssh (or anything else)

2008-01-22 Thread Nikos Vassiliadis
On Monday 21 January 2008 22:00:33 perlcat wrote:
> Trying to access a vpn using ssh on 6.2 - STABLE. Haven't found an
> answer anywhere, and so I must be totally missing the right questions to
> ask or configurations to look at.
>
> This problem is consistent regardless of port chosen or access method. I
> can duplicate at will with ssh. Here's the command that fails:
>
> $ ssh -X -N -L 127.0.0.3:13390:192.168.1.44:3390 [EMAIL PROTECTED]
> [EMAIL PROTECTED]'s password:
> bind: Can't assign requested address
> channel_setup_fwd_listener: cannot listen to port: 13390
> Could not request local forwarding.

Ofcourse it fails, you are trying to bind to address 127.0.0.3,
however there is no such address assigned to a local network
interface. Either:

1) change 127.0.0.3 to 127.0.0.1
You don't explain what this 127.0.0.3 is.
2) ifconfig lo0 add 127.3/32

HTH, Nikos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


bind: Can't assign requested address using ssh (or anything else)

2008-01-21 Thread perlcat
Trying to access a vpn using ssh on 6.2 - STABLE. Haven't found an answer 
anywhere, and so I must be totally missing the right questions to ask or 
configurations to look at.

This problem is consistent regardless of port chosen or access method. I can 
duplicate at will with ssh. Here's the command that fails:

$ ssh -X -N -L 127.0.0.3:13390:192.168.1.44:3390 [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
bind: Can't assign requested address
channel_setup_fwd_listener: cannot listen to port: 13390
Could not request local forwarding.

I know that it can be done -- the guy next to me is working using Linux, but 
his answer to this issue was to edit the /etc/network/interfaces file. He 
figures that I didn't  have one or don't have the loopback started.
(his interfaces file):
~$ more /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0


Here's my config info:
==
ifconfig output:
smedley# ifconfig
fwe0: flags=108802 mtu 1500
options=8
ether 02:e0:b8:02:9c:8e
ch 1 dma -1
lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
ath0: flags=8843 mtu 1500
inet 72.37.126.77 netmask 0xff00 broadcast 72.37.126.255
ether 00:13:f7:35:39:5e
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/18Mbps)
status: associated
ssid UPRR_X channel 8 bssid 00:0f:90:7b:60:00
authmode OPEN privacy OFF txpowmax 36 bmiss 7 protmode CTS burst
bintval 100
==
rc.conf:
hostname="smedley.alltel.net"
ifconfig_ath0="DHCP"
inetd_enable="YES"
keymap="us.iso"
moused_enable="YES"
linux_enable="YES"
sshd_enable="YES"
tcp_extensions="YES"
usbd_enable="YES"
nfs_client_enable="YES"
cupsd_enable="YES"
smartd_enable="YES"
==

Maybe I need to get rid if the inet6 for the loopback?

Thanks!

Tyson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


bind: Can't assign requested address using ssh (or anything else)

2008-01-18 Thread perlcat
Trying to access a vpn using ssh on 6.2 - STABLE. Haven't found an answer 
anywhere, and so I must be totally missing the right questions to ask or 
configurations to look at.

This problem is consistent regardless of port chosen or access method. I can 
duplicate at will with ssh. Here's the command that fails:

$ ssh -X -N -L 127.0.0.3:13390:192.168.1.44:3390 [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
bind: Can't assign requested address
channel_setup_fwd_listener: cannot listen to port: 13390
Could not request local forwarding.

I know that it can be done -- the guy next to me is working using Linux, but 
his answer to this issue was to edit the /etc/network/interfaces file. He 
figures that I didn't  have one or don't have the loopback started.
(his interfaces file):
~$ more /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0


Here's my config info:
==
ifconfig output:
smedley# ifconfig
fwe0: flags=108802 mtu 1500
options=8
ether 02:e0:b8:02:9c:8e
ch 1 dma -1
lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
ath0: flags=8843 mtu 1500
inet 72.37.126.77 netmask 0xff00 broadcast 72.37.126.255
ether 00:13:f7:35:39:5e
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/18Mbps)
status: associated
ssid UPRR_X channel 8 bssid 00:0f:90:7b:60:00
authmode OPEN privacy OFF txpowmax 36 bmiss 7 protmode CTS burst
bintval 100
==
rc.conf:
hostname="smedley.alltel.net"
ifconfig_ath0="DHCP"
inetd_enable="YES"
keymap="us.iso"
moused_enable="YES"
linux_enable="YES"
sshd_enable="YES"
tcp_extensions="YES"
usbd_enable="YES"
nfs_client_enable="YES"
cupsd_enable="YES"
smartd_enable="YES"
==

Maybe I need to get rid if the inet6 for the loopback?

Thanks!

Tyson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"