找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 1379|回复: 1

iphone代理的设置

[复制链接]
发表于 2007-10-12 02:40 | 显示全部楼层 |阅读模式
Got my GPRS Proxy settings to work.                                                                                                                                        still a few issues:
+ v# ]1 i$ {  c) @4 h6 R5 k' S: t( n+ N: O
Mail does not work, it keeps trying to contact ports 25 and 110 to sendand recieve (I think) well obviously I am telling it to use port 8080,so that is next to figure out.
9 k5 |+ O. }1 [9 T# T& c8 k& P7 Z3 J& K1 H% v
Here are the settings I used with Qtel (Qatar):0 ~5 q' o2 G* X; G& h& a% m2 |
; r# m7 H: a6 l* o) n1 t
First I found a proxy.pac file, (Just do a proxy.pac flie search ongoogle or use mine) edited it in notepad (if you save as for testingmake sure it does not save as proxy.pac.txt):4 J- ~% r2 N# _* L

/ a4 R; N' z2 Z4 I- L# Z* dfunction FindProxyForURL(url, host), p8 ?( h1 U0 z) \
{9 n0 v* ^* T: d/ H
if (isInNet(myIpAddress(), "10.0.0.0", "255.0.0.0"))0 m1 _( I+ W* r/ j: D, W
return "PROXY 10.23.8.3:8080";' m8 b/ ^! p3 E0 ^9 S
else
# V+ Z" T; P& U  ?! R+ o& mreturn "DIRECT";8 |0 G5 _: N9 c+ z7 S
}

2 B! Z" w# I. W: O; c/ w$ e8 Y1 W4 t4 U
4 Z) c- ^" f1 P; [Qtel gives us 10.x.x.x addresses so I just told it to use the proxy when my address is that.0 g) o0 Q: `2 q+ n
% j, a5 U; C* c. @7 ^$ ?) K8 f% K
Next I saved this file in "/private/var/root"2 c7 w8 r. M8 k3 G( F" ^
2 x* d9 ~/ V  w: T- T3 `: [
Then I edited my preferences file located in:/private/var/root/Library/Preferences/SystemConfiguration/preferences.plist(I used wordpad) adding the following:
6 w  p  f2 d4 g# f/ x" W# `4 P  v" y% v% O9 A
<dict>5 K5 v4 R0 f$ Q, q& a9 C
                        <key>Interface</key>: @: G8 n! v3 y. D- r8 t6 \
                        <dict>
+ x/ c* i8 o' A7 d( }                                <key>DeviceName</key>: d+ \; T9 R% y$ A9 h
                                <string>ip1</string>
" K+ m5 B/ F, T$ w! G7 g                                <key>Hardware</key>
5 z; R: I! w, r" X  p. J# |                                <string>com.apple.CommCenter</string>
4 e  K: V" g. O, n8 R                                <key>Type</key>
/ v. ^! _8 p' {% u4 l, _$ ~                                <string>com.apple.CommCenter</string># t: c2 J* C, N8 j$ }/ m' L0 ?1 }
                        </dict>
! i( g: h$ K: j1 ]- _: X$ U                        <key>Proxies</key>- D% F- x; P) ]+ Q: y7 f3 m
                        <dict>+ s% w7 O) s6 U) h6 X
                                <key>ProxyAutoConfigEnable</key>
& D9 n; d4 s9 @9 l' P% z3 N+ i                                <integer>1</integer>
% r/ E" o4 j: W% f( G/ r                                <key>ProxyAutoConfigURLString</key>
" m4 Z7 B8 O. ?; T                                <string>file:///private/var/root/proxy.pac</string>) `5 F4 b  l6 _8 n3 Y, w
                        </dict>

- }3 ]: x9 w+ S& B; k+ n2 k( G                        <key>com.apple.CommCenter</key>% E1 m% t1 K7 K* j+ j3 `; a
                        <dict>
/ l8 v3 a) i6 x8 d: d4 E% l                                <key>AllowNetworkAccess</key>" L: V% w3 `' c% I) q
                                <integer>1</integer>
( X' c3 ]7 ^. W                                <key>Available</key>
3 |, o. }9 h: r4 K, L2 F! d' b1 i                                <integer>1</integer>
5 g, u: a* }' ]2 y. {: z) i                                <key>Setup</key>/ l8 X- z2 i* T$ n& T/ H" g! C/ d
                                <dict>
% n# N: _( H9 n% Y) `; [                                        <key>apn</key>
" Z; ?% T& r$ d% r* n, k7 t( m5 O                                        <string>gprs.qtel</string>6 s# t! q4 G- \, i( b
                                        <key>password</key>
0 M( Y* G3 a$ G5 q6 Y7 m                                        <string>gprs</string>9 P! @- J- U/ O4 J
                                        <key>username</key>
7 {/ B$ l* G. O3 g( p                                        <string>gprs</string>1 I9 a' v( n1 n4 H' y; y! f
                                </dict>% n) i+ j: Z+ k3 ^
                                <key>Version</key>! z! e& O( y- Y- {4 X1 d- |# E
                                <integer>1</integer>
( v3 v+ w9 b' W! @                        </dict>
. V2 n: P" R5 w% ]& P                </dict>
# l8 _+ q9 u" ~# T0 O- ~
; l6 ]; V4 \# @7 X
- R& O3 e& i( G) p& u** dont forget it's "file///" 3 slashes after file.4 ~6 k# U4 a" ^2 e  e
** I am not sure if the indentation has to be precise but for mine the<key>Proxies is the same as the </dict> above it and the<dict> below it. The next line<key>ProxyAutoConfigEnable</key> is indented as are therest of the lines until </dict>
' j- z+ |# o+ F1 q8 T9 G
" h- J! D7 K. @) X' m* BThen I saved the file and put it back on my Iphone. Web/Weather/Stocksand Utube (brings up the page but too slow on GPRS to play video) work,but not Mail. Like I said earlier I think its a port issue.) N7 A0 Z6 o- L9 k6 I5 O% \

5 A( u' U" B* aHope you have luck getting it to work, this fix was based on this website:
9 A7 A6 z  J8 J5 R: f0 H# k! yhttp://etler.livejournal.com/18726.html
' R6 K& B) k$ s- n$ T4 g4 v9 D1 d. h
Let me know if you get it to work also, or if you know a fix for the Mail app.. F% b4 ~2 r8 G) k, a3 T7 I
! r3 w. d9 a3 d3 \
goodluck4287 has Graciously put the needed files together to share.Please keep in mind that although these files are the correct formatyou may need to edit them to match your provider information. !MEANING:Don't just throw them on your phone and ask why it's not working. Ihaven't used or verified the files I was just asked to add the link. Iam sure goodluck4287 would be more than happy to answer your questionsabout the files he has for download. Thanks again goodluck4287 and toall else, good luck unlocking even more of your IPHONE.
( y! s% t% c+ J/ ^7 h8 |- v

. D  M1 B' Y, r: ahttp://hackint0sh.org/forum/showthread.php?t=6365
发表于 2007-10-15 17:00 | 显示全部楼层
看不懂还是支持老大
您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-12-22 23:37 , Processed in 0.256247 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表