Connecting two computers

8 views
Skip to first unread message

chip53

unread,
Jun 26, 2009, 11:20:34 AM6/26/09
to acis.p2p.users
Hi all.

I cannot get two linux machines connected with socialvpn.

I think the problem is establishing the connection in facebook. Do I
have to log in both accounts via web interface? How is the localhost:
58888 platform supposed to be used. Will it display added friends or
an error why no friends could be found?

How can I allow for accessing localhost:58888 from other machines?
This would make testing life easier for me.

Thanks!

Renato Figueiredo

unread,
Jun 26, 2009, 11:31:47 AM6/26/09
to acisp2...@googlegroups.com
Some comments inlined:

On Fri, Jun 26, 2009 at 11:20 AM, chip53 <chi...@gmx.net> wrote:

Hi all.

I cannot get two linux machines connected with socialvpn.

I think the problem is establishing the connection in facebook. Do I
have to log in both accounts via web interface? How is the localhost:
58888 platform supposed to be used. Will it display added friends or
an error why no friends could be found?

Yes, you need to be logged in on both ends. You can authenticate using the same facebook account too, and have multiple VPN nodes for the same user. This helps testing. The localhost:58888 server expects you to authenticate to facebook, then it brings up the list of friends who are running or have run the socialvpn software. It doesn't show friends who haven't run the socialvpn software. 

How can I allow for accessing localhost:58888 from other machines?
This would make testing life easier for me.

I don't know if there's an easy way to do this in the code, but I guess it may be possible to set up port forwarding with iptables if you want to do some testing. Another idea is to run firefox within VNC on the remote end.

--rf
 


Thanks!





--
Dr. Renato J. Figueiredo
Associate Professor
ACIS Lab / Electrical and Computer Engineering
University of Florida
http://byron.acis.ufl.edu
ph: 352-392-6430

chip53

unread,
Jun 26, 2009, 12:09:43 PM6/26/09
to acis.p2p.users
On Jun 26, 5:31 pm, Renato Figueiredo <ren...@acis.ufl.edu> wrote:
> Some comments inlined:
>
> On Fri, Jun 26, 2009 at 11:20 AM, chip53 <chi...@gmx.net> wrote:
>
> Yes, you need to be logged in on both ends. You can authenticate using the
> same facebook account too, and have multiple VPN nodes for the same user.
> This helps testing. The localhost:58888 server expects you to authenticate
> to facebook, then it brings up the list of friends who are running or have
> run the socialvpn software. It doesn't show friends who haven't run the
> socialvpn software.

Strange error, sometimes I cannot reach www.facebook.com with
nameserver local-lan-ip and nameserver 172.31.0.1 in my /etc/
resolv.conf.

I log into www.facebook.com, start socialvpn and connect to local
58888. But my friend doesn't appear online. Only Pierre St Juste
appears two times offline and on the other machine one time online,
one offline.

I even try to login on "Login" and "Profile" tab in localhost:58888,
but nothing changes. That seems odd to me.

> I don't know if there's an easy way to do this in the code, but I guess it
> may be possible to set up port forwarding with iptables if you want to do
> some testing. Another idea is to run firefox within VNC on the remote end.

You're right. ACL for foreign hosts aren't so important.

Greets!

chip53

unread,
Jun 26, 2009, 12:34:01 PM6/26/09
to acis.p2p.users
This is what I get in my /etc/resolv.conf on the machine without
dnsmasq running (there is no dns server on this machine):
nameserver 172.31.0.1
nameserver 192.168.118.8
search ipop br.priv

172.31.0.1 is obviosly added by socialvpn. 192.168.118.8 is my own
nameserver on a different machine.

Search ipop is included by socialvpn, but I think it should be search
svpn, or the DNSSUFFIX should be changed?

Anyway, I definitely get DNS resolving problems on the machine without
dnsmasq, when the socialvpn nameserver is added.

Pierre St Juste

unread,
Jun 26, 2009, 1:16:52 PM6/26/09
to acisp2...@googlegroups.com
Comments inline.

On Fri, Jun 26, 2009 at 12:34 PM, chip53 <chi...@gmx.net> wrote:

This is what I get in my /etc/resolv.conf on the machine without
dnsmasq running (there is no dns server on this machine):
nameserver 172.31.0.1
nameserver 192.168.118.8
search ipop br.priv
 
DNS should work with this configuration. Because you have both nameservers in
the conf file. By the way, you are using experimental version of SocialVPN which
currently does not connect to Facebook. The stable version can be found at
http://socialvpn.wordpress.com. Also try pinging machines without DNS.
 

172.31.0.1 is obviosly added by socialvpn. 192.168.118.8 is my own
nameserver on a different machine.

Search ipop is included by socialvpn, but I think it should be search
svpn, or the DNSSUFFIX should be changed?

Anyway, I definitely get DNS resolving problems on the machine without
dnsmasq, when the socialvpn nameserver is added.





--
Pierre St Juste

chip53

unread,
Jun 26, 2009, 4:16:33 PM6/26/09
to acis.p2p.users
Currently I am experimenting with stable binary release. I can't get
it to work.

On the machine with dnsmasq it runs fine, but the other one without an
own nameserver cannot find any web servers when socialvpn running.

Routing is ok, name resolution except virtual names works, everything
seems to be ok. I don't have a clue what the reason could be.

While experimenting, about 2 hours I tried to get 64bit binary running
on my 32bit machine. Stupid me :-[)

Most likely some other such stupid mistake is keeping things from
working still.

On Jun 26, 7:16 pm, Pierre St Juste <pton...@gmail.com> wrote:
> Comments inline.
>
> On Fri, Jun 26, 2009 at 12:34 PM, chip53 <chi...@gmx.net> wrote:
>
> > This is what I get in my /etc/resolv.conf on the machine without
> > dnsmasq running (there is no dns server on this machine):
> > nameserver 172.31.0.1
> > nameserver 192.168.118.8
> > search ipop br.priv
>
> DNS should work with this configuration. Because you have both nameservers
> in
> the conf file. By the way, you are using experimental version of SocialVPN
> which
> currently does not connect to Facebook. The stable version can be found athttp://socialvpn.wordpress.com. Also try pinging machines without DNS.
Reply all
Reply to author
Forward
0 new messages