<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Internet Sharing mit Linux]]></title><description><![CDATA[<p>Moin,<br />
ich versuche gerade, meine Linux-Kiste als Gateway ins Internet hinzubiegen. Irgendwie klappt das aber noch nicht so recht.<br />
Was ich versucht habe:</p>
<pre><code>sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo sysctl -w net/ipv4/ip_forward=1
sudo /etc/init.d/dnsmasq restart
sudo /etc/init.d/ipmasq restart
</code></pre>
<p>Dabei ist wlan0 meine Verbindung ins Internet, und eth0 die Verbindung, über die ich versuche zu sharen.<br />
Ich würde jetzt eigentlich erwarten, dass es so funktioniert, sofern ich auf den Clients die Linux-Kiste als Standard-Gateway und DNS eintrage. Tut es aber leider nicht. Die Rechner können sich im lokalen Netz alle untereinander erreichen.<br />
Wo liegt der Fehler?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/235832/internet-sharing-mit-linux</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 13:44:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/235832.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Mar 2009 22:43:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Internet Sharing mit Linux on Fri, 06 Mar 2009 22:43:13 GMT]]></title><description><![CDATA[<p>Moin,<br />
ich versuche gerade, meine Linux-Kiste als Gateway ins Internet hinzubiegen. Irgendwie klappt das aber noch nicht so recht.<br />
Was ich versucht habe:</p>
<pre><code>sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo sysctl -w net/ipv4/ip_forward=1
sudo /etc/init.d/dnsmasq restart
sudo /etc/init.d/ipmasq restart
</code></pre>
<p>Dabei ist wlan0 meine Verbindung ins Internet, und eth0 die Verbindung, über die ich versuche zu sharen.<br />
Ich würde jetzt eigentlich erwarten, dass es so funktioniert, sofern ich auf den Clients die Linux-Kiste als Standard-Gateway und DNS eintrage. Tut es aber leider nicht. Die Rechner können sich im lokalen Netz alle untereinander erreichen.<br />
Wo liegt der Fehler?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675548</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Fri, 06 Mar 2009 22:43:13 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 01:35:34 GMT]]></title><description><![CDATA[<p>ich würde auch noch dazu nehmen:</p>
<pre><code>$ sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT
$ sudo echo 1 &gt; /proc/sys/net/ipv4/ip_forward
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1675579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675579</guid><dc:creator><![CDATA[supertux]]></dc:creator><pubDate>Sat, 07 Mar 2009 01:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 10:48:24 GMT]]></title><description><![CDATA[<p>supertux schrieb:</p>
<blockquote>
<p>ich würde auch noch dazu nehmen:</p>
<pre><code>$ sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT
$ sudo echo 1 &gt; /proc/sys/net/ipv4/ip_forward
</code></pre>
</blockquote>
<p>Hmm, das werde ich mal testen. Aber macht die zweite Zeile nicht das gleiche wie</p>
<pre><code>sudo sysctl -w net/ipv4/ip_forward=1
</code></pre>
<p>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675623</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Sat, 07 Mar 2009 10:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 11:57:44 GMT]]></title><description><![CDATA[<p>Das sieht ja mal interessant aus. Wo gibts den dieses Betriebssystem, dass man so einfach konfigurieren kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675645</guid><dc:creator><![CDATA[iron ee]]></dc:creator><pubDate>Sat, 07 Mar 2009 11:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 12:01:59 GMT]]></title><description><![CDATA[<blockquote>
<p>Das sieht ja mal interessant aus. Wo gibts den dieses Betriebssystem, dass man so einfach konfigurieren kann?</p>
</blockquote>
<p>Das ist auch nicht schwerer, als einen Cisco Router einrichten. Ganz simpel, wenn man alles mal gemacht hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675649</guid><dc:creator><![CDATA[Ivo]]></dc:creator><pubDate>Sat, 07 Mar 2009 12:01:59 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 12:49:35 GMT]]></title><description><![CDATA[<p>iron ee schrieb:</p>
<blockquote>
<p>Das sieht ja mal interessant aus. Wo gibts den dieses Betriebssystem, dass man so einfach konfigurieren kann?</p>
</blockquote>
<p>Manchmal gibt es auch ein graphisches Frontend dazu. Dann haste auch dein KlickiBunti.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675655</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Sat, 07 Mar 2009 12:49:35 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 12:35:26 GMT]]></title><description><![CDATA[<p>Klingt ja fast nach einen neuen Projekt. Mal einen einfachen ip tables Generator schreiben...</p>
<p>Ivo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675662</guid><dc:creator><![CDATA[Ivo]]></dc:creator><pubDate>Sat, 07 Mar 2009 12:35:26 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 14:51:46 GMT]]></title><description><![CDATA[<p>Tachyon schrieb:</p>
<blockquote>
<p>Hmm, das werde ich mal testen. Aber macht die zweite Zeile nicht das gleiche wie</p>
<pre><code>sudo sysctl -w net/ipv4/ip_forward=1
</code></pre>
<p>?</p>
</blockquote>
<p>ja, hab dein sysctl übersehen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>also, bei mir musste ich nur diese beide iptables Befehle ausführen und ip_forward auf 1 setzen.</p>
<p>Du sagst wlan0 ist dein gateway. Bist du sicher? Wenn du einen VPN Tunnel oder so was in der Art hast, kann es sein, dass du eher ein tun0 device hast, welches der echte Gateway ist. Zeig mal die (Netzwerk-)Konfiguration deines Rechners an, der als Router arbeiten soll. Poste mal die Ausgabe von <code>ifconfig</code> und <code>route</code></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675735</guid><dc:creator><![CDATA[supertux]]></dc:creator><pubDate>Sat, 07 Mar 2009 14:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 16:58:05 GMT]]></title><description><![CDATA[<p>Ivo schrieb:</p>
<blockquote>
<p>Klingt ja fast nach einen neuen Projekt. Mal einen einfachen ip tables Generator schreiben...</p>
<p>Ivo</p>
</blockquote>
<p>gibbet doch schon mehrere <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p><a href="http://freshmeat.net/search/?q=iptables+gui" rel="nofollow">http://freshmeat.net/search/?q=iptables+gui</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675785</guid><dc:creator><![CDATA[nichts neues]]></dc:creator><pubDate>Sat, 07 Mar 2009 16:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sat, 07 Mar 2009 22:45:53 GMT]]></title><description><![CDATA[<p>supertux schrieb:</p>
<blockquote>
<p>...</p>
</blockquote>
<p>Ja, ich benutze im Moment wirklich wlan, um mich ins Netz zu verbinden. Ich bin da dank der Telekom im Moment in einer etwas merkwürdigen Situation...</p>
<p>Leider hat das so alles nicht funktioniert. Ich habe nun allerdings eine &quot;Workaround&quot; mit xming gebastelt, und starte den Feuerfuchs auf der Linux-Kiste. Das tut es eigentlich auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675933</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Sat, 07 Mar 2009 22:45:53 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sun, 08 Mar 2009 04:51:24 GMT]]></title><description><![CDATA[<p>nichts neues schrieb:</p>
<blockquote>
<p>Ivo schrieb:</p>
<blockquote>
<p>Klingt ja fast nach einen neuen Projekt. Mal einen einfachen ip tables Generator schreiben...</p>
<p>Ivo</p>
</blockquote>
<p>gibbet doch schon mehrere <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p><a href="http://freshmeat.net/search/?q=iptables+gui" rel="nofollow">http://freshmeat.net/search/?q=iptables+gui</a></p>
</blockquote>
<p>Ja aber einen einfachen, der IP Tables auch fuer den durchschnittlichen Windows User (oder Yast Looser) konfiguriert...Der Fw Builder ist ja nun mal nicht sonderlich komfortabel...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675994</guid><dc:creator><![CDATA[Ivo]]></dc:creator><pubDate>Sun, 08 Mar 2009 04:51:24 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sun, 08 Mar 2009 13:42:45 GMT]]></title><description><![CDATA[<p>Tachyon schrieb:</p>
<blockquote>
<p>supertux schrieb:</p>
<blockquote>
<p>...</p>
</blockquote>
<p>Ja, ich benutze im Moment wirklich wlan, um mich ins Netz zu verbinden. Ich bin da dank der Telekom im Moment in einer etwas merkwürdigen Situation...</p>
<p>Leider hat das so alles nicht funktioniert. Ich habe nun allerdings eine &quot;Workaround&quot; mit xming gebastelt, und starte den Feuerfuchs auf der Linux-Kiste. Das tut es eigentlich auch.</p>
</blockquote>
<p>Poste mal die Ausgabe von <code>ifconfig</code> und <code>route</code> , wenn deine Linux Kiste online ist. Btw: bist du sicher, dass die Clients di IP per DHCP bekommen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676113</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676113</guid><dc:creator><![CDATA[supertux]]></dc:creator><pubDate>Sun, 08 Mar 2009 13:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to Internet Sharing mit Linux on Sun, 08 Mar 2009 19:47:42 GMT]]></title><description><![CDATA[<p>supertux schrieb:</p>
<blockquote>
<p>Poste mal die Ausgabe von <code>ifconfig</code> und <code>route</code> , wenn deine Linux Kiste online ist. Btw: bist du sicher, dass die Clients di IP per DHCP bekommen?</p>
</blockquote>
<p>Ich habs nu mit statischen IPs, und es geht. Keine Ahunung, was nun der konkrete Grund dafür war, dass es nicht ging.</p>
<p>Danke auf jeden Fall...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676347</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676347</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Sun, 08 Mar 2009 19:47:42 GMT</pubDate></item></channel></rss>