🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Access SVN Client Through an Internet Proxy?

access-svn-when-client-is-under-proxy

If your Subversion (SVN) client is behind an Internet proxy, you may experience connection issues when trying to checkout, update, or commit changes. This guide explains how to configure SVN to work through a proxy server on both Windows and Linux systems.


1. Identify Your Proxy Server Details

Before configuring SVN, gather the following information from your network administrator:
✔ Proxy Server Address (e.g., proxy.company.com)
✔ Proxy Port (e.g., 8080)
✔ Username & Password (if authentication is required)


2. Configure SVN Proxy Settings

📌 Method 1: Edit SVN Configuration File

SVN uses a configuration file (servers) where you can set proxy details.

Windows

1️⃣ Locate the SVN config file:

  • Open C:\Users\YourUserName\AppData\Roaming\Subversion\servers in Notepad or any text editor.
  • (For older Windows versions: C:\Documents and Settings\YourUserName\Application Data\Subversion\servers)

2️⃣ Edit the [global] section:

[global]
http-proxy-host = proxy.company.com
http-proxy-port = 8080
http-proxy-username = your_username
http-proxy-password = your_password

(Replace proxy.company.com, 8080, your_username, and your_password with actual values.)

3️⃣ Save and close the file.

Linux/macOS

1️⃣ Open the SVN config file:

nano ~/.subversion/servers

2️⃣ Edit the [global] section:

[global]
http-proxy-host = proxy.company.com
http-proxy-port = 8080
http-proxy-username = your_username
http-proxy-password = your_password

3️⃣ Save the file (Ctrl + X, then Y, then Enter).

✅ Now, your SVN client should work through the proxy!


3. Configure SVN to Use an Environment Proxy (Alternative Method)

If your proxy settings change frequently, use environment variables instead of modifying the SVN configuration file.

Windows (CMD/Powershell)

1️⃣ Open Command Prompt (Win + R → type cmd)
2️⃣ Set environment variables:

set http_proxy=http://proxy.company.com:8080
set https_proxy=https://proxy.company.com:8080

3️⃣ If authentication is required:

set http_proxy=http://your_username:your_password@proxy.company.com:8080

4️⃣ Now, run your SVN commands:

svn checkout http://svn.example.com/repo

💡 For persistent settings, add these lines to System Properties → Environment Variables in Windows.

Linux/macOS (Bash Terminal)

1️⃣ Open a terminal
2️⃣ Set the proxy variables:

export http_proxy=http://proxy.company.com:8080
export https_proxy=https://proxy.company.com:8080

3️⃣ If authentication is required:

export http_proxy=http://your_username:your_password@proxy.company.com:8080

4️⃣ Run your SVN commands:

svn update

💡 For persistent settings, add these lines to your ~/.bashrc or ~/.bash_profile file.


4. Troubleshooting Common Issues

🔹 “Could not connect to server” Error

✔ Check if the proxy settings are correct (ping proxy.company.com).
✔ Verify if your network allows HTTP/HTTPS traffic over SVN ports (80, 443).
✔ Use telnet to check connectivity:

telnet proxy.company.com 8080

🔹 SVN Command Fails with Authentication Errors

✔ Ensure your username & password are correct.
✔ If special characters (@, :, etc.) are in the password, encode them in URL format:

  • Example: p@sswordp%40ssword

5. Conclusion

By configuring the SVN proxy settings, you can successfully access Subversion repositories from behind an internet proxy.

Would you like help with SVN automation, troubleshooting, or setting up a batch script for SVN sync? Let me know! 😊🚀

Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x