All pastes #488923 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-15 07:42 UTC
rendered paste body
hi stdin,
i have taken instructions on how to do bluetooth over IP it only works for me if i use two terminal windows and enter the commands in that order.

this needs to be in one terminal window

sudo sdptool add --channel=0 SP
sudo dund -n --listen --channel 0 --msdun noauth 192.168.0.2:192.168.0.88 crtscts 115200 ms-dns 192.168.0.1 lock

then this in a new terminal window

sudo rfcomm bind 0 00:0E:6D:69:1B:16 2
sudo echo x > /dev/rfcomm0
sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward


the 'echo 1 > /proc/sys/net/ipv4/ip_forward' command doesnt work unless i do a sudo -s beforehand