<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.dosbox.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Slip_configuration_on_linux_host</id>
	<title>Slip configuration on linux host - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.dosbox.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Slip_configuration_on_linux_host"/>
	<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Slip_configuration_on_linux_host&amp;action=history"/>
	<updated>2026-04-26T16:00:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Slip_configuration_on_linux_host&amp;diff=135379&amp;oldid=prev</id>
		<title>Naszvadi at 11:03, 24 June 2016</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Slip_configuration_on_linux_host&amp;diff=135379&amp;oldid=prev"/>
		<updated>2016-06-24T11:03:44Z</updated>

		<summary type="html">&lt;p&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 11:03, 24 June 2016&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;DOSBox supports nullmodem connection using tcp sockets. In this page, we describe a simple networking slip configuration on linux (ubuntu) host. With socat or similar tools on host's side, you can connect these sockets with slattach, and the DOSBox guest can access internet as well.&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;DOSBox supports nullmodem connection using tcp sockets. In this page, we describe a simple networking slip configuration on linux (ubuntu) host. With socat or similar tools on host's side, you can connect these sockets with slattach, and the DOSBox guest can access internet as well.&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;&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;== WARNING! ==&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;&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;The included script and manual is dangerous. It needs sudo or root access to the target host, uses external dependencies, can cause damage and irrecoverable package dependency problems via apt installing, and may be harmful when you are not familiar with tcp/ip ipv4 networking or linux iptables/slattach/etc. tools.&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;== Prerequisities under ubuntu ==&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;== Prerequisities under ubuntu ==&lt;/div&gt;&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-l13&quot; &gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&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;  apt-get install bash dosbox iptables socat sudo unzip wget&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;  apt-get install bash dosbox iptables socat sudo unzip wget&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;&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;=== Other requirements ===&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;&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;ETHERSL.COM from crynwr packet collection, and IRCJR.EXE from mTCP applications. See links for more information at the end of this page. The containing zipfiles will be downloaded automatically if the don't exist.&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;=== The main script: slipbox.sh ===&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;=== The main script: slipbox.sh ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Naszvadi</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Slip_configuration_on_linux_host&amp;diff=135378&amp;oldid=prev</id>
		<title>Naszvadi at 20:24, 19 June 2016</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Slip_configuration_on_linux_host&amp;diff=135378&amp;oldid=prev"/>
		<updated>2016-06-19T20:24:40Z</updated>

		<summary type="html">&lt;p&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 20:24, 19 June 2016&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-l196&quot; &gt;Line 196:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 196:&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;  ## This is the end of slipbox.sh !&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;  ## This is the end of slipbox.sh !&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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Before invoking the &amp;quot;sudo ./&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dosslip&lt;/del&gt;.sh&amp;quot; from terminal, a mapper.map file should be generated, in which the alt key assigned to right ctrl. See more on [[Keymapper]] . Mapperfile creation step is only needed for this specific example, for the running of mTCP irc client &amp;quot;ircjr&amp;quot;, which needs alt-[NUM] keycombos for changing between windows.&lt;/div&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;Before invoking the &amp;quot;sudo ./&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;slipbox&lt;/ins&gt;.sh&amp;quot; from terminal, a mapper.map file should be generated, in which the alt key assigned to right ctrl. See more on [[Keymapper]] . Mapperfile creation step is only needed for this specific example, for the running of mTCP irc client &amp;quot;ircjr&amp;quot;, which needs alt-[NUM] keycombos for changing between windows.&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;== Launch a networked session under ubuntu ==&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;== Launch a networked session under ubuntu ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key dosbox-mw1_:diff::1.12:old-135377:rev-135378 --&gt;
&lt;/table&gt;</summary>
		<author><name>Naszvadi</name></author>
	</entry>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Slip_configuration_on_linux_host&amp;diff=135377&amp;oldid=prev</id>
		<title>Naszvadi: Example slip configuration on ubuntu host</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Slip_configuration_on_linux_host&amp;diff=135377&amp;oldid=prev"/>
		<updated>2016-06-19T20:13:34Z</updated>

		<summary type="html">&lt;p&gt;Example slip configuration on ubuntu host&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;DOSBox supports nullmodem connection using tcp sockets. In this page, we describe a simple networking slip configuration on linux (ubuntu) host. With socat or similar tools on host's side, you can connect these sockets with slattach, and the DOSBox guest can access internet as well.&lt;br /&gt;
