<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yoctoproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KarthikRamanan</id>
	<title>Yocto Project - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yoctoproject.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KarthikRamanan"/>
	<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/Special:Contributions/KarthikRamanan"/>
	<updated>2026-04-07T06:07:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.yoctoproject.org/wiki/index.php?title=Working_Behind_a_Network_Proxy&amp;diff=13396</id>
		<title>Working Behind a Network Proxy</title>
		<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=Working_Behind_a_Network_Proxy&amp;diff=13396"/>
		<updated>2014-08-27T15:32:47Z</updated>

		<summary type="html">&lt;p&gt;KarthikRamanan: Fixed issue with white spaces for no_proxy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists some configuration tips for working behind a proxy.&lt;br /&gt;
&lt;br /&gt;
== HTTP/HTTPS/FTP Setup ==&lt;br /&gt;
&lt;br /&gt;
Set the following environment variables in your ~/.bashrc file. This example uses the same proxy server and port number for all three protocols.&lt;br /&gt;
&lt;br /&gt;
 export http_proxy=&#039;http://myproxy.example.com:1080/&#039;&lt;br /&gt;
 export https_proxy=&#039;https://myproxy.example.com:1080/&#039;&lt;br /&gt;
 export ftp_proxy=&#039;http://myproxy.example.com:1080/&#039;&lt;br /&gt;
 export no_proxy=&#039;.example.com&#039;&lt;br /&gt;
&lt;br /&gt;
== Git Setup (with socat)==&lt;br /&gt;
&lt;br /&gt;
First make sure you have the socat utility installed on your host (in Ubuntu, this should be a simple command &amp;quot;sudo apt-get install socat&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Create a script named &#039;&#039;git-proxy&#039;&#039; and put it in /usr/local/bin:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # $1 = hostname, $2 = port&lt;br /&gt;
 PROXY=myproxy.example.com&lt;br /&gt;
 exec socat STDIO SOCKS4:$PROXY:$1:$2 &lt;br /&gt;
Then run the following command:&lt;br /&gt;
&lt;br /&gt;
 git config  --global   core.gitProxy git-proxy&lt;br /&gt;
&lt;br /&gt;
== Git Setup (with nc)==&lt;br /&gt;
&lt;br /&gt;
First make sure you have the netcat utility (nc) installed on your host.&lt;br /&gt;
&lt;br /&gt;
Create a script named &#039;&#039;git-proxy&#039;&#039; and put it in /usr/local/bin:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 PROXY=myproxy.example.com&lt;br /&gt;
 PORT=1080&lt;br /&gt;
 &lt;br /&gt;
 case $1 in&lt;br /&gt;
        # list internal git servers here that you do not want to use&lt;br /&gt;
        # the proxy with, separated by a pipe character &#039;|&#039; as below:&lt;br /&gt;
 internalgit1.example.com|internalgit2.example.com)&lt;br /&gt;
         METHOD=&amp;quot;-X connect&amp;quot;&lt;br /&gt;
         ;;&lt;br /&gt;
 *)&lt;br /&gt;
         METHOD=&amp;quot;-X 5 -x ${PROXY}:${PORT}&amp;quot;&lt;br /&gt;
         ;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 /usr/bin/nc $METHOD $*&lt;br /&gt;
&lt;br /&gt;
Note that on some Linux distros, the nc binary is in /bin. You can also change the &#039;5&#039; in the second METHOD line to &#039;4&#039; if your proxy server only supports SOCKS v4.&lt;br /&gt;
&lt;br /&gt;
Then set the environment variable GIT_PROXY_COMMAND in your ~/.bashrc file and point it to this script:&lt;br /&gt;
&lt;br /&gt;
 export GIT_PROXY_COMMAND=/usr/local/bin/git-proxy&lt;br /&gt;
 export GIT_PROXY_IGNORE=&amp;quot;example.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Subversion Setup ==&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to have the following in your ~/.subversion/servers file:&lt;br /&gt;
&lt;br /&gt;
 [global]&lt;br /&gt;
 http-proxy-exceptions = *.exception.com, www.internal-site.org&lt;br /&gt;
 http-proxy-host = myproxy.example.com&lt;br /&gt;
 http-proxy-port = 1080&lt;br /&gt;
&lt;br /&gt;
You can also set &#039;&#039;http-proxy-username&#039;&#039; and &#039;&#039;http-proxy-password&#039;&#039; if your proxy requires authentication.&lt;br /&gt;
&lt;br /&gt;
== CVS Setup (this seems useless since we don&#039;t have any recipe requiring cvs now) ==&lt;br /&gt;
&lt;br /&gt;
For CVS checkouts to work correctly, you need to add some options in your Poky &#039;&#039;local.conf&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
 CVS_PROXY_HOST = &amp;quot;myproxy.example.com&amp;quot;&lt;br /&gt;
 CVS_PROXY_PORT = &amp;quot;1080&amp;quot;&lt;/div&gt;</summary>
		<author><name>KarthikRamanan</name></author>
	</entry>
</feed>