<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4519&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Devuan Chimaera gateway  setup]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4519</link>
		<description><![CDATA[The most recent posts in [SOLVED] Devuan Chimaera gateway  setup.]]></description>
		<lastBuildDate>Tue, 28 Sep 2021 20:21:14 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Devuan Chimaera gateway  setup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31763#p31763</link>
			<description><![CDATA[<p>Thanks for the update on the WAP (wireless access point) part.<br />Waiting on a new wireless nic card for the server. will update when I get back on this.</p><p>Again thanks for your help.</p>]]></description>
			<author><![CDATA[dummy@example.com (etech3)]]></author>
			<pubDate>Tue, 28 Sep 2021 20:21:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31763#p31763</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Devuan Chimaera gateway  setup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31723#p31723</link>
			<description><![CDATA[<p>That will need a slight revision to your <span class="bbc">ifupdown</span> setup.</p><p>Firstly you may want to install <span class="bbc">hostapd</span> and <span class="bbc">bridge-utils</span>. </p><p><span class="bbc">hostapd</span> provides the software needed for running an access point. <span class="bbc">bridge-utils</span> provides the software for combining interfaces (<span class="bbc">eth1</span> and <span class="bbc">wlan0</span>) into a common network through a virtual &quot;bridge&quot; interface.</p><p>Note that <span class="bbc">hostapd</span> gets &quot;deployed&quot; when installed, and like for dnsmasq, you&#039;ll need to disable that:</p><div class="codebox"><pre><code># service hostapd stop
# update-rc.d hostapd disable</code></pre></div><p>The previous setup is now split up such that DHCP is provided on the bridge which is configured with eth1 and wlan0 as its ports. The new setup in <span class="bbc">/etc/network/interfaces.d/downlink.conf</span> might be as follows:</p><div class="codebox"><pre><code># Virtual bridge interface with DHCP service
iface subnet inet static
    address 192.168.200.1/24
    bridge_ports none
    up /usr/sbin/dnsmasq -i subnet -a 192.168.200.1 -I lo -I wlan0 -I eth0 -I eth1 \
       -p 0 -K -D -N -b --dhcp-sequential-ip \
       --dhcp-option=3,192.168.200.1 \
       --dhcp-option=6,$DNSHOST \
       -F 192.168.200.2,192.168.200.254,255.255.255.0,192.168.200.255 \
       --dhcp-hostsfile=/var/run/subnet.dhcphosts
    down pkill -f &#039;dnsmasq -i subnet&#039;

# The cable interface
iface eth1 inet manual
    up brctl addif subnet $IFACE

# The wireless interface
iface wlan0 inet manual
    hostapd /etc/hostapd/mywifi.conf
    up brctl addif subnet $IFACE</code></pre></div><p>Then you need to configure your access point in <span class="bbc">/etc/hostapd/mywifi.conf</span> perhaps as follows:</p><div class="codebox"><pre><code>interface=wlan0
country_code=AU
hw_mode=g
channel=5
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
ssid=mywifi
wpa=2
wpa_passphrase=abadaba001133557799
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256</code></pre></div><p>There are &quot;millions&quot; of options that may be set and varied; especially you will want to confirm or change <span class="bbc">ssid</span> and <span class="bbc">wpa_passphrase</span>. Look at <span class="bbc">/usr/share/doc/hostapd/examples/hostapd.conf</span> for inspiration.</p><p>When it works, you bring it up with <span class="bbc">subnet</span> first, then <span class="bbc">eth0</span> and then <span class="bbc">wlan0</span>. </p><div class="codebox"><pre><code># ifup subnet
# ifup eth1
# ifup wlan0</code></pre></div><p>Note that some people prefer to name the bridge as <span class="bbc">br0</span> whereas I like the more intentional naming <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Also, note that the bridge interface, <span class="bbc">subnet</span>, will use the MAC address of one of its ports. If that port interface is taken down, then that bridge will change its MAC address to that of the remaining port. This is a feature of bridge interfaces which sometimes causes confusion.</p><p>EDIT: corrected the <span class="bbc">subnet</span> configuration which had bad copy-paste remnants that mentioned <span class="bbc">eth1</span> wrongly.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 25 Sep 2021 02:36:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31723#p31723</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Devuan Chimaera gateway  setup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31722#p31722</link>
			<description><![CDATA[<p>Thanks for the&#160; help. So far, so good. Gonna mark as solved and move on to the next test which is adding a wireless nic and turn it into a WAP (wireless access point)</p>]]></description>
			<author><![CDATA[dummy@example.com (etech3)]]></author>
			<pubDate>Fri, 24 Sep 2021 22:03:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31722#p31722</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Devuan Chimaera gateway  setup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31698#p31698</link>
			<description><![CDATA[<p>Setup for ipv4</p><ol class="decimal"><li><p>Enable forwarding for the kernel:</p><div class="codebox"><pre><code># sysctl net.ipv4.ip_forward=1</code></pre></div></li><li><p>Add a masquerading rule to the kernel&#039;s networking:</p><div class="codebox"><pre><code># iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</code></pre></div></li><li><p>Set up ifupdown configuration for <span class="bbc">eth1</span> using <span class="bbc">dnsmasq</span> for DHCP.<br />&#160; </p><ol class="alpha"><li><p>This involves the initial step of disabling its default deployment that you get when installing it, and then just use it for downlink DHCP service. Something like the folllowing:</p><div class="codebox"><pre><code># sed &#039;s/ENABLED=1/ENABLED=0/&#039; -i /etc/dnsmasq/default
# update-rc.d dnsmasq stop
# update-rc.d dnsmasq disable</code></pre></div></li><li><p>Write a file <span class="bbc">/etc/network/interfaces.d/downlink.conf</span> with the following, where you replace $DNSHOST with the ip address of your DNS server:</p><div class="codebox"><pre><code>iface eth1 inet static
address 192.168.200.1/24
    up /usr/sbin/dnsmasq -i eth1 -a 192.168.200.1 -I lo -I wlan0 -I eth0 \
       -p 0 -K -D -N -b --dhcp-sequential-ip \
       --dhcp-option=3,192.168.200.1 \
       --dhcp-option=6,$DNSHOST \
       -F 192.168.200.2,192.168.200.254,255.255.255.0,192.168.200.255 \
       --dhcp-hostsfile=/var/run/eth1.dhcphosts
    down pkill -f &#039;dnsmasq -i eth1&#039;</code></pre></div><p>&#160; </p></li></ol></li><li><p>Make sure your <span class="bbc">/etc/network/interfaces</span> includes that configuration with e.g. a line:</p><div class="codebox"><pre><code>source /etc/network/interfaces.d/downlink.conf</code></pre></div><p>(or with the wildcard statement <span class="bbc">source /etc/network/interfaces.d/*</span> that is a debian default)</p></li><li><p>Bring up eth1 with that configuration</p><div class="codebox"><pre><code># ifup eth1</code></pre></div><p>This will also start <span class="bbc">dnsmasq</span> for serving IP addresses via DHCP on <span class="bbc">eth1</span>, and it will also store the allocations in the file <span class="bbc">/var/run/eth1.dhcphosts</span>. <span class="bbc">dnsmasq</span> is killed when <span class="bbc">eth1</span> is deconfigured with <span class="bbc">ifdown</span> or <span class="bbc">ifdown --force</span>.</p></li></ol><p>I think that would be all, but I do forget things now and then.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Wed, 22 Sep 2021 03:30:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31698#p31698</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Devuan Chimaera gateway  setup]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31691#p31691</link>
			<description><![CDATA[<p>Devuan Chimaera gateway&#160; setup</p><p>My oldest test machine is a 32 bit Aopen P4 20 Gig hard drive with 2 Gig of memory. This machine is over 20 years old and still runs fine. As a headless machine, I want to set up arouter/gateway on this machine.</p><p>I need&#160; a howto showing the steps needed. This machine has 2 nics built in. After this is setup, I want to add a wireless usb card later as a wireless access point.</p><p>I need to use this as a stand alone router. Eth0 is for Wan with Eth1 for Lan connections. I want DHCP, NAT and other components.</p><p>Need lots of help on this test as it has been over 15 years since I have done this and a lot has changed.</p><p>TIA</p>]]></description>
			<author><![CDATA[dummy@example.com (etech3)]]></author>
			<pubDate>Tue, 21 Sep 2021 15:41:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31691#p31691</guid>
		</item>
	</channel>
</rss>
