<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall</id>
	<title>Tutorials Linux Emulator Networking Proxy Firewall - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall&amp;action=history"/>
	<updated>2026-04-19T13:50:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall&amp;diff=12080&amp;oldid=prev</id>
		<title>Hemna: /* Create the tsocks.conf file */</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall&amp;diff=12080&amp;oldid=prev"/>
		<updated>2010-11-19T00:01:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Create the tsocks.conf file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:01, 19 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l66&quot; &gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* You can test your config file by doing this&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; /usr/local/bin/tsocks wget http://www.cnn.com&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* If you are behind the socks proxy and the tsocks.conf is setup correctly, then the wget command should work.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Shim LunaSysMgr ==  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Shim LunaSysMgr ==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hemna</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall&amp;diff=12079&amp;oldid=prev</id>
		<title>Hemna: /* Shim LunaSysMgr */</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall&amp;diff=12079&amp;oldid=prev"/>
		<updated>2010-11-18T23:59:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Shim LunaSysMgr&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:59, 18 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l73&quot; &gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* vi /etc/event.d/LunaSysMgr and update the exec line to make it look like this:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* vi /etc/event.d/LunaSysMgr and update the exec line to make it look like this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  exec /usr/local/bin/tsocks /usr/bin/LunaSysMgr -s `cat /var/luna/preferences/sysmgr-args`&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  exec /usr/local/bin/tsocks /usr/bin/LunaSysMgr -s `cat /var/luna/preferences/sysmgr-args`&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* reboot the emulator.   enjoy.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hemna</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall&amp;diff=12078&amp;oldid=prev</id>
		<title>Hemna: Created page with '= Howto proxy network connections in Emulator =  == Get tsocks ==  ==== Since the emulator is running as x86, you can just copy over your tsocks files from your linux distro ====…'</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Tutorials_Linux_Emulator_Networking_Proxy_Firewall&amp;diff=12078&amp;oldid=prev"/>
		<updated>2010-11-18T23:41:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;= Howto proxy network connections in Emulator =  == Get tsocks ==  ==== Since the emulator is running as x86, you can just copy over your tsocks files from your linux distro ====…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Howto proxy network connections in Emulator =&lt;br /&gt;
&lt;br /&gt;
== Get tsocks ==&lt;br /&gt;
&lt;br /&gt;
==== Since the emulator is running as x86, you can just copy over your tsocks files from your linux distro ====&lt;br /&gt;
* Fire up the emulator  (palm-emulator)&lt;br /&gt;
* copy tsocks to Emulator -&amp;gt; /usr/local/bin&lt;br /&gt;
 scp -P 5522 /usr/bin/tsocks root@localhost:/usr/local/bin&lt;br /&gt;
* copy libtsocks.so to Emulator -&amp;gt; /usr/lib&lt;br /&gt;
 scp -P 5522 /usr/lib/libtsocks.so root@localhost:/usr/lib&lt;br /&gt;
&lt;br /&gt;
==== Create the tsocks.conf file ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# This is the configuration for libtsocks (transparent socks)&lt;br /&gt;
# Lines beginning with # and blank lines are ignored&lt;br /&gt;
#&lt;br /&gt;
# The basic idea is to specify:&lt;br /&gt;
#	- Local subnets - Networks that can be accessed directly without&lt;br /&gt;
#			  assistance from a socks server&lt;br /&gt;
#	- Paths - Paths are basically lists of networks and a socks server&lt;br /&gt;
#		  which can be used to reach these networks&lt;br /&gt;
#	- Default server - A socks server which should be used to access &lt;br /&gt;
#			   networks for which no path is available&lt;br /&gt;
# Much more documentation than provided in these comments can be found in&lt;br /&gt;
# the man pages, tsocks(8) and tsocks.conf(8)&lt;br /&gt;
&lt;br /&gt;
# Local networks&lt;br /&gt;
# For this example this machine can directly access 192.168.0.0/255.255.255.0 &lt;br /&gt;
# (192.168.0.*) and 10.0.0.0/255.0.0.0 (10.*)&lt;br /&gt;
&lt;br /&gt;
local = 192.168.0.0/255.255.255.0&lt;br /&gt;
local = 10.0.0.0/255.0.0.0&lt;br /&gt;
#local = &amp;lt;Network for your personal network&amp;gt;/&amp;lt;netmask&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Paths&lt;br /&gt;
# For this example this machine needs to access 150.0.0.0/255.255.0.0 as &lt;br /&gt;
# well as port 80 on the network 150.1.0.0/255.255.0.0 through&lt;br /&gt;
# the socks 5 server at 10.1.7.25 (if this machines hostname was &lt;br /&gt;
# &amp;quot;socks.hello.com&amp;quot; we could also specify that, unless --disable-hostnames&lt;br /&gt;
# was specified to ./configure).&lt;br /&gt;
&lt;br /&gt;
##path {&lt;br /&gt;
#	reaches = 150.0.0.0/255.255.0.0&lt;br /&gt;
#	reaches = 150.1.0.0:80/255.255.0.0&lt;br /&gt;
#	server = 10.1.7.25&lt;br /&gt;
#	server_type = 5&lt;br /&gt;
#	default_user = delius&lt;br /&gt;
#	default_pass = hello&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
# Default server&lt;br /&gt;
# For connections that aren't to the local subnets or to 150.0.0.0/255.255.0.0&lt;br /&gt;
# the server at 192.168.0.1 should be used (again, hostnames could be used&lt;br /&gt;
# too, see note above)&lt;br /&gt;
&lt;br /&gt;
#server = 192.168.0.1&lt;br /&gt;
server = &amp;lt;IP OF YOUR socks proxy&amp;gt;&lt;br /&gt;
# Server type defaults to 4 so we need to specify it as 5 for this one&lt;br /&gt;
server_type = 5&lt;br /&gt;
# The port defaults to 1080 but I've stated it here for clarity &lt;br /&gt;
server_port = 1080 &lt;br /&gt;
&lt;br /&gt;
default_user = user@host&lt;br /&gt;
default_pass = &amp;lt;password here&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Shim LunaSysMgr == &lt;br /&gt;
==== Permanently shim LunaSysMgr ====&lt;br /&gt;
* You can force LunaSysMgr to always use the proxy by editing the upstart script that lives in /etc/event.d&lt;br /&gt;
* Add the tsocks line in front of the call to exec LunaSysMgr&lt;br /&gt;
* vi /etc/event.d/LunaSysMgr and update the exec line to make it look like this:&lt;br /&gt;
 exec /usr/local/bin/tsocks /usr/bin/LunaSysMgr -s `cat /var/luna/preferences/sysmgr-args`&lt;/div&gt;</summary>
		<author><name>Hemna</name></author>
	</entry>
</feed>