Help with routing problems ?

12 views
Skip to first unread message

John Gentilin

unread,
Oct 8, 2010, 12:26:10 PM10/8/10
to iphone-socks-proxy
I almost have this working.. I created the network and the phone
connects. If I leave it as DHCP, both the phone and Mac fall back to a
"unknown" 168 address and I have also tried to manually set to an
10.0.0.x address.. In either case, I can telnet from my mac to the
SOCKS server on the phone and I can ping the phone, but when I
configure either the browser or the network config proxy to point to
the phone, it does not seem to route packets to the phone because the
connection count is still 0.. Note: if I telnet to the phone the
connection count goes to 1.. Also I can't resolve DNS names even if
add in a public DNS IP such as 8.8.8.8.. How should TCP/IP and DNS be
configured for computer to computer networking ??

-John Gentilin

udibr

unread,
Oct 8, 2010, 6:14:05 PM10/8/10
to iphone-socks-proxy
You don't need to set static IP, the 168 address is good enough.
Did you set the port of the SOCKS proxy? Usually this is 20000 but
sometimes it get a different value (like 30000) so you have to check
and enter the correct port on your laptop.
This can happen if another (stuck) copy of the App is running on your
iPhone, so after restarting your iPhone this should not happen.

As for DNS, you dont need to configure it because it is part of the
SOCKS protocol. Every time your browser opens a connection, it sends
the host name to the TCP layer of your laptop. At this point the SOCKS
configuration on your laptop takes over and sends the name to the
iphone. The SOCKS proxy on the iphone takes the host name and uses it
to open the outbound connection over 3G.

In theory you can configure your laptop DNS client to use SOCKS, but
currently the iPhone App does not support UDP (which is used by DNS)
so this will not work.

John Gentilin

unread,
Oct 9, 2010, 6:05:28 PM10/9/10
to iphone-socks-proxy
I had the port right, from the my laptop (macbook pro) I could ping
and telnet
to the SOCKS server on the phone.. but I could not ping any server on
the
net. It was almost like the system SOCKS proxy, the one I set in
preferences
was not having an effect.. When I set up the proxy info in FF, it
seemed like
it wanted to work, I could see data flow on the phone, but only a few
1000
bytes, then it gave up.. I think it was DNS related.

I ended up installing http://www.proxifier.com, and then most
everything
works, FireFox, OpenVPN, Adium, Thunderbird..Oddly anything SSH
over OpenVPN fails, I see a stream error on the phone and the session
terminates. The config is: iphone-socks-proxy + proxifier + OpenVPN..
then I ssh to a server routed through OpenVPN with Terminal and it
fails,
but if I ssh to a different host not routed through OpenVPN, it's
fine.

Now that I have it running, its great.

Thank you
-John G

udibr

unread,
Oct 9, 2010, 11:00:06 PM10/9/10
to iphone-socks-proxy
I think all the problems you described are because the SOCKS
implementation of the App only supports TCP connections.
ping is not supposed to work because it does not use TCP.
I am guessing that OpenVPN requires a working DNS which also does not
use TCP.

On Oct 9, 6:05 pm, John Gentilin <gent...@gmail.com> wrote:
> I had the port right, from the my laptop (macbook pro) I could ping
> and telnet
> to the SOCKS server on the phone.. but I could not ping any server on
> the
> net. It was almost like the system SOCKS proxy, the one I set in
> preferences
> was not having an effect.. When I set up the proxy info in FF, it
> seemed like
> it wanted to work, I could see data flow on the phone, but only a few
> 1000
> bytes, then it gave up.. I think it was DNS related.
>
> I ended up installinghttp://www.proxifier.com, and then most
Reply all
Reply to author
Forward
0 new messages