&lt;br /&gt;
== Prerequisities under ubuntu ==&lt;br /&gt;
&lt;br /&gt;
=== Internet settings ===&lt;br /&gt;
&lt;br /&gt;
A working internet connection is essential.&lt;br /&gt;
192.168.7.0/30 network must be unused! Otherwise network range collision will happen, causing unpredictable results!&lt;br /&gt;
&lt;br /&gt;
=== Required ubuntu packages ===&lt;br /&gt;
&lt;br /&gt;
And also the following packages needs to be installed:&lt;br /&gt;
&lt;br /&gt;
 apt-get install bash dosbox iptables socat sudo unzip wget&lt;br /&gt;
&lt;br /&gt;
=== The main script: slipbox.sh ===&lt;br /&gt;
&lt;br /&gt;
The content of the slipbox.sh&lt;br /&gt;
&lt;br /&gt;
 #! /bin/bash&lt;br /&gt;
 &lt;br /&gt;
 flushipt() {&lt;br /&gt;
   for i in $( iptables -t nat -n --line-numbers -L | awk '/^Chain POSTROUTING/,/^$/{print $0}' \&lt;br /&gt;
             | grep '^[0-9]' | grep '192\.168\.7\.' | awk '{ print $1 }' | tac )&lt;br /&gt;
   do&lt;br /&gt;
     iptables -t nat -D POSTROUTING &amp;quot;$i&amp;quot;&lt;br /&gt;
   done&lt;br /&gt;
 &lt;br /&gt;
   for i in $( iptables -t nat -n --line-numbers -L | awk '/^Chain PREROUTING/,/^$/{print $0}' \&lt;br /&gt;
             | grep ^[0-9] | grep '192\.168\.7\.' | awk '{ print $1 }' | tac )&lt;br /&gt;
   do&lt;br /&gt;
     iptables -t nat -D PREROUTING &amp;quot;$i&amp;quot;&lt;br /&gt;
   done&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 if id -u | grep -q '^0'; then&lt;br /&gt;
     :&lt;br /&gt;
 else&lt;br /&gt;
     echo 'dosbox slip setter'&lt;br /&gt;
     echo 'Author: Naszvadi Peter'&lt;br /&gt;
     echo&lt;br /&gt;
     echo &amp;quot;Please run ''$0'' as root!&amp;quot;&lt;br /&gt;
     echo&lt;br /&gt;
     exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if ! which socat; then&lt;br /&gt;
     echo&lt;br /&gt;
     echo 'Install socat! It is required.'&lt;br /&gt;
     echo&lt;br /&gt;
     echo 'e.g. sudo apt-get install socat'&lt;br /&gt;
     echo&lt;br /&gt;
     exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if ! which slattach; then&lt;br /&gt;
     echo&lt;br /&gt;
     echo 'Install slattach! It is required.'&lt;br /&gt;
     echo&lt;br /&gt;
     exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if ! which dosbox; then&lt;br /&gt;
     echo&lt;br /&gt;
     echo 'Install dosbox! It is required.'&lt;br /&gt;
     echo&lt;br /&gt;
     exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 Uid=&amp;quot;$(find &amp;quot;$0&amp;quot; -printf '%U' -quit)&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 if [ -z &amp;quot;$(find . -iname ethersl.com)&amp;quot; ]; then&lt;br /&gt;
     if ! which unzip; then&lt;br /&gt;
         echo&lt;br /&gt;
         echo 'Install unzip! It is required.'&lt;br /&gt;
         echo&lt;br /&gt;
         exit 1&lt;br /&gt;
     fi&lt;br /&gt;
     if ! which wget; then&lt;br /&gt;
         echo&lt;br /&gt;
         echo 'Install wget! It is required.'&lt;br /&gt;
         echo&lt;br /&gt;
         exit 1&lt;br /&gt;
     fi&lt;br /&gt;
     sudo -u &amp;quot;#$Uid&amp;quot; bash -c 'wget -q http://crynwr.com/drivers/pktd11.zip \&lt;br /&gt;
     &amp;amp;&amp;amp; unzip -Cj pktd11.zip ethersl.com'&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if [ -z &amp;quot;$(find . -iname ethersl.com)&amp;quot; ]; then&lt;br /&gt;
     echo&lt;br /&gt;
     echo 'Unsuccesful: getting ethersl.com'&lt;br /&gt;
     echo&lt;br /&gt;
     exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if [ -z &amp;quot;$(find . -iname ircjr.exe)&amp;quot; ]; then&lt;br /&gt;
     if ! which unzip; then&lt;br /&gt;
         echo&lt;br /&gt;
         echo 'Install unzip! It is required.'&lt;br /&gt;
         echo&lt;br /&gt;
         exit 1&lt;br /&gt;
     fi&lt;br /&gt;
     if ! which wget; then&lt;br /&gt;
         echo&lt;br /&gt;
         echo 'Install wget! It is required.'&lt;br /&gt;
         echo&lt;br /&gt;
         exit 1&lt;br /&gt;
     fi&lt;br /&gt;
     sudo -u &amp;quot;#$Uid&amp;quot; bash -c 'wget -q -O mtcp.zip http://www.brutman.com/mTCP/mTCP_2013-05-23.zip \&lt;br /&gt;
     &amp;amp;&amp;amp; unzip -Cj mtcp.zip ircjr.exe'&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if [ -z &amp;quot;$(find . -iname ircjr.exe)&amp;quot; ]; then&lt;br /&gt;
     echo&lt;br /&gt;
     echo 'Unsuccesful: getting ircjr.exe'&lt;br /&gt;
     echo&lt;br /&gt;
     exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 echo Flushing...&lt;br /&gt;
 flushipt&lt;br /&gt;
 echo Flushing done&lt;br /&gt;
 &lt;br /&gt;
 Dev_Pts='/tmp/slip'&amp;quot;$RANDOM&amp;quot;&lt;br /&gt;
 Slip_Port=8040&lt;br /&gt;
 &lt;br /&gt;
 if ! [ -e dosslip.cnf ]; then&lt;br /&gt;
 sudo -u &amp;quot;#$Uid&amp;quot; bash -c 'cat &amp;lt;&amp;lt;END &amp;gt; dosslip.cnf&lt;br /&gt;
 [sdl]&lt;br /&gt;
 mapperfile=mapper.map&lt;br /&gt;
 [serial]&lt;br /&gt;
 serial1=nullmodem server:localhost port:'&amp;quot;$Slip_Port&amp;quot;' transparent:1&lt;br /&gt;
 [autoexec]&lt;br /&gt;
 mount C .&lt;br /&gt;
 C:&lt;br /&gt;
 ethersl 0x60 4 0x3f8 9600&lt;br /&gt;
 SET MTCPSLIP=true&lt;br /&gt;
 SET MTCPCFG=C:\\MTCP.CFG&lt;br /&gt;
 ircjr irc.freenode.net #dosbox&lt;br /&gt;
 END'&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if ! [ -e mtcp.cfg ]; then&lt;br /&gt;
 sudo -u &amp;quot;#$Uid&amp;quot; bash -c 'cat &amp;lt;&amp;lt;END &amp;gt; mtcp.cfg&lt;br /&gt;
 DHCPVER DHCP Client version Jul 29 2011&lt;br /&gt;
 TIMESTAMP Mon May 21 13:14:59 2012&lt;br /&gt;
 packetint 0x60&lt;br /&gt;
 hostname DOSRules&lt;br /&gt;
 ircjr_nick dbxij'&amp;quot;$RANDOM&amp;quot;'&lt;br /&gt;
 ircjr_user dbxij'&amp;quot;$RANDOM&amp;quot;'&lt;br /&gt;
 ircjr_name McBus Luck&lt;br /&gt;
 ircjr_connect_timeout 300&lt;br /&gt;
 ircjr_register_timeout 300&lt;br /&gt;
 ftpsrv_password_file NUL&lt;br /&gt;
 ftpsrv_log_file NUL&lt;br /&gt;
 IPADDR 192.168.7.2&lt;br /&gt;
 NETMASK 255.255.255.252&lt;br /&gt;
 GATEWAY 192.168.7.1&lt;br /&gt;
 NAMESERVER 8.8.8.8&lt;br /&gt;
 LEASE_TIME 600&lt;br /&gt;
 END'&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 socat PTY,link=&amp;quot;$Dev_Pts&amp;quot;,raw,echo=0 TCP-LISTEN:&amp;quot;$Slip_Port&amp;quot; &amp;amp;&lt;br /&gt;
 Pid_Saved_3=&amp;quot;$!&amp;quot;&lt;br /&gt;
 sleep 1&lt;br /&gt;
 &lt;br /&gt;
 sudo -u &amp;quot;#$Uid&amp;quot; dosbox -conf dosslip.cnf &amp;amp;&lt;br /&gt;
 Pid_Saved=&amp;quot;$!&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # setting linux ipv4 forwarding&lt;br /&gt;
 grep -q 1 /proc/sys/net/ipv4/ip_forward || ( echo 1 1&amp;gt;/proc/sys/net/ipv4/ip_forward )&lt;br /&gt;
 &lt;br /&gt;
 slattach -d -s 9600 -p adaptive &amp;quot;$Dev_Pts&amp;quot; 1&amp;gt;/dev/null 2&amp;gt;/dev/null &amp;amp;&lt;br /&gt;
 Pid_Saved_2=&amp;quot;$!&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 sleep 3&lt;br /&gt;
 &lt;br /&gt;
 ifconfig sl0 192.168.7.1 dstaddr 192.168.7.2 netmask 255.255.255.252 mtu 576 up 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;br /&gt;
 set -x&lt;br /&gt;
 iptables -t nat -A POSTROUTING -s 192.168.7.0/30 -j MASQUERADE 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;br /&gt;
 &lt;br /&gt;
 set +x&lt;br /&gt;
 while ps &amp;quot;$Pid_Saved&amp;quot; 1&amp;gt;/dev/null 2&amp;gt;/dev/null; do&lt;br /&gt;
     sleep 5&lt;br /&gt;
 done 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;br /&gt;
 &lt;br /&gt;
 2&amp;gt;&amp;amp;-&lt;br /&gt;
 kill -9 &amp;quot;$Pid_Saved_2&amp;quot; &amp;quot;$Pid_Saved_3&amp;quot; 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;br /&gt;
 &lt;br /&gt;
 echo Flushing...&lt;br /&gt;
 flushipt&lt;br /&gt;
 echo Flushing done&lt;br /&gt;
 &lt;br /&gt;
 exit 0&lt;br /&gt;
 ## This is the end of slipbox.sh !&lt;br /&gt;
&lt;br /&gt;
Before invoking the &amp;quot;sudo ./dosslip.sh&amp;quot; from terminal, a mapper.map file should be generated, in which the alt key assigned to right ctrl. See more on [[Keymapper]] . Mapperfile creation step is only needed for this specific example, for the running of mTCP irc client &amp;quot;ircjr&amp;quot;, which needs alt-[NUM] keycombos for changing between windows.&lt;br /&gt;
&lt;br /&gt;
== Launch a networked session under ubuntu ==&lt;br /&gt;
&lt;br /&gt;
=== Creating working directory ===&lt;br /&gt;
&lt;br /&gt;
Create a standalone folder, e.g. mkdir ~/dosslip&lt;br /&gt;
&lt;br /&gt;
=== Creating files ===&lt;br /&gt;
&lt;br /&gt;
Only slipbox.sh and mapper.map is needed. slipbox.sh should be saved from this site, and mapper.map could be created by invoking&lt;br /&gt;
&lt;br /&gt;
 dosbox -conf /dev/null .&lt;br /&gt;
&lt;br /&gt;
in dosslip folder (ctrl-f1, save). Rename mapper* to mapper.map, then edit it: replace 'key_lalt' line to 'key_lalt &amp;quot;key 305&amp;quot;'&lt;br /&gt;
&lt;br /&gt;
Set attributes of slipbox.sh:&lt;br /&gt;
&lt;br /&gt;
 chmod 755 slipbox.sh&lt;br /&gt;
&lt;br /&gt;
Optionally, you can get and place ETHERSL.COM from crynwr packet driver collection and IRCJR.EXE from mTCP collection, but these are downloaded during the running of dosslip, if they don't exist.&lt;br /&gt;
&lt;br /&gt;
=== Launch ./slipbox.sh ===&lt;br /&gt;
&lt;br /&gt;
Do it with sudo:&lt;br /&gt;
&lt;br /&gt;
 sudo ./slipbox.sh&lt;br /&gt;
&lt;br /&gt;
If everything is okay, you can get similar result like this:&lt;br /&gt;
&lt;br /&gt;
[[File:dosbox_slip_ircjr.gif]]&lt;br /&gt;
&lt;br /&gt;
=== Links ===&lt;br /&gt;
&lt;br /&gt;
* http://www.brutman.com/mTCP/mTCP.html&lt;br /&gt;
* http://crynwr.com/drivers/&lt;/div&gt;</summary>
		<author><name>Naszvadi</name></author>
	</entry>
</feed>