Community Forums

Home » Vuze Forums » Community Open Support


Thread: Bind to Local IP or Interface


Thread Locked This thread is locked - replies are not allowed.


This question is not answered.

Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 13 - Pages: 1 - Last Post: Dec 26, 2007 2:12 PM Last Post By: The 8472
Bhima

Posts: 8
Registered: 12/20/07
Bind to Local IP or Interface
Posted: Dec 20, 2007 11:35 AM
 
Click to report abuse...
I have subscribed to the Relakks VPN service but I am having trouble getting Azureus to use it with Mac OS 10.5.1 Leopard. I've tried a variety of combinations of the Bin to local IP address or interface (currently I have it set to ppp1). Also currently I have "Send All Traffic true VPN" set to true. (though I have tried all variations I can think off).

I am using the dashboard widget iStat pro to ascertain if data is flowing through the VPN. At this point I wonder, if it could be wrong...

Ideally I'd like just the Azueaus traffic to use ppp1 (or perhaps Skype) but I haven't got that far.

I am starting think that bind to local ip preference does not work, has anyone else had this experince?
Fishbowler


Posts: 2,223
Registered: 11/29/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 2:33 AM   in response to: Bhima in response to: Bhima
 
Click to report abuse...
As I understand VPN's, you're either connected to one or you're not. If some traffic is flowing over it, all of it will be.
Bhima

Posts: 8
Registered: 12/20/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 7:10 AM   in response to: Fishbowler in response to: Fishbowler
 
Click to report abuse...
This does not match my experience. Now I have Azureus set to use PPP1[0] and it is using PPP0 and I can't configure Safari or Mail and they are using PPP0.

This is exactly opposite of what I wanted.
The 8472

Posts: 2,169
Registered: 11/13/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 9:04 AM   in response to: Bhima in response to: Bhima
Helpful
Click to report abuse...
open the azureus console, enable logging if necessary, disable all but "nwman" and look for lines saying something like

Binding outgoing connection x.x.x.x:x to local IP address: /y.y.y.y

and paste those line(s) here
Bhima

Posts: 8
Registered: 12/20/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 9:59 AM   in response to: The 8472 in response to: The 8472
 
Click to report abuse...
OK:

18:51:11.212 0 nwman Binding outgoing connection [/98.207.xxx.xxx:60684] to local IP address: /83.233.182.xxx
18:51:11.482 0 nwman Binding outgoing connection [/99.237.xxx.xxx:51896] to local IP address: /83.233.182.xxx
18:51:11.668 0 nwman Binding outgoing connection [/62.30.xxx.xxx:51030] to local IP address: /83.233.182.xxx
18:51:11.808 0 nwman Binding outgoing connection [/218.xxx.xxx.11:44998] to local IP address: /83.233.182.xxx
18:51:14.850 0 nwman Binding outgoing connection [/202.xxx.xxx.3:24370] to local IP address: /83.233.182.xxx
18:51:17.890 0 nwman Binding outgoing connection [/218.xxx.xxx.3:31536] to local IP address: /83.233.182.xxx

That is my VPN IP address. So I think that the tool I am using to see what network port is being used could be broken and not Azureus.

I wonder what else I could use to look at this? My whole issue here is that my connection (with Azureus and Skype) was very unreliable, then I started using the VPN and things improved. Then the next time I used Azureus there had been an update to Azureus, Mac OS, and iSat pro and things went right back to the way they were.

Another thing that has not really changed is that most seeds & peers appear within the braces on the man screen and nearly none appear to the left outside the braces. My understanding is that I am connected to ones outside the braces and not to those inside the braces. I'd like to change that if I could.

The 8472

Posts: 2,169
Registered: 11/13/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 10:45 AM   in response to: Bhima in response to: Bhima
Helpful
Click to report abuse...
well, that log just checks the outgoing connections, it's possible that there are incoming connections established on the other interface (which would be a bug).

you should be able to check with netstat -an (on the commandline) or with tcpview from microsoft sysinternals.
Bhima

Posts: 8
Registered: 12/20/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 11:11 AM   in response to: The 8472 in response to: The 8472
 
Click to report abuse...
OK: Netstat shows whole blocks of connections using my regular PPPoE connection. (83.233.... being my VPN and 84.119.... being my PPPoE)

