Guest User

one-file solution to having a bluetooth dialin server (ppp o

a guest
Nov 28th, 2011
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # one-file solution to having a bluetooth dialin server (ppp over rfcomm) on my n900
  2. # on your notebook:
  3. # # rfcomm bind /dev/rfcomm0 <phone bt address> 22
  4. # # pppd /dev/rfcomm0 noauth
  5. # # still have to manually configure DNS, fixing that is to be done
  6.  
  7. user@Nokia-N900[~]$ grep '[^[:space:]]' /etc/event.d/btppp
  8. description "ppp dialin via bt"
  9. author "r00t"
  10. start on MOUNTS_OK
  11. stop on starting shutdown
  12. console none
  13. respawn
  14. script
  15. echo 1 > /proc/sys/net/ipv4/ip_forward
  16. /usr/sbin/iptables -t nat -I POSTROUTING -o gprs0 -j MASQUERADE
  17. /usr/bin/rfcomm watch rfcomm22 22 /usr/sbin/pppd {} noauth 10.10.10.1:10.10.10.2
  18. end script
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment