You are not logged in.
Pages: 1
I have the following script bellow. I have paired my laptop and phone. However I cant ping over the connection. I get a Host destination unreachable error....
Everything else looks like its correct. How can I debug where the issue is?
function fn_bluetooth_tether {
# https://wiki.archlinux.org/index.php/Internet_sharing
# https://wiki.archlinux.org/index.php/Bl … stallation
# https://wiki.archlinux.org/index.php/An … _Bluetooth
yay --noconfirm --needed -S nftables
yay --noconfirm --needed -S bluez bluez-utils
bluetoothctl devices
# awk, find line 'Device' and get 2nd entry on line
# sed replace : with _
device_mac=$(bluetoothctl info | awk '/^Device/{print $2}' | sed 's/:/_/g')
dbus-send --system --type=method_call --dest=org.bluez /org/bluez/hci0/dev_${device_mac} org.bluez.Network1.Connect string:'nap'
# bnep0
sudo tee /etc/systemd/network/bluetooth.network > /dev/null << EOL
[Match]
Name=bn*
[Network]
Address=192.168.2.5/24
Gateway=192.168.2.5
DNS=192.168.2.5
IPForward=yes
EOL
sudo systemctl daemon-reload
sudo systemctl stop NetworkManager
sudo systemctl mask NetworkManager
sudo systemctl enable systemd-networkd
sudo systemctl restart systemd-networkd
# NAT
inet=bnap0
# create chains
sudo nft add table ip nat
sudo nft add chain ip nat prerouting { type nat hook prerouting priority 0 \; }
sudo nft add chain ip nat postrouting { type nat hook postrouting priority 100 \; }
# add rule
sudo nft add rule nat postrouting oifname ${inet} masquerade
}
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code
Moving to NC...
Offline
Pages: 1