tcp4 0 1217 83.233.xxx.xxx.23570 74.12.xx.xxx.60030 FIN_WAIT_1
tcp4 0 0 83.233.xxx.xxx.63740 221.5.xxx.xx.22235 ESTABLISHED
tcp4 0 0 84.119.xx.xx.39604 a131-43.adsl.xxx.xxxx ESTABLISHED
tcp4 0 0 83.233.xxx.xxx.63739 athedsl-xxxxxx.h.xxx7 ESTABLISHED
tcp4 0 0 83.233.xxx.xxx.23570 cm3.gxxxxxxxx.maxo.2356 ESTABLISHED

This can not be correct as it persists whether I have "send all traffic over VPN" selected or not.
The 8472

Posts: 2,169
Registered: 11/13/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 11:17 AM   in response to: Bhima in response to: Bhima
Helpful
Click to report abuse...
i need the full netstat dump, including the LISTENING ports (that's what azureus is using for incoming connections), oh... and a screenshot of your advanced network settings tab would be nice too.
Bhima

Posts: 8
Registered: 12/20/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 12:15 PM   in response to: The 8472 in response to: The 8472
 
Click to report abuse...
OK here are a screenshot of Azureus Preferences in English and a Netstat output.
The 8472

Posts: 2,169
Registered: 11/13/07
Re: Bind to Local IP or Interface
Posted: Dec 21, 2007 3:20 PM   in response to: Bhima in response to: Bhima
Correct
Click to report abuse...
It looks like almost all connections being routed through the correct interface. Only 8 or so are on the wrong interface. I suspect that the listening port binding is not working properly.

btw, i need the output of netstat -a -n only that displays the listening ports.
Bhima

Posts: 8
Registered: 12/20/07
Re: Bind to Local IP or Interface
Posted: Dec 26, 2007 8:23 AM   in response to: The 8472 in response to: The 8472
 
Click to report abuse...
OK, I think you are right but I have no idea what to do about it, file a bug perhaps? Also I think the tool I was using doesn't correctly assign which data goes through which port. So I'll have to find another.

Attached is a netstat -a -n again with 84.119.xx.xxx being my PPPoE and 83.233.xxx.xx being my VPN.
The 8472

Posts: 2,169
Registered: 11/13/07
Re: Bind to Local IP or Interface
Posted: Dec 26, 2007 11:07 AM   in response to: Bhima in response to: Bhima
 
Click to report abuse...
tcp4 0 0 83.233.xxx.xx.23570 . LISTEN

assuming that 23570 is your listening port that means that azureus only accepts incoming connections to the 83.233... interface. Outgoing connections are also bound to the same interface as we've determined earlier through the logging console.

Btw, i can't spot a single incoming connection over the wrong interface. Is it possible that the erroneous connections stem from a time period where your VPN interface was down? even if it was just momentarily azureus would probably attempt to reconnect...

So... you might have to determine if those connections on the "wrong" interface actually belong to azureus (you can do that via +lsof -i+), if they belong to peer-peer connections (you can do that via the all peers view in azureus, sort by the IP column and then look for the peer's IP).
Bhima

Posts: 8
Registered: 12/20/07
Re: Bind to Local IP or Interface
Posted: Dec 26, 2007 12:11 PM   in response to: The 8472 in response to: The 8472
 
Click to report abuse...
What is confusing me is that I have downloaded 4 different network monitoring tools and none of them show me using my VPN.

Currently all I am doing is seeding. This doesn't show as being transferred through my VPN and I can't achieve the speeds I used to get. I see frequent "Connection reset by peer" messages in the log, so I thought that my ISP was sending them (hence the VPN).

I think some of the extraneous connections may have come from Skype. I subsequently turned it off before I do the netstat command

Also Is there some place where I can find a complete explanation of all the entries that appear in the log?

Edited by: Bhima on Dec 26, 2007 12:12 PM
The 8472

Posts: 2,169
Registered: 11/13/07
Re: Bind to Local IP or Interface
Posted: Dec 26, 2007 2:09 PM   in response to: Bhima in response to: Bhima
 
Click to report abuse...
azureus' log? no that's pretty much expert/developer information used for debugging and gets changed occasionally anyway.

By the way, anything that flows through your VPN will of course go through your normal link too (that is, encapsulated in VPN packets). So you might want to use ifconfig to see how much has been transfered, for rate-stats there are console tools like bwm-ng or bmon (you might have to download those though) that list how much has been transfered over an interface.

Legend
Master: 800 - 9999 pts
Expert: 400 - 799 pts
Advanced: 200 - 399 pts
Intermediate: 100 - 199 pts
Beginner: 50 - 99 pts
Newbie: 0 - 49 pts
Vuze Staff Member
Vuze Community Moderator
Helpful Answer (3 pts)
Correct Answer (5 pts)

Point your RSS reader here for a feed of the latest messages in all forums