Sunday, 2026-06-21

*** n2klb_ is now known as n2klb01:09
T42<Teleg3_7> This is about USB tethering on SFOS01: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 PC01: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 terminal01:28
T42<Teleg3_7> devel-su01:29
T42<Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward01:29
T42<Teleg3_7> export in=rmnet_data101:29
T42<Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE01:29
T42<Teleg3_7> 01:29
T42<Teleg3_7> 2. Configuration on a Linux PC01: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 $ip01:29
T42<Teleg3_7> 01:29
T42<Teleg3_7> vim /etc/resolv.conf01:29
T42<Teleg3_7> nameserver 8.8.8.801:29
T42<Teleg3_7> 01:29
T42<Teleg3_7> #Test on the PC01:29
T42<Teleg3_7> ping google.com01: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 SFOS01:29
T42<Teleg3_7> This is about USB tethering on SFOS01: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 PC01: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 terminal01:30
T42<Teleg3_7> devel-su01:30
T42<Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward01:30
T42<Teleg3_7> export in=rmnet_data101:30
T42<Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE01:30
T42<Teleg3_7> 01:30
T42<Teleg3_7> 2. Configuration on a Linux PC01: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 $ip01:30
T42<Teleg3_7> 01:30
T42<Teleg3_7> vim /etc/resolv.conf01:30
T42<Teleg3_7> nameserver 8.8.8.801:30
T42<Teleg3_7> 01:30
T42<Teleg3_7> #Test on the PC01:30
T42<Teleg3_7> ping google.com01: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 SFOS01: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 PC01: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 terminal01:41
T42<Teleg3_7> devel-su01:41
T42<Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward01:41
T42<Teleg3_7> export in=rmnet_data101:41
T42<Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE01:41
T42<Teleg3_7> 01:41
T42<Teleg3_7> 2. Configuration on a Linux PC01: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 $ip01:41
T42<Teleg3_7> 01:41
T42<Teleg3_7> vim /etc/resolv.conf01:41
T42<Teleg3_7> nameserver 8.8.8.801:41
T42<Teleg3_7> 01:42
T42<Teleg3_7> #Test connection01:42
T42<Teleg3_7> ping google.com01: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/!