| *** n2klb_ is now known as n2klb | 01:09 | |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 01:28 |
|---|---|---|
| T42 | <Teleg3_7> After enabling USB tethering on SFOS or Droidian, I found that my PC could only establish an SSH connection, and it couldn’t access the internet via the phone. I’ve tried this configuration on both SFOS and Droidian, and as a result, the PC can now access the internet via the phone. The configuration is performed on the phone and a Linux PC | 01:28 |
| T42 | <Teleg3_7> | 01:28 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 01:28 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and `ip_forward`—which defaults to 0—is changed. The `in` variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 01:28 |
| T42 | <Teleg3_7> | 01:28 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 01:28 |
| T42 | <Teleg3_7> devel-su | 01:29 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 01:29 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 01:29 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 01:29 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian, `ip=“10.15.19.82”`, while for SFOS, `ip=“192.168.2.15”` | 01:29 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 01:29 |
| T42 | <Teleg3_7> route add default gw $ip | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 01:29 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> #Test on the PC | 01:29 |
| T42 | <Teleg3_7> ping google.com | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS | 01:29 |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 01:30 |
| T42 | <Teleg3_7> After enabling USB tethering on SFOS or Droidian, I found that my PC could only establish an SSH connection, and it couldn’t access the internet via the phone. I’ve tried this configuration on both SFOS and Droidian, and as a result, the PC can now access the internet via the phone. The configuration is performed on the phone and a Linux PC | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 01:30 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and ip_forward which defaults to 0 is changed. The "in" variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 01:30 |
| T42 | <Teleg3_7> devel-su | 01:30 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 01:30 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 01:30 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 01:30 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian `ip=“10.15.19.82”`, while for SFOS `ip=“192.168.2.15”` | 01:30 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 01:30 |
| T42 | <Teleg3_7> route add default gw $ip | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 01:30 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> #Test on the PC | 01:30 |
| T42 | <Teleg3_7> ping google.com | 01:31 |
| T42 | <Teleg3_7> | 01:31 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS (edited) | 01:31 |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 01:41 |
| T42 | <Teleg3_7> After enabling USB tethering on SFOS or Droidian, I found that my PC could only establish an SSH connection, and it couldn’t access the internet via the phone. I’ve tried this configuration on both SFOS and Droidian, and as a result, the PC can now access the internet via the phone. The configuration is performed on the phone and a Linux PC | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 01:41 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and ip_forward which defaults to 0 is changed. The "in" variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 01:41 |
| T42 | <Teleg3_7> devel-su | 01:41 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 01:41 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 01:41 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 01:41 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian `ip=“10.15.19.82”`, while for SFOS `ip=“192.168.2.15”` | 01:41 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 01:41 |
| T42 | <Teleg3_7> route add default gw $ip | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 01:41 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 01:41 |
| T42 | <Teleg3_7> | 01:42 |
| T42 | <Teleg3_7> #Test connection | 01:42 |
| T42 | <Teleg3_7> ping google.com | 01:42 |
| T42 | <Teleg3_7> | 01:42 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS (edited) | 01:42 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!