从家里连接到公司防火墙后面的 SVN 服务器

发布于 2024-08-23 06:59:02 字数 1144 浏览 3 评论 0原文

如何配置 TortoiseSVN 从家里连接到位于公司防火墙后面的 SVN 服务器?

这是我很难找到答案的问题。以下是我没有的:

  1. 对公司内部网的官方 VPN 访问权限。
  2. 控制 SVN 服务器。
  3. 对 Intranet 的任何控制。
  4. IT部门的合作。

这就是我要做的

  1. 完全控制办公室办公桌上的计算机。
  2. 意志力

这是我尝试过的尝试,但似乎不成功(为了保护无辜者,人名、地点和机器的名称已更改):

失败的甜蜜网络图

  1. 我正在使用 Wippien 来设置 我家里的零配置 VPN 计算机 (NG-ATHOME) 到我的工作计算机 桌子。这有效,我总共有 两者之间的网络访问 机器。
  2. 我在 NG 上运行 OpenSSH for Windows-工作箱。
  3. 我在 NG-ATHOME 上使用 PuTTY 连接到 NG-WORKBOX,通过端口 1080 动态建立隧道。SOCKS 代理正在工作,因为我可以使用任何 Web 浏览器验证这一点。我可以自信地说,这不是场景中的问题。
  4. 我在 NG-ATHOME 上使用 TortoiseSVN,配置为使用 127.0.0.1:1080 上的代理。当我尝试点击“svn://NG-SOURCE/PonyRepository”时,我收到错误:无法连接到主机。我可以正常 ping NG-SOURCE。

为什么SVN不起作用?

嗯,我怀疑 SVN 不喜欢 SOCKS。有人有建议吗?

How can I configure TortoiseSVN to connect to a SVN server behind a corporate firewall from home?

This is the question I'm having a hard time finding an answer to. Here's what I DON'T have:

  1. Official VPN access to the corporate intranet.
  2. Control over the SVN server.
  3. Any control over the intranet.
  4. Cooperation from the IT department.

Here's what I DO have:

  1. Full control over my computer at my desk at the office.
  2. Willpower

This is a shot at what I tried, and seem to be unsuccessful at (names of people and places and machines have been changed to protect the innocent):

Sweet network diagram of fail

  1. I am using Wippien to set up a
    zero configuration VPN from my home
    computer (NG-ATHOME) to my work computer at my
    desk. This works, I have total
    network access to and from both
    machines.
  2. I have OpenSSH for Windows running on NG-WORKBOX.
  3. I have PuTTY on NG-ATHOME connecting to NG-WORKBOX to tunnel dynamically over port 1080. The SOCKS proxy is working, as I can verify that with any web browser. I can confidently say that this is not the problem in the scenario.
  4. I am using TortoiseSVN on NG-ATHOME configured to use a proxy on 127.0.0.1:1080. When I try to hit "svn://NG-SOURCE/PonyRepository", I get error: cannot connect to host. I can ping NG-SOURCE fine.

Why doesn't SVN work?

Hmm, I have a suspicion that SVN does not like SOCKS. Anyone have a suggestion?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

追风人 2024-08-30 06:59:02

您是否尝试过直接转发到目标计算机上的端口 3690 而不是使用袜子?

ssh -L 3690:remote:3690
svn info svn://localhost/blahblahblah

Have you tried forwarding directly to port 3690 on the target machine instead of using socks?

ssh -L 3690:remote:3690
svn info svn://localhost/blahblahblah
千と千尋 2024-08-30 06:59:02

如果有人仍然感兴趣,这里有一个教程的链接,展示如何设置隧道来绕过防火墙。

http://problemssol.blogspot.com/2010 /12/ssh-tunelling-to-reach-svn-repository.html

If someone is still interested here is a link to a tutorial showing how to set up a tunnel to bypass a firewall.

http://problemssol.blogspot.com/2010/12/ssh-tunelling-to-reach-svn-repository.html

み格子的夏天 2024-08-30 06:59:02

如果您在计算机上安装了 Web 服务器,则安装了存储库,您实际上可以在标准 http 端口 80 上使用 svn,并使用 apache svn 模块与 Web 服务器一起使用。
只需下载并激活所需的模块:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
# external modules
LoadModule dav_svn_module ../svn/bin/mod_dav_svn.so
LoadModule authz_svn_module ../svn/bin/mod_authz_svn.so

...

<Location /svn >
    DAV svn
    SVNParentPath D:\Repositories
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile D:\Repositories\permisiuni.conf
    Require valid-user
    SVNAdvertiseV2Protocol Off # prevents Subversion E160013: '/svn/xxx/!svn/me' path not found* error
</Location>

当然,您必须创建包含以下格式的用户和密码的 permisiuni.conf:

username1:password1
username2:password2
username3:password3

If you have a web server installed on the computer the repository is installed on you can actually use svn on the standard http port 80 alongside the web server using the apache svn module.
Just download and activate the required modules:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
# external modules
LoadModule dav_svn_module ../svn/bin/mod_dav_svn.so
LoadModule authz_svn_module ../svn/bin/mod_authz_svn.so

...

<Location /svn >
    DAV svn
    SVNParentPath D:\Repositories
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile D:\Repositories\permisiuni.conf
    Require valid-user
    SVNAdvertiseV2Protocol Off # prevents Subversion E160013: '/svn/xxx/!svn/me' path not found* error
</Location>

Of course, you'll have to create permisiuni.conf containing users and passwords in the following format:

username1:password1
username2:password2
username3:password3
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文