Closed didium closed 7 years ago
seems like everything is fine. do you have any notifications on the phone?
Yes it says SimpleRT is connected and there is a key symbol on the top.
nice. maybe the problem in configs. please show output of this commands after run simple_rt and connecting device:
ip a
ip r
sudo iptables -t nat -L
This is for ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether c8:1f:66:20:36:b7 brd ff:ff:ff:ff:ff:ff inet 10.0.13.142/24 brd 10.0.13.255 scope global dynamic enp2s0 valid_lft 679647sec preferred_lft 679647sec inet6 fe80::af54:d91:7ea7:c9b7/64 scope link valid_lft forever preferred_lft forever 10: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 500 link/none inet 10.10.10.1/30 scope global tun0 valid_lft forever preferred_lft forever
This is for ip r
default via 10.0.13.1 dev enp2s0 proto static metric 100 10.0.2.245 via 10.0.13.1 dev enp2s0 proto dhcp metric 100 10.0.13.0/24 dev enp2s0 proto kernel scope link src 10.0.13.142 metric 100 10.10.10.0/30 dev tun0 proto kernel scope link src 10.10.10.1 169.254.0.0/16 dev enp2s0 scope link metric 1000
This is for sudo iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 10.10.10.0/30 anywhere
MASQUERADE all -- 10.10.10.0/30 anywhere
MASQUERADE all -- 10.10.10.0/30 anywhere
MASQUERADE all -- 10.10.10.0/30 anywhere
MASQUERADE all -- 10.10.10.0/30 anywhere
MASQUERADE all -- 10.10.10.0/30 anywhere
as i mentioned in README, this util is just a proof-of-concept, not final product. u have to configure it for you system.
in u case, just edit file iface_up.sh this way:
if [ "$PLATFORM" = "linux" ]; then
CHANGE, IF NEEDED
LOCAL_INTERFACE="eth0"
if [ "$PLATFORM" = "linux" ]; then
CHANGE, IF NEEDED
LOCAL_INTERFACE="enp2s0" # this line
and try again. u have non-standart network interface name.
Excellent! It works now!
Thanks
No problem :) Have a fun.
Hi, Tx a lot for your soft, very usefull.
I have the same issue than didium, although my interface is eth0 ok. I cannot manage to get the network. The device connects, I have the simple-rt's screen asking for access, I have the notification "simple-rt connected" and the key icon, but I still have no network.
Phone side : asus zen 5 , android 4.4.2 Linux side : debian testing, " # uname -a Linux alvi 4.8.0-10.1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 4.8-14 (2016-11-21) x86_64 GNU/Linux
Log when running command : " # ./simple-rt starting network configuring: local interface: eth0 virtual interface: tun0 network: 10.1.1.0 address: 10.1.1.1 netmask: 24 nameserver: 8.8.8.8 tun0 interface configured! SimpleRT started! Kernel driver is not active! Device supports AOA 2.0! Sending identification to the device sending manufacturer: Konstantin Menyaev sending model: SimpleRT sending description: Simple Reverse Tethering sending version: 1.0 sending url: https://github.com/vvviperrr/SimpleRT sending serial number: 10.1.1.2,8.8.8.8 sending command: start accessory Accessory was inited successfully! Found accessory 18d1:2d00 accessory connected!
" % ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:26:22:08:45:9f brd ff:ff:ff:ff:ff:ff
inet 192.168.3.201/24 brd 192.168.3.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::226:22ff:fe08:459f/64 scope link
valid_lft forever preferred_lft forever
3: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
6: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 500
link/none
inet 10.1.1.1/24 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::37dc:8523:76b:b956/64 scope link flags 800
valid_lft forever preferred_lft forever
" % ip r default via 192.168.3.1 dev eth0 10.1.1.0/24 dev tun0 proto kernel scope link src 10.1.1.1 192.168.3.0/24 dev eth0 proto kernel scope link src 192.168.3.201
" # iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 10.1.1.0/24 anywhere
MASQUERADE all -- 10.1.1.0/24 anywhere
MASQUERADE all -- 10.1.1.0/24 anywhere
" # ping 10.1.1.1 PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data. 64 bytes from 10.1.1.1: icmp_seq=1 ttl=64 time=0.061 ms 64 bytes from 10.1.1.1: icmp_seq=2 ttl=64 time=0.053 ms
hi.
everything seems fine. try to ping some ip from u device via android terminal. and maybe u isp forbid custom dns? try to run app as simple-rt -n local
Hi.. This is what i get when i run the executable.
libusb callback registered! Kernel driver is not active! Device supports AOA 2.0! Sending identification to the device sending manufacturer: Konstantin Menyaev sending model: SimpleRT sending description: Simple Reverse Tethering sending version: 1.0 sending url: https://github.com/vvviperrr/SimpleRT sending serial number: j3qq4-h7h2v-2hch4-m3hk8-6m8vw Turning the device in Accessory mode Found accessory 18d1:2d00 accessory connected! libusb callback deregistered! configuring tun0 net.ipv4.ip_forward = 1 tun0 interface configured!
And I'm not receiving any Internet on my phone. How do i proceed?