Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Ubuntu 12.04 not working #33

Open
redmateria opened this issue Oct 3, 2014 · 8 comments
Open

Ubuntu 12.04 not working #33

redmateria opened this issue Oct 3, 2014 · 8 comments

Comments

@redmateria
Copy link

Hi,

Im using ubuntu 12.04, and when i try to use dispatch-proxy it doesnt combine my LAN and WLAN (neighbor wifi). My internet speed is 2Mbps and my neighbors wifi has 1 Mbps..

Really wanted this because connectify dispatch is too heavy for my system.

Thanks.

@alexkirsz
Copy link
Owner

What's the output of dispatch list? Have you tried using each connection separately with dispatch, to check if they work individually?

@redmateria
Copy link
Author

john@john:~$ dispatch list
lo
127.0.0.1 (IPv4, internal)
::1 (IPv6, internal)

eth0
192.168.10.2 (IPv4)
fe80::fe61:98ff:fe00:23c5 (IPv6)

wlan0
192.168.0.110 (IPv4)
fe80::227c:8fff:fe2e:577d (IPv6)

this is what I get in dispatch list.

@bramleksono
Copy link

As morhaus stated, try each interface. Use command :
dispatch start interface-address.

For your eth0:
dispatch start 192.168.10.2

and for wlan0:
dispatch start 192.168.0.110

Command above will start dispatch as socks proxy.
To test the connection, setup your browser to use socks proxy to localhost with port 1080 and see if you can connect to internet with that.

@redmateria
Copy link
Author

Oopsie sorry...

i tried it both, ethernet and wlan. But the wlan connection is not working. Im not sure if this is an issue with my hardware.

When Im using the ethernet it just works flawlessly. But in WLAN i have no luck..

There is also an error. You can check out the log
error [a4979e] serverConnection
Error: connect ETIMEDOUT
at errnoException (net.js:901:11)
at Object.afterConnect as oncomplete
error [ecf513] serverConnection
Error: connect ETIMEDOUT
at errnoException (net.js:901:11)
at Object.afterConnect as oncomplete
error [69ccc0] serverConnection
Error: connect ETIMEDOUT
at errnoException (net.js:901:11)
at Object.afterConnect as oncomplete
error [2108d7] serverConnection
Error: connect ETIMEDOUT
at errnoException (net.js:901:11)
at Object.afterConnect as oncomplete
error [094b64] serverConnection
Error: connect ETIMEDOUT
at errnoException (net.js:901:11)
at Object.afterConnect as oncomplete
error [8c257c] serverConnection
Error: connect ETIMEDOUT
at errnoException (net.js:901:11)
at Object.afterConnect as oncomplete

@tchlyah
Copy link

tchlyah commented Dec 16, 2014

I have the same problem! Did you find any solution?

@tchlyah
Copy link

tchlyah commented Dec 17, 2014

I finally could solve it. For this you need to configure routing table :

sudo echo 101 eth0 >> /etc/iproute2/rt_tables
sudo echo 101 wlan0 >> /etc/iproute2/rt_tables

Inserting routes in the eth0 table

ip route add 192.168.10.0/24 dev eth0 scope link table eth0
ip route add default via 192.168.10.1 dev eth0 table eth0 #(LAN router IP)

Inserting routes in the wlan0 table

ip route add 192.168.0.0/24 dev wlan0 scope link table wlan0
ip route add default via 192.168.0.1 dev wlan0 table wlan0 #(Wifi router IP)

ip rule is the source routing magic. This will redirect

packets coming from source "X" to table "eth0", "wlan0" or "default".

ip rule add from 192.168.1.0/24 table eth0
ip rule add from 192.168.2.0/24 table wlan0

@redmateria
Copy link
Author

Thank you for sharing your solution. But sadly I am now in Arch Linux, but I will try your solution in Arch.

@seonghobae
Copy link

I have same problem, but I can't solve it on Ubuntu 16.04.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants