Files
nas-tools/test_proxy_connection.md
T

1.9 KiB

Test Proxy Connection

Security List Rules Added!

Now let's test if it works.

Step 1: Wait for Rules to Propagate

Wait 30-60 seconds for Oracle Cloud to apply the rules.

Step 2: Test from Your Mac (Quick Test)

Run this command to test:

curl --proxy http://proxy_user:Cs7yBx1Rh9oK@158.101.140.85:7890 http://httpbin.org/ip

Expected result: Should show {"origin":"158.101.140.85"}

If it works, the firewall is open!

Step 3: Configure Shadowrocket on iPhone

  1. Open Shadowrocket

  2. Add Server:

    • Tap "+" button
    • Select HTTP
    • Address: 158.101.140.85
    • Port: 7890 (or 7892 for Mixed)
    • Username: proxy_user
    • Password: Cs7yBx1Rh9oK
    • Remark: server2-proxy
    • Tap Done
  3. Enable Shadowrocket:

    • Select your proxy server
    • Toggle switch ON
    • VPN icon should appear
  4. Test:

Step 4: Test on Cellular

  1. Turn OFF Wi-Fi (use cellular only)
  2. Open Safari
  3. Visit: https://api.ipify.org
  4. Should show server2's IP

Troubleshooting

Still timing out?

  • Wait another 1-2 minutes (rules can take time to propagate)
  • Check Security List rules are saved
  • Verify ports: 7890, 7891, 7892, 9090
  • Try different port: 7892 (Mixed port)

Connection works but slow?

  • Normal - traffic goes: iPhone → Internet → server2 → Internet
  • Depends on server2's connection speed

Can't connect?

  • Check server2 is running: ssh server2 'sudo systemctl status clash-meta'
  • Verify credentials are correct
  • Check firewall: ssh server2 'sudo ufw status | grep 7890'

Success Indicators

Mac test shows server2's IP Shadowrocket connects without timeout Safari shows server2's IP when proxy is on Works on both Wi-Fi and cellular