Guest User

Untitled

a guest
Apr 12th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Tmobile:
  2. APN: wap.voicestream.com
  3. username: n/a
  4. password: n/a
  5.  
  6. First I found a proxy.pac file, (Just do a proxy.pac flie search on google or use mine) edited it in notepad (if you save as for testing make sure it does not save as proxy.pac.txt):
  7.  
  8. function FindProxyForURL(url, host)
  9. {
  10. if (isInNet(myIpAddress(), “10.0.0.0“, “255.0.0.0“))
  11. return “PROXY 216.155.165.50:8080“;
  12. else
  13. return “DIRECT“;
  14. }
  15.  
  16. Tmobile gives us 10.x.x.x addresses so I just told it to use the proxy when my address is that.
  17.  
  18. Next I saved this file in “/private/var/root“
  19.  
  20. Then I edited my preferences file located in: /private/var/root/Library/Preferences/SystemConfiguration/preferences.plist (I used wordpad) adding the following:
  21.  
  22. <dict>
  23. <key>Interface</key>
  24. <dict>
  25. <key>DeviceName</key>
  26. <string>ip1</string>
  27. <key>Hardware</key>
  28. <string>com.apple.CommCenter</string>
  29. <key>Type</key>
  30. <string>com.apple.CommCenter</string>
  31. </dict>
  32. <key>Proxies</key>
  33. <dict>
  34. <key>ProxyAutoConfigEnable</key>
  35. <integer>1</integer>
  36. <key>ProxyAutoConfigURLString</key>
  37. <string>file:///private/var/root/proxy.pac</string>
  38. </dict>
  39. <key>com.apple.CommCenter</key>
  40. <dict>
  41. <key>AllowNetworkAccess</key>
  42. <integer>1</integer>
  43. <key>Available</key>
  44. <integer>1</integer>
  45. <key>Setup</key>
  46. <dict>
  47. <key>apn</key>
  48. <string>gprs.qtel</string>
  49. <key>password</key>
  50. <string>gprs</string>
  51. <key>username</key>
  52. <string>gprs</string>
  53. </dict>
  54. <key>Version</key>
  55. <integer>1</integer>
  56. </dict>
  57. </dict>
Add Comment
Please, Sign In to add comment