<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlpinePhil</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlpinePhil"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/AlpinePhil"/>
	<updated>2026-04-30T09:40:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=31008</id>
		<title>User:AlpinePhil</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=31008"/>
		<updated>2025-09-24T18:47:02Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* TODOs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==TODOs==&lt;br /&gt;
Done. Nothing to see here.&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Talk:Raspberry_Pi_3_-_Configuring_it_as_wireless_access_point_-AP_Mode&amp;diff=31007</id>
		<title>Talk:Raspberry Pi 3 - Configuring it as wireless access point -AP Mode</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Talk:Raspberry_Pi_3_-_Configuring_it_as_wireless_access_point_-AP_Mode&amp;diff=31007"/>
		<updated>2025-09-24T18:46:23Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: proposal for merge&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This works.  The only thing I don&#039;t like is that it seems I have to restart the Pi for it to come up stably as an AP.  What I mean is if I do everything as specified on the wiki page and then restart ONLY the networking, I can see the Pi in the scan list of my peripheral device (my phone for instance) but only for about 10-20 seconds; then it disappears.  If I connect to the Pi during said 10-20 second interval, it connects but then disconnects after the 10-20 seconds have passed.  However, once I restart the Pi, it shows up in my peripheral device&#039;s scan list and stays.  Then I can connect to it and the connection persists indefinitely.  Anybody know how to get the Pi into AP mode and have it persist WITHOUT rebooting?&lt;br /&gt;
&lt;br /&gt;
BTW, I have tried running a script which stops a bunch services and then starts them back up (similar to when the Pi boots), but that does not help; as described above, I have to reboot the Pi for the AP mode to persist.  Here is the aforementioned script:&lt;br /&gt;
&lt;br /&gt;
=AP Mode Script=&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # SETUP GREENBOX AS WIRELESS ACCESS POINT&lt;br /&gt;
 # Stop services&lt;br /&gt;
 service sshd stop&lt;br /&gt;
 service crond stop&lt;br /&gt;
 service chronyd stop&lt;br /&gt;
 service dbus stop&lt;br /&gt;
 service hostapd stop&lt;br /&gt;
 service dnsmasq stop&lt;br /&gt;
 service syslog stop&lt;br /&gt;
 service klogd stop&lt;br /&gt;
 service networking stop&lt;br /&gt;
 service mdev stop&lt;br /&gt;
 service acpid stop&lt;br /&gt;
 #Copy over configuration files with content per https://wiki.alpinelinux.org/wiki/Raspberry_Pi_3_-_Configuring_it_as_wireless_access_point_-AP_Mode&lt;br /&gt;
 cp -f /etc/hostapd/hostapd.conf.field /etc/hostapd/hostapd.conf&lt;br /&gt;
 cp -f /etc/dnsmasq.conf.field /etc/dnsmasq.conf&lt;br /&gt;
 cp -f /etc/network/interfaces.field /etc/network/interfaces&lt;br /&gt;
 #Commit the changes&lt;br /&gt;
 lbu ci -d&lt;br /&gt;
 #Wipe the tmp folder&lt;br /&gt;
 rm -rf /tmp&lt;br /&gt;
 #Start services&lt;br /&gt;
 service acpid start&lt;br /&gt;
 service mdev start&lt;br /&gt;
 service networking start&lt;br /&gt;
 service klogd start&lt;br /&gt;
 service syslog start&lt;br /&gt;
 service dnsmasq start&lt;br /&gt;
 service hostapd start&lt;br /&gt;
 service dbus start&lt;br /&gt;
 service chronyd start&lt;br /&gt;
 service crond start&lt;br /&gt;
 service sshd start&lt;br /&gt;
 &lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
BB&lt;br /&gt;
&lt;br /&gt;
==Proposal to merge==&lt;br /&gt;
&lt;br /&gt;
I propose that this page be merged to the [[How to setup a wireless access point]] page as it is largely duplicate material, and some of this information in this page is either out-dated or could be displayed with less duplication as an optional step within that how to.&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_3_-_Configuring_it_as_wireless_access_point_-AP_Mode&amp;diff=31006</id>
		<title>Raspberry Pi 3 - Configuring it as wireless access point -AP Mode</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_3_-_Configuring_it_as_wireless_access_point_-AP_Mode&amp;diff=31006"/>
		<updated>2025-09-24T18:44:42Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Propose merge&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Merge|How to setup a wireless access point}}&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
{{Todo|Was the raspberrypi-libs package renamed... or is it even still required?}}&lt;br /&gt;
&lt;br /&gt;
=Install the necessary firmware=&lt;br /&gt;
&lt;br /&gt;
 apk add {{pkg|linux-firmware-brcm|arch=a*}} {{pkg|raspberrypi-libs|arch=a*|branch=v3.17}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Install hostapd and dnsmasq=&lt;br /&gt;
&lt;br /&gt;
 apk add {{pkg|hostapd|arch=a*}} {{pkg|dnsmasq|arch=a*}}&lt;br /&gt;
&lt;br /&gt;
=Configure /etc/hostapd/hostapd.conf=&lt;br /&gt;
&lt;br /&gt;
 interface=wlan0&lt;br /&gt;
 driver=nl80211&lt;br /&gt;
 ssid=Pi3-AP&lt;br /&gt;
 hw_mode=g&lt;br /&gt;
 channel=1&lt;br /&gt;
 macaddr_acl=0&lt;br /&gt;
 auth_algs=1&lt;br /&gt;
 wpa=2&lt;br /&gt;
 wpa_key_mgmt=WPA-PSK&lt;br /&gt;
 wpa_passphrase=raspberry&lt;br /&gt;
 rsn_pairwise=CCMP&lt;br /&gt;
 wpa_pairwise=CCMP&lt;br /&gt;
&lt;br /&gt;
=Configure your /etc/dnsmasq.conf=&lt;br /&gt;
&lt;br /&gt;
 interface=wlan0&lt;br /&gt;
 dhcp-range=10.0.0.2,10.0.0.5,255.255.255.0,12h&lt;br /&gt;
&lt;br /&gt;
=Configure Static ips for wlan0 in the file /etc/network/interfaces=&lt;br /&gt;
&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet static&lt;br /&gt;
   address 10.0.0.1&lt;br /&gt;
   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
=Start the services=&lt;br /&gt;
&lt;br /&gt;
 service dnsmasq start&lt;br /&gt;
 service hostapd start&lt;br /&gt;
&lt;br /&gt;
=Enable the Services permanently on every bootup=&lt;br /&gt;
&lt;br /&gt;
 rc-update add dnsmasq     &lt;br /&gt;
 rc-update add hostapd &lt;br /&gt;
&lt;br /&gt;
(to del)&lt;br /&gt;
&lt;br /&gt;
 rc-update del dnsmasq     &lt;br /&gt;
 rc-update del hostapd &lt;br /&gt;
&lt;br /&gt;
(or)&lt;br /&gt;
&lt;br /&gt;
 rc-update add dnsmasq boot    &lt;br /&gt;
 rc-update add hostapd boot    &lt;br /&gt;
&lt;br /&gt;
(to del)&lt;br /&gt;
&lt;br /&gt;
 rc-update del dnsmasq boot    &lt;br /&gt;
 rc-update del hostapd boot&lt;br /&gt;
&lt;br /&gt;
=Commit all changes to files=&lt;br /&gt;
&lt;br /&gt;
Make sure you run the command shown below to commit all changes, otherwise they will be lost on reboot.&lt;br /&gt;
&lt;br /&gt;
 lbu ci&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
https://gist.github.com/atlury/fe0ea8b91a981c103df7&lt;br /&gt;
&lt;br /&gt;
https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/{{dead link}}&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
oneinsect@gmail.com&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;br /&gt;
[[Category:Embedded Systems]]&lt;br /&gt;
[[category: Raspberry]]&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Talk:How_to_set_up_Alpine_as_a_wireless_router&amp;diff=31005</id>
		<title>Talk:How to set up Alpine as a wireless router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Talk:How_to_set_up_Alpine_as_a_wireless_router&amp;diff=31005"/>
		<updated>2025-09-24T18:43:22Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Created page with &amp;quot;I propose merging this into the How to setup a wireless access point page as it contains largely duplicate material to that page, which is cleaner in style. Other information here largely pertains to the router aspect, which is covered in multiple other specific pages.  ~~~~&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I propose merging this into the How to setup a wireless access point page as it contains largely duplicate material to that page, which is cleaner in style. Other information here largely pertains to the router aspect, which is covered in multiple other specific pages.&lt;br /&gt;
&lt;br /&gt;
[[User:AlpinePhil|AlpinePhil]] ([[User talk:AlpinePhil|talk]]) 18:43, 24 September 2025 (UTC)&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=How_to_set_up_Alpine_as_a_wireless_router&amp;diff=31004</id>
		<title>How to set up Alpine as a wireless router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=How_to_set_up_Alpine_as_a_wireless_router&amp;diff=31004"/>
		<updated>2025-09-24T18:41:44Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Style}}&lt;br /&gt;
{{Merge|How to setup a wireless access point}}&lt;br /&gt;
&lt;br /&gt;
=== Pi Zero W Wireless Router ===&lt;br /&gt;
&lt;br /&gt;
This page describes building a Wireless Access Point with two wired ethernet ports for building a home router that connects to the internet with one wired port, and an internal LAN with the second wired port and the on-board WiFi.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The intent is to provide this:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
                                    |&amp;lt;--&amp;gt;eth1 &amp;lt;--&amp;gt;| &lt;br /&gt;
Internet &amp;lt;--&amp;gt; eth0 &amp;lt;--&amp;gt;FireWall&amp;lt;--&amp;gt;br0           Internal&amp;lt;--&amp;gt; ssh,bind,dhcp, with ssh reverse ssh connections.&lt;br /&gt;
                                    |&amp;lt;--&amp;gt;wlan0&amp;lt;--&amp;gt;|&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
I generally run Debian and  when forced by Red Hot Irons, Red Hat. This is my first foray into Alpine. So far I am very impressed. I mirrored the 3.12 armhf repos so I had things local when I needed them. Word to the wise, it comprises 13 GB of apk files.&amp;lt;br&amp;gt;&lt;br /&gt;
One *really* nice feature of Alpine is apk, the yum/apt replacement:&amp;lt;br&amp;gt;&lt;br /&gt;
* It is simple and to the point.&lt;br /&gt;
* The same tool provides *repo* level dependency reporting!&lt;br /&gt;
* Install of single packages without repo signing (I never did get the signing correct, but I can install).&lt;br /&gt;
&lt;br /&gt;
=== Prepare ===&lt;br /&gt;
* Obtain a microSD card (or HDD) you can wipe the data from. We will assume it is /dev/sdc.&lt;br /&gt;
* Make a 256M FAT16 partition (sudo mkfs.vfat -n ALPBOOT /dev/sdc1)&lt;br /&gt;
* The rest of the device can be ext2 (ext3/4 on HDD) (sudo mke2fs -m1 -L alext3 /dev/sdc2).&lt;br /&gt;
* Untar the alpine-rpi-3.12.3-armhf.tar.gz and copy all of the files to the fat16 partition which can be as large as 2G. &lt;br /&gt;
* Make sure you have all the packages from the package list below installed on the SD card. This will save you lots of time.&lt;br /&gt;
* Add this to usercfg.txt at the root of the FAT16 partition:&lt;br /&gt;
  enable_uart=1&lt;br /&gt;
  gpu_mem=16&lt;br /&gt;
  dtparam=audio=off&lt;br /&gt;
* This is the contents of cmdline.txt:&lt;br /&gt;
  modules=loop,squashfs,sd-mod,usb-storage console=tty1 console=ttyAMA0,115200&lt;br /&gt;
&lt;br /&gt;
=== First Boot ===&lt;br /&gt;
* Put the SD into the pi zero&lt;br /&gt;
* Connect the serial port&lt;br /&gt;
* Run minicom with the parameters set to 115200,n,8,1, no flow control.&lt;br /&gt;
* Power up the Pi.&lt;br /&gt;
&lt;br /&gt;
=== Copy Root ===&lt;br /&gt;
* mkdir /stage&lt;br /&gt;
* mount /dev/sda2 /stage&lt;br /&gt;
* for d in $(ls -1 /|grep -v &#039;media\|stage\|dev\|proc\|sys&#039;); do cp -a /$d /stage; done&lt;br /&gt;
* modules are loop mounted to /.modloop, and lib/modules is symlinked to that, so&lt;br /&gt;
* rm /stage/lib/modules&lt;br /&gt;
* cp -a /.modloop /stage/lib/modules&lt;br /&gt;
* Fix cmdline.txt&lt;br /&gt;
  mount -o remount,rw /media/mmcblk0p1&lt;br /&gt;
  echo &#039;root=/dev/mmcblk0p2&#039; &amp;gt;&amp;gt; /media/mmcblk0p1/cmdline.txt&lt;br /&gt;
* reboot&lt;br /&gt;
&lt;br /&gt;
=== Install ===&lt;br /&gt;
* verify you are now operating from the ext2 filesystem where you copied the rootfs.&lt;br /&gt;
* install openssh, openssh-server, openssh-client, openssh-server-common,&lt;br /&gt;
* install dnsmasq, ethtool, hostapd*, busybox extras, iptables*, iw,net-tools, tree, wireless-tools.&lt;br /&gt;
* edit all the configurations supplied here.&lt;br /&gt;
&lt;br /&gt;
===== ssh config =====&lt;br /&gt;
The allowed users are not normal names since I want the names to be a little obfuscated. Not that it really matters, since this is a key driven setup&amp;lt;br&amp;gt;&lt;br /&gt;
AddressFamily inet&amp;lt;br&amp;gt;&lt;br /&gt;
ListenAddress 0.0.0.0&amp;lt;br&amp;gt;&lt;br /&gt;
HostKey /etc/ssh/ssh_host_rsa_key&amp;lt;br&amp;gt;&lt;br /&gt;
LogLevel INFO&amp;lt;br&amp;gt;&lt;br /&gt;
LoginGraceTime 30&amp;lt;br&amp;gt;&lt;br /&gt;
PermitRootLogin no&amp;lt;br&amp;gt;&lt;br /&gt;
StrictModes yes&amp;lt;br&amp;gt;&lt;br /&gt;
AllowUsers Som123X Extern4524User&amp;lt;br&amp;gt;&lt;br /&gt;
PubkeyAuthentication yes&amp;lt;br&amp;gt;&lt;br /&gt;
AuthorizedKeysFile	/etc/ssh/authorized_keys&amp;lt;br&amp;gt;&lt;br /&gt;
HostbasedAuthentication yes&amp;lt;br&amp;gt;&lt;br /&gt;
IgnoreUserKnownHosts yes&amp;lt;br&amp;gt;&lt;br /&gt;
IgnoreRhosts yes&amp;lt;br&amp;gt;&lt;br /&gt;
PasswordAuthentication no&amp;lt;br&amp;gt;&lt;br /&gt;
ChallengeResponseAuthentication no&amp;lt;br&amp;gt;&lt;br /&gt;
AllowTcpForwarding yes&amp;lt;br&amp;gt;&lt;br /&gt;
GatewayPorts yes&amp;lt;br&amp;gt;&lt;br /&gt;
X11Forwarding no&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== dnsmasq.conf =====&lt;br /&gt;
/etc/dnsmasq.conf&amp;lt;br&amp;gt;&lt;br /&gt;
This has two subnets. One for normal dhcp, the other for pseudo static - dhcp provided by MAC. One example here.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
interface=br0&lt;br /&gt;
except-interface=eth0&lt;br /&gt;
dhcp-range=subnet0,192.168.0.10,192.168.0.100,255.255.255.0,24h&lt;br /&gt;
dhcp-range=subnet1,192.168.0.4,192.168.0.6,255.255.255.0,24h&lt;br /&gt;
bind-interfaces&lt;br /&gt;
#log-queries&lt;br /&gt;
#log-dhcp&lt;br /&gt;
dhcp-host=70:85:66:c4:48:55,192.168.0.4,nas&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== /etc/hosts =====&lt;br /&gt;
dnsmasq provides DNS answers from the hosts file. Nice. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
127.0.0.1	localhost localhost.localdomain&lt;br /&gt;
::1		localhost localhost.localdomain&lt;br /&gt;
192.168.0.3     wireless&lt;br /&gt;
192.168.0.4     nas&lt;br /&gt;
192.168.0.5     mpd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== hostapd.conf =====&lt;br /&gt;
/etc/hostapd/hostapd.conf&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
interface=wlan0&lt;br /&gt;
bridge=br0&lt;br /&gt;
hw_mode=g&lt;br /&gt;
channel=7&lt;br /&gt;
wmm_enabled=0&lt;br /&gt;
macaddr_acl=0&lt;br /&gt;
auth_algs=1&lt;br /&gt;
ignore_broadcast_ssid=0&lt;br /&gt;
wpa=2&lt;br /&gt;
wpa_key_mgmt=WPA-PSK&lt;br /&gt;
wpa_pairwise=TKIP&lt;br /&gt;
rsn_pairwise=CCMP&lt;br /&gt;
ssid=Whatever&lt;br /&gt;
wpa_passphrase=YouMakeItUp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== interfaces =====&lt;br /&gt;
/etc/network/interfaces&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet dhcp&lt;br /&gt;
        hostname ANYNAME&lt;br /&gt;
        hwaddress ether FE:ED:BE:EF:33:DD&lt;br /&gt;
&lt;br /&gt;
iface eth1 inet manual&lt;br /&gt;
iface wlan0 inet manual&lt;br /&gt;
&lt;br /&gt;
auto br0&lt;br /&gt;
iface br0 inet static&lt;br /&gt;
        pre-up ifconfig eth1 up&lt;br /&gt;
        bridge-ports eth1 wlan0&lt;br /&gt;
        bridge-stp off&lt;br /&gt;
        address 192.168.0.3&lt;br /&gt;
        broadcaset 192.168.1.255&lt;br /&gt;
        netmask 255.255.255.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Permissive iptables =====&lt;br /&gt;
Do NOT use this connected to the internet! There is NO protection.&amp;lt;br&amp;gt;&lt;br /&gt;
This is my stopopen in my replacement iptables&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -P INPUT ACCEPT&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -F INPUT&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -P OUTPUT ACCEPT&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -F OUTPUT&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -P FORWARD ACCEPT&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -F FORWARD&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -F -t nat&amp;lt;br&amp;gt;&lt;br /&gt;
iptables -F&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== References ===&lt;br /&gt;
apk notes:&lt;br /&gt;
&lt;br /&gt;
* Create, index and check dependencies on a list of apk files: apk index -o APKINDEX.unsigned.tar.gz *.apk&lt;br /&gt;
* Install a package: apk add iw OR apk add /path/to/iw-5.4-r0.apk&lt;br /&gt;
* remove a package: apk del iw&lt;br /&gt;
* repository lists are in: /etc/apk/repositories&lt;br /&gt;
  * Local URL: /media/mmcblk0p1/apks&lt;br /&gt;
  * Remote URL: http://dl-cdn.alpinelinux.org/alpine/v3.12/main&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/File_Allocation_Table FAT16/32 limits]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://udhcp.busybox.net/README.udhcpc udhcpc]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://linux.die.net/man/8/ez-ipupdate ez-ipupdate]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Alpine_Linux:FAQ#Dynamic_DNS|Dynamic_DNS]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Bridge|Alpine Linux Bridge]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Connecting_to_a_wireless_access_point|Connect to wireless AP]]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://unix.stackexchange.com/questions/222264/how-do-i-limit-dnsmasq-listening-to-only-one-interface dnsmasq listen restrictions]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://wiki.archlinux.org/index.php/IPv6#Disable_IPv6 Disable IPV6]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://github.com/imp/dnsmasq/blob/master/dnsmasq.conf.example dnsmasq Docs]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://man.openbsd.org/hostapd.conf.5 HostApd Docs]&amp;lt;br&amp;gt;&lt;br /&gt;
[rsync://rsync.alpinelinux.org/alpine Alpine Repos]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://stevessmarthomeguide.com/home-network-dns-dnsmasq Set Static DNS names]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://unix.stackexchange.com/questions/504100/how-to-create-ssh-reverse-tunnel-with-iptables-forwarding Reverse SSH tunnel]&amp;lt;br&amp;gt;&lt;br /&gt;
===== Pi Related =====&lt;br /&gt;
[https://github.com/rickyrockrat/nanopi-alpine NanoPi NEO build script]&amp;lt;br&amp;gt;&lt;br /&gt;
===== Pi Specific =====&lt;br /&gt;
[https://raspberrypi.stackexchange.com/questions/89803/access-point-as-wifi-router-repeater-optional-with-bridge/89804 Pi Wifi Repeater]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://raspberrypi.stackexchange.com/questions/81486/raspberry-pi-wifi-to-ethernet-bridge-for-a-server/81518 WiFi Bridge]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Raspberry_Pi|Alpine Install]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Classic_install_or_sys_mode_on_Raspberry_Pi|Classic Sys Install on Pi]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Not Related, but Interesting ====&lt;br /&gt;
[https://blog.thewalr.us/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi AP and Managed Mode]&amp;lt;br&amp;gt;&lt;br /&gt;
[https://www.instructables.com/Using-a-Raspberry-PI-Zero-W-As-an-Access-Point-and AP and MQTT]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Package List ====&lt;br /&gt;
Put these in the apks/armhf directory on the 256M Fat partition:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
iptables-1.8.4-r2.apk                       openssh-8.3_p1-r1.apk&lt;br /&gt;
iptables-openrc-1.8.4-r2.apk                openssh-client-8.3_p1-r1.apk&lt;br /&gt;
abuild-3.6.0-r1.apk                         iw-5.4-r0.apk                               openssh-keygen-8.3_p1-r1.apk&lt;br /&gt;
alpine-base-3.12.3-r0.apk                   kbd-bkeymaps-2.2.0-r2.apk                   openssh-server-8.3_p1-r1.apk&lt;br /&gt;
alpine-baselayout-3.2.0-r7.apk              libacl-2.2.53-r0.apk                        openssh-server-common-8.3_p1-r1.apk&lt;br /&gt;
alpine-conf-3.9.0-r1.apk                    libattr-2.4.48-r0.apk                       openssh-sftp-server-8.3_p1-r1.apk&lt;br /&gt;
alpine-keys-2.2-r0.apk                      libblkid-2.35.2-r0.apk                      openssl-1.1.1i-r0.apk&lt;br /&gt;
alpine-mirrors-3.5.10-r0.apk                libc-utils-0.7.2-r3.apk                     patch-2.7.6-r6.apk&lt;br /&gt;
apk-tools-2.10.5-r1.apk                     libcap-2.27-r0.apk                          pcsc-lite-libs-1.8.26-r0.apk&lt;br /&gt;
attr-2.4.48-r0.apk                          libcom_err-1.45.6-r0.apk                    pkgconf-1.7.2-r0.apk&lt;br /&gt;
bash-5.0.17-r0.apk                          libcrypto1.1-1.1.1i-r0.apk                  ppp-atm-2.4.8-r2.apk&lt;br /&gt;
bash-completion-2.10-r0.apk                 libcurl-7.69.1-r3.apk                       ppp-chat-2.4.8-r2.apk&lt;br /&gt;
bonding-2.6-r4.apk                          libedit-20191231.3.1-r0.apk                 ppp-daemon-2.4.8-r2.apk&lt;br /&gt;
bridge-1.5-r4.apk                           libev-4.33-r0.apk                           ppp-l2tp-2.4.8-r2.apk&lt;br /&gt;
bridge-utils-1.6-r0.apk                     libgcc-9.3.0-r2.apk                         ppp-minconn-2.4.8-r2.apk&lt;br /&gt;
busybox-1.31.1-r19.apk                      libmnl-1.0.4-r0.apk                         ppp-passprompt-2.4.8-r2.apk&lt;br /&gt;
busybox-extras-1.31.1-r19.apk               libnftnl-1.1.6-r0.apk                       ppp-passwordfd-2.4.8-r2.apk&lt;br /&gt;
busybox-initscripts-3.2-r2.apk              libnftnl-libs-1.1.6-r0.apk                  ppp-pppoe-2.4.8-r2.apk&lt;br /&gt;
busybox-suid-1.31.1-r19.apk                 libnl3-3.5.0-r0.apk                         ppp-radius-2.4.8-r2.apk&lt;br /&gt;
c-ares-1.16.1-r0.apk                        libpcap-1.9.1-r2.apk                        ppp-winbind-2.4.8-r2.apk&lt;br /&gt;
ca-certificates-20191127-r4.apk             libssl1.1-1.1.1i-r0.apk                     readline-8.0.4-r0.apk&lt;br /&gt;
ca-certificates-bundle-20191127-r4.apk      libstdc++-9.3.0-r2.apk                      scanelf-1.2.6-r0.apk&lt;br /&gt;
chrony-3.5.1-r0.apk                         libtls-standalone-2.9.1-r1.apk              signature.tar.gz&lt;br /&gt;
chrony-openrc-3.5.1-r0.apk                  libusb-1.0.23-r0.apk                        ssl_client-1.31.1-r19.apk&lt;br /&gt;
curl-7.69.1-r3.apk                          libuuid-2.35.2-r0.apk                       tar-1.32-r1.apk&lt;br /&gt;
dbus-libs-1.12.18-r0.apk                    lzip-1.21-r0.apk                            tcpdump-4.9.3-r2.apk&lt;br /&gt;
dnsmasq-2.81-r0.apk                         mii-tool-1.60_git20140218-r2.apk            tree-1.8.0-r0.apk&lt;br /&gt;
e2fsprogs-1.45.6-r0.apk                     musl-1.1.24-r10.apk                         tzdata-2020c-r1.apk&lt;br /&gt;
e2fsprogs-libs-1.45.6-r0.apk                musl-utils-1.1.24-r10.apk                   usb-modeswitch-2.6.0-r1.apk&lt;br /&gt;
ethtool-5.6-r0.apk                          ncurses-libs-6.2_p20200523-r0.apk           vlan-2.2-r0.apk&lt;br /&gt;
ez-ipupdate-3.0.10-r9.apk                   ncurses-terminfo-base-6.2_p20200523-r0.apk  wireless-tools-30_pre9-r1.apk&lt;br /&gt;
fakeroot-1.24-r0.apk                        net-tools-1.60_git20140218-r2.apk           wpa_supplicant-2.9-r5.apk&lt;br /&gt;
haveged-1.9.8-r1.apk                        network-extras-1.2-r0.apk                   wpa_supplicant-openrc-2.9-r5.apk&lt;br /&gt;
haveged-openrc-1.9.8-r1.apk                 nghttp2-1.41.0-r0.apk                       zlib-1.2.11-r3.apk&lt;br /&gt;
hostapd-2.9-r2.apk                          nghttp2-libs-1.41.0-r0.apk&lt;br /&gt;
hostapd-openrc-2.9-r2.apk                   openrc-0.42.1-r11.apk&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Talk:Wireless_AP_with_udhcpd_and_NAT&amp;diff=31003</id>
		<title>Talk:Wireless AP with udhcpd and NAT</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Talk:Wireless_AP_with_udhcpd_and_NAT&amp;diff=31003"/>
		<updated>2025-09-24T18:40:39Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Created page with &amp;quot;I propose that this should be merged to the Setting up a Home Router page because it contains content which largely replicates other AP articles within this wiki, but contains some options like udhcpd which should be added to the home router page. Having multiple pages with slight variations on a theme rather than referring out to explanations of individual components seems like a maintenance/desynchronisation risk.  ~~~~&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I propose that this should be merged to the Setting up a Home Router page because it contains content which largely replicates other AP articles within this wiki, but contains some options like udhcpd which should be added to the home router page. Having multiple pages with slight variations on a theme rather than referring out to explanations of individual components seems like a maintenance/desynchronisation risk.&lt;br /&gt;
&lt;br /&gt;
[[User:AlpinePhil|AlpinePhil]] ([[User talk:AlpinePhil|talk]]) 18:40, 24 September 2025 (UTC)&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Wireless_AP_with_udhcpd_and_NAT&amp;diff=31002</id>
		<title>Wireless AP with udhcpd and NAT</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Wireless_AP_with_udhcpd_and_NAT&amp;diff=31002"/>
		<updated>2025-09-24T18:38:38Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Proposal for merging.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Networking]]&lt;br /&gt;
{{Merge|Setting up a Home Router}}&lt;br /&gt;
Setting up a wireless AP with udhcpd and NAT&lt;br /&gt;
&lt;br /&gt;
(based largely on the [https://elinux.org/RPI-Wireless-Hotspot raspberry pi wireless router howto])&lt;br /&gt;
&lt;br /&gt;
= Dependencies =&lt;br /&gt;
&lt;br /&gt;
Install the hostapd access point software, busybox-extras (for the udhcpd DHCP server),&lt;br /&gt;
and the iptables firewall manager.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add hostapd busybox-extras iptables}}&lt;br /&gt;
&lt;br /&gt;
If you want to connect clients to the internet, you need to provide some way&lt;br /&gt;
of redirecting traffic from the AP to the internet.&lt;br /&gt;
There are two main possibilities:&lt;br /&gt;
*A bridge&lt;br /&gt;
*Network Address Translation&lt;br /&gt;
&lt;br /&gt;
If you use a bridge and get your IP via DHCP, you may have a hard time&lt;br /&gt;
configuring it such that the bridge gets an IP address without screwing up your&lt;br /&gt;
local internet connection.&lt;br /&gt;
&lt;br /&gt;
This guide only covers NAT. See [[Bridge]] for more info.&lt;br /&gt;
&lt;br /&gt;
= Configure hostapd =&lt;br /&gt;
You need to write a configuration file. Alpine ships with a sample file in&lt;br /&gt;
/etc/hostapd/hostapd.conf, but it didn&#039;t work for me (possibly because I&lt;br /&gt;
used a pre-wireless-N card, supported by ath5k?).&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a sample based on something that did work for me &lt;br /&gt;
(I&#039;ve changed ssid &amp;amp; wpa_passphrase):&lt;br /&gt;
 ctrl_interface=/var/run/hostapd&lt;br /&gt;
 ctrl_interface_group=0&lt;br /&gt;
 interface=wlan0&lt;br /&gt;
 driver=nl80211&lt;br /&gt;
 logger_syslog=-1&lt;br /&gt;
 logger_syslog_level=2&lt;br /&gt;
 logger_stdout=-1&lt;br /&gt;
 logger_stdout_level=2&lt;br /&gt;
 ssid=alpine-test&lt;br /&gt;
 hw_mode=g&lt;br /&gt;
 channel=6&lt;br /&gt;
 max_num_sta=32&lt;br /&gt;
 rts_threshold=2347&lt;br /&gt;
 fragm_threshold=2346&lt;br /&gt;
 macaddr_acl=0&lt;br /&gt;
 auth_algs=3&lt;br /&gt;
 ignore_broadcast_ssid=0&lt;br /&gt;
 wpa=2&lt;br /&gt;
 wpa_passphrase=supertopsecret&lt;br /&gt;
 wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256&lt;br /&gt;
 wpa_pairwise=TKIP CCMP&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;interface&amp;quot; to match your wireless interface.&lt;br /&gt;
Change &amp;quot;ssid&amp;quot; and &amp;quot;wpa_passphrase&amp;quot; as necessary.&lt;br /&gt;
Set &amp;quot;wpa&amp;quot; to 3 if you want plain wpa and wpa2. or 1 for plain WPA1 only.&lt;br /&gt;
&lt;br /&gt;
The example in the package uses wpa_psk_file (needed for WPS) instead of a&lt;br /&gt;
static passphrase. That does not enable WPS.&lt;br /&gt;
&lt;br /&gt;
You may want to change the channel to avoid collisions with other local APs.&lt;br /&gt;
Unfortunately, the automatic channnel selection (channel=0) is *not*&lt;br /&gt;
currently enabled at compile time, so we can&#039;t use it. Scan for channels&lt;br /&gt;
in use with {{Cmd|iwlist wlan0 scanning}} or equivalent, before setup.&lt;br /&gt;
&lt;br /&gt;
max_num_sta sets a limit on the number of clients that can connect to your AP.&lt;br /&gt;
Set it higher than you think you might have, but not much higher.&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t put this in /etc/hostapd/hostapd.conf, you will need to change&lt;br /&gt;
the CONFIGS line in /etc/conf.d/hostapd to point at it.&lt;br /&gt;
I prefer doing that, so that the default is available for reference.&lt;br /&gt;
&lt;br /&gt;
= Configure udhcpd =&lt;br /&gt;
&lt;br /&gt;
Edit /etc/udhcpd.conf.&lt;br /&gt;
The default is very well-commented, but not really ready to use.&lt;br /&gt;
Here&#039;s a skeleton, loosely based on mine:&lt;br /&gt;
 start		192.168.2.2&lt;br /&gt;
 end		192.168.2.254&lt;br /&gt;
 max_leases	64&lt;br /&gt;
 interface	wlan0&lt;br /&gt;
 static_lease	00:1b:de:ad:be:ef	192.168.2.100&lt;br /&gt;
 opt	dns	192.168.0.1 8.8.8.8&lt;br /&gt;
 opt	subnet	255.255.255.0&lt;br /&gt;
 opt	router	192.168.2.1&lt;br /&gt;
 opt	lease	864000&lt;br /&gt;
&lt;br /&gt;
Note the following:&lt;br /&gt;
*max_leases should be set to at least as many clients as you might have in the lifetime of a lease. If you have any clients connecting via bridges, note that the bridge itself gets a DHCP address.&lt;br /&gt;
*interface is the interface clients will be connecting to (wlan0 or your wireless interface in this example)&lt;br /&gt;
*router should be the static IP address you assign to your wireless interface.&lt;br /&gt;
*start and end should be within the same subnet as the IP address you configure wlan0 with, but the address for wlan0 should be outside the range.&lt;br /&gt;
(e.g. 192.168.2.1 and 192.168.2.255 are both suitable for the router address)&lt;br /&gt;
*set the DNS option to point to any nameservers you want. You can repeat it, but the limit is 3 nameservers.&lt;br /&gt;
*static_lease takes two arguments: a MAC address designating a specific network adaptor, and the IP address that should be assigned to it.&lt;br /&gt;
It can be repeated multiple times, to assign different addresses to different users.&lt;br /&gt;
This comes in handy for printers, if you can trust network users to not do MAC spoofing.&lt;br /&gt;
&lt;br /&gt;
= Configure iptables =&lt;br /&gt;
&lt;br /&gt;
I used raw iptables, configuring it thus:&lt;br /&gt;
{{Cmd|iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&lt;br /&gt;
iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT}}&lt;br /&gt;
# this saves the state in a location the service can restore it from&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
service iptables save&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Test =&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
rc-service hostapd start&lt;br /&gt;
&lt;br /&gt;
rc-service udhcpd start&lt;br /&gt;
&lt;br /&gt;
sysctl net.ipv4.ip_forward=1&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
and try connecting from another computer.&lt;br /&gt;
&lt;br /&gt;
= Make the changes permanent =&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-update add hostapd&lt;br /&gt;
rc-update add udhcpd&lt;br /&gt;
rc-update add sysctl}}&lt;br /&gt;
&lt;br /&gt;
== Configuring ifup ==&lt;br /&gt;
Now, the odd parts:&lt;br /&gt;
iptables tries to set net.ipv4.ip_forward to 1 when it&#039;s started, but in&lt;br /&gt;
my experience, this is not reliable.&lt;br /&gt;
You do *not* want to enable the &amp;quot;iptables&amp;quot; service. It starts before&lt;br /&gt;
networking, and may result in your wireless interface not getting configured.&lt;br /&gt;
(Apparently, ifup thinks that wlan0 is up and skips it. This was not something I expected, but it&#039;s the only explanation I have for how things worked...)&lt;br /&gt;
&lt;br /&gt;
Rather, modify /etc/network/interfaces, commenting out any configuration for&lt;br /&gt;
your wireless interface. Then add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto wlan0&lt;br /&gt;
iface wlan0 inet static&lt;br /&gt;
	address 192.168.2.1&lt;br /&gt;
	netmask 255.255.255.0&lt;br /&gt;
	up rc-service iptables start&lt;br /&gt;
	up sysctl net.ipv4.ip_forward=1&lt;br /&gt;
	down rc-service iptables stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(It&#039;s possible to set up everything so that hostapd and udhcpd get&lt;br /&gt;
started and stopped from the wlan0 stanza. I didn&#039;t bother doing that.)&lt;br /&gt;
&lt;br /&gt;
= Finishing touches =&lt;br /&gt;
&lt;br /&gt;
(See [[Setting up a SSH server]] for alternatives and more information)&lt;br /&gt;
Add dropbear SSH server, configure it to run on only the wireless interface:&lt;br /&gt;
{{Cmd|setup-sshd -c dropbear}}&lt;br /&gt;
edit /etc/conf.d/dropbear to add&lt;br /&gt;
&lt;br /&gt;
 DROPBEAR_OPTS=&amp;quot;-p 192.168.2.1:22&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(assuming the wireless interface has the IP address 192.168.2.1 and you&lt;br /&gt;
want SSH on port 22).&lt;br /&gt;
This is optional, but if you&#039;re using a wireless router it helps to be able&lt;br /&gt;
to administer it, and listening on all addresses is rather risky.&lt;br /&gt;
&lt;br /&gt;
= Things this doesn&#039;t cover but it would be nice to =&lt;br /&gt;
*Some way to get more entropy (see [[Entropy_and_randomness]])&lt;br /&gt;
*DNS server, publishing device names ([[TinyDNS_Format]] looks most useful)&lt;br /&gt;
*use awall instead of raw iptables (and/or switch to nftables)&lt;br /&gt;
*[[Setup-acf]] to manage the router&lt;br /&gt;
This would require:&lt;br /&gt;
**acf-core, acf-alpine-conf, acf-apk-tools&lt;br /&gt;
**acf-iptables, or acf-awall + rewrite&lt;br /&gt;
**acf-ssh + switch to openssh, or new acf-dropbear&lt;br /&gt;
**acf-dhcp + switch to dhcp, or new acf-udhcpd&lt;br /&gt;
**new acf-hostapd (probably hardest part!)&lt;br /&gt;
**acf-tinydns after adding tinydns&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=How_to_setup_a_wireless_access_point&amp;diff=31001</id>
		<title>How to setup a wireless access point</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=How_to_setup_a_wireless_access_point&amp;diff=31001"/>
		<updated>2025-09-24T18:24:08Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Cleaned up some redundant bits, cleared up some formatting and brought this to a production ready state.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install needed packages ==&lt;br /&gt;
&lt;br /&gt;
* hostapd&lt;br /&gt;
* bridge (optional)&lt;br /&gt;
&lt;br /&gt;
== Check that the card is detected ==&lt;br /&gt;
&lt;br /&gt;
Run cat /proc/net/dev to see which cards are detected.&lt;br /&gt;
&lt;br /&gt;
If no cards are available, check what driver the card uses and modprobe it.&lt;br /&gt;
&lt;br /&gt;
Check that the card is in master mode.&lt;br /&gt;
&lt;br /&gt;
== Setup Bridge ==&lt;br /&gt;
&lt;br /&gt;
If your wireless access point is NOT also intended to be a router, you may wish to bridge an ethernet interface to the wireless interface.&lt;br /&gt;
&lt;br /&gt;
This can be particularly advantageous where you are setting up multiple access points with a shared SSID, as this allows the APs to share an address space, and avoids wireless clients having to change DHCP lease when they move from access point to access point.&lt;br /&gt;
&lt;br /&gt;
Setup the bridge by editing &amp;lt;samp&amp;gt;/etc/network/interfaces&amp;lt;/samp&amp;gt;. Assuming you wish to bridge the access point to the ethernet device &amp;lt;samp&amp;gt;eth0&amp;lt;/samp&amp;gt;, you can add something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto br0&lt;br /&gt;
iface br0 inet dhcp&lt;br /&gt;
  hostname alpine&lt;br /&gt;
  bridge-ports eth0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Comment out any existing lines configuring &amp;lt;samp&amp;gt;eth0&amp;lt;/samp&amp;gt; as this should now be handled via the bridge configuration. It is not necessary to mention &amp;lt;samp&amp;gt;wlan0&amp;lt;/samp&amp;gt; here, as &amp;lt;samp&amp;gt;hostapd&amp;lt;/samp&amp;gt; will take care of adding the device to the bridge later.&lt;br /&gt;
&lt;br /&gt;
Please see [[Bridge]] for more information on network bridges.&lt;br /&gt;
&lt;br /&gt;
== Setup hostapd ==&lt;br /&gt;
&lt;br /&gt;
[http://w1.fi/hostapd/ hostapd] is the daemon that hosts the access point. What follows are example configurations, but further configuration options are available, and you should read the documentation for details. &lt;br /&gt;
&lt;br /&gt;
Edit /etc/hostapd/hostapd.conf and make the necessary changes such as interface, bridge, driver, ssid, etc.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
 interface=wlan0&lt;br /&gt;
 bridge=br0&lt;br /&gt;
 driver=hostap&lt;br /&gt;
 logger_syslog=-1&lt;br /&gt;
 logger_syslog_level=2&lt;br /&gt;
 logger_stdout=-1&lt;br /&gt;
 logger_stdout_level=2&lt;br /&gt;
 debug=0&lt;br /&gt;
 dump_file=/tmp/hostapd.dump&lt;br /&gt;
 ctrl_interface=/var/run/hostapd&lt;br /&gt;
 ctrl_interface_group=0&lt;br /&gt;
 ssid=SecureSSID&lt;br /&gt;
 #macaddr_acl=1&lt;br /&gt;
 #accept_mac_file=/etc/hostapd/accept&lt;br /&gt;
 auth_algs=3&lt;br /&gt;
 eapol_key_index_workaround=0&lt;br /&gt;
 eap_server=0&lt;br /&gt;
 wpa=3&lt;br /&gt;
 wpa_psk_file=/etc/hostapd/hostapd.wpa_psk&lt;br /&gt;
 wpa_key_mgmt=WPA-PSK&lt;br /&gt;
 wpa_pairwise=CCMP&lt;br /&gt;
&lt;br /&gt;
If you wish to use MAC address filtering, uncomment the lines starting with macaddr_acl and accept_mac_file, create /etc/hostapd/accept (with permissions set to 600) and add the allowed clients&#039; MAC address to the file.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Authentication ===&lt;br /&gt;
&lt;br /&gt;
Edit /etc/hostapd/hostapd.wpa_psk and insert the following, replacing PASSPHRASE with the WPA_PSK key you would like to use (remove keys that you don&#039;t want to use):&lt;br /&gt;
 00:00:00:00:00:00 PASSPHRASE&lt;br /&gt;
&lt;br /&gt;
== Start the Service ==&lt;br /&gt;
Start hostapd.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-service hostapd start}}&lt;br /&gt;
&lt;br /&gt;
== Associate clients ==&lt;br /&gt;
Associate a few clients to test.&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=30995</id>
		<title>User:AlpinePhil</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=30995"/>
		<updated>2025-09-23T20:08:12Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* TODOs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==TODOs==&lt;br /&gt;
&lt;br /&gt;
#How to set up a wireless access point needs tweaks&lt;br /&gt;
#* Other pages will need to be pointed/merged to this, there seems to be a plethora of pages ultimately doing the same thing.&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=30994</id>
		<title>Tutorials and Howtos</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=30994"/>
		<updated>2025-09-23T20:07:51Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* Networking */  - adding a how to for setting up a home router&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:package_edutainment.svg|right|link=]]&lt;br /&gt;
{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Welcome to Tutorials and Howtos, a place of basic and advanced configuration tasks for your Alpine Linux.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Howtos are smaller articles&#039;&#039;&#039; explaining how to perform a particular task with Alpine Linux, that expects a minimal knowledge from reader to perform actions. Howto&#039;s have been organized in the below page based on the topics.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The [[#Tutorials|tutorials]] are hands-on&#039;&#039;&#039; and the reader is expected to try and achieve the goals described in each step, possibly with the help of a good example. The output in one step is the starting point for the following step.&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
* Contributors are requested to refer to [[Help:Editing]] first and make use of resources like [[How to write a HOWTO]].&lt;br /&gt;
* Contributions must be complete articles. &lt;br /&gt;
* Don&#039;t override already made contributions, unless there is a mistake. &lt;br /&gt;
* If you want to request a topic, please add your request in this page&#039;s [[Talk:Tutorials_and_Howtos|Discussion]].}}&lt;br /&gt;
&lt;br /&gt;
== Desktop ==&lt;br /&gt;
&lt;br /&gt;
* {{:Daily driver guide}}&lt;br /&gt;
&lt;br /&gt;
=== Networking ===&lt;br /&gt;
&lt;br /&gt;
* [[Bluetooth]] - Instructions for installing and configuring Bluetooth&lt;br /&gt;
* [[Bonding]] - Bond (or aggregate) multiple ethernet interfaces&lt;br /&gt;
* [[Bridge]] - Configuring a network bridge&lt;br /&gt;
** [[Bridge wlan0 to eth0]]&lt;br /&gt;
* [[Configure Networking]]&lt;br /&gt;
* [[How to configure static routes]]&lt;br /&gt;
* Modem&lt;br /&gt;
** [[Using HSDPA modem]]&lt;br /&gt;
** [[Using serial modem]]&lt;br /&gt;
* [[mDNS]] - Howto implement multicast DNS resolution in Alpine. &lt;br /&gt;
* [[Multi ISP]] &#039;&#039;(Dual-ISP setup with load-balancing and automatic failover)&#039;&#039;&lt;br /&gt;
* [[PXE boot]]&lt;br /&gt;
* Wi-Fi&lt;br /&gt;
** [[Wi-Fi|Connecting to a wireless access point]]&lt;br /&gt;
** [[How to setup a wireless access point]] &#039;&#039;(Setting up Secure Wireless AP w/ WPA encryption with bridge to wired network)&#039;&#039;&lt;br /&gt;
* Use [https://github.com/ifupdown-ng/ifupdown-ng/blob/main/doc/interfaces-vxlan.scd vxlan], if using  [[Ifupdown-ng]] instead of [[VLAN]]&lt;br /&gt;
* [[Setting up a Home Router]]&lt;br /&gt;
&lt;br /&gt;
=== Backup and data migration ===&lt;br /&gt;
&lt;br /&gt;
* [[Migrating data]]&lt;br /&gt;
* [[Rsnapshot]] - setting up periodic backups&lt;br /&gt;
&lt;br /&gt;
=== Other topics ===&lt;br /&gt;
&lt;br /&gt;
* [[Gaming on Alpine]]&lt;br /&gt;
* [[Remote Desktop Server]]&lt;br /&gt;
* [[Default applications|How to change default application]]&lt;br /&gt;
* [[CPU frequency scaling]]&lt;br /&gt;
* [[Mimalloc]]&lt;br /&gt;
* [[Enable Serial Console on Boot]]&lt;br /&gt;
* [[How to build the Alpine Linux kernel]]&lt;br /&gt;
* [[Nextcloud]] &#039;&#039;(Self hostable cloud suite - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
* [[Setting up lm_sensors]]&lt;br /&gt;
* [[Fingerprint Authentication with swaylock]]&lt;br /&gt;
* [[Desktop environments and Window managers|List of supported Desktop environments and Window managers]]&lt;br /&gt;
&lt;br /&gt;
== Diskless ==&lt;br /&gt;
&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]]&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
&lt;br /&gt;
== Other Architectures ==&lt;br /&gt;
&lt;br /&gt;
=== ARM ===&lt;br /&gt;
&lt;br /&gt;
* [[Alpine on ARM]]&lt;br /&gt;
&lt;br /&gt;
==== Raspberry Pi ====&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi|Raspberry Pi main page]]&lt;br /&gt;
* [[Raspberry Pi Bluetooth Speaker|Raspberry Pi - Bluetooth Speaker]]&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi|Raspberry Pi - Router with VPN]]&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi (IPv6)|Raspberry Pi - Router with VPN (IPv6)]]&lt;br /&gt;
* [[Classic install or sys mode on Raspberry Pi|Raspberry Pi - Sys mode install]]&lt;br /&gt;
* [[Raspberry Pi LVM on LUKS|Raspberry Pi - Sys mode install - LVM on LUKS]]&lt;br /&gt;
* [[RPI Video Receiver|Raspberry Pi - Video Receiver]] &#039;&#039;(network video decoder using Rasperry Pi and omxplayer)&#039;&#039;&lt;br /&gt;
* [[Raspberry Pi 3 - Browser Client]] - kiosk or digital sign&lt;br /&gt;
* [[Raspberry Pi 3 - Configuring it as wireless access point -AP Mode]]&lt;br /&gt;
* [[Raspberry Pi 3 - Setting Up Bluetooth]]&lt;br /&gt;
* [[Raspberry Pi 4 - Persistent system acting as a NAS and Time Machine]]&lt;br /&gt;
* [[How to set up Alpine as a wireless router|Raspberry Pi Zero W - Wireless router]] &#039;&#039;(Setting up a firewalled, Wireless AP with wired network on a Pi Zero W)&#039;&#039;&lt;br /&gt;
* [[RPI Video Receiver]]&lt;br /&gt;
&lt;br /&gt;
=== IBM Z (IBM z Systems) ===&lt;br /&gt;
&lt;br /&gt;
* [[s390x|s390x - Installation]]&lt;br /&gt;
&lt;br /&gt;
=== PowerPC ===&lt;br /&gt;
&lt;br /&gt;
* [[Ppc64le|Powerpc64le - Installation]]&lt;br /&gt;
&lt;br /&gt;
== Security ==&lt;br /&gt;
&lt;br /&gt;
* [[#Desktop security|Desktop security]] lists steps for securing Alpine Linux desktops&lt;br /&gt;
* [[Setting up a laptop]] page has detailed guidelines to configure a secured laptop&lt;br /&gt;
* [[Securing Alpine Linux|Secure Alpine Linux]] using Security Technical Implementation Guides (STIGs)&lt;br /&gt;
&lt;br /&gt;
== Services == &lt;br /&gt;
&lt;br /&gt;
{{Note| Services are arranged in alphabetical order.}}&lt;br /&gt;
&lt;br /&gt;
=== Content management systems ===&lt;br /&gt;
&lt;br /&gt;
* [[DokuWiki]] &#039;&#039;(Simple and easy to use wiki, no database required)&#039;&#039;&lt;br /&gt;
* [[Drupal]] &#039;&#039;(Content Management System (CMS) written in PHP)&#039;&#039;&lt;br /&gt;
* [[Kopano]] &#039;&#039;(Microsoft Outlook compatible Groupware)&#039;&#039;&lt;br /&gt;
* [[Mahara]] &#039;&#039;(E-portfolio and social networking system)&#039;&#039;&lt;br /&gt;
* [[MediaWiki]] &#039;&#039;(Free web-based wiki software application)&#039;&#039;&lt;br /&gt;
* [[Pastebin]] &#039;&#039;(Pastebin software application)&#039;&#039;&lt;br /&gt;
* [[WordPress]] &#039;&#039;(Web software to create website or blog)&#039;&#039;&lt;br /&gt;
* [[Moodle]] &#039;&#039;(Online Learning Management system)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Database === &lt;br /&gt;
&lt;br /&gt;
* [[MariaDB]] or [[MySQL|MySQL]]&lt;br /&gt;
&lt;br /&gt;
=== DNS ===&lt;br /&gt;
&lt;br /&gt;
* [[DNSCrypt-Proxy]] &#039;&#039;Encrypt and authenticate DNS calls from your system&#039;&#039;&lt;br /&gt;
* [[Setting up nsd DNS server]]&lt;br /&gt;
* [[Small-Time DNS with BIND9]] &#039;&#039;(A simple configuration with ad blocking for your home network)&#039;&#039;&lt;br /&gt;
* Unbound&lt;br /&gt;
** [[Setting up unbound DNS server]]&lt;br /&gt;
** [[Using Unbound as an Ad-blocker]] &#039;&#039;(Setup ad blocking for your network)&#039;&#039;&lt;br /&gt;
* [[TinyDNS Format]]&lt;br /&gt;
&lt;br /&gt;
=== File server ===&lt;br /&gt;
&lt;br /&gt;
* [[Setting up an NFS server|nfs-server]]&lt;br /&gt;
* [[Setting up a Samba server|samba-server]] &#039;&#039;(standard file sharing)&#039;&#039;&lt;br /&gt;
* [[Setting up a samba-ad-dc|samba-ad-dc]] &#039;&#039;(Active Directory compatible domain controller)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Firewall ===&lt;br /&gt;
&lt;br /&gt;
* [https://git.alpinelinux.org/awall/about/ Alpine Wall User&#039;s Guide]&lt;br /&gt;
** [[Zero-To-Awall]] -&#039;&#039;AWall for dummies&#039;&#039;&lt;br /&gt;
** [[How-To Alpine Wall]] - &#039;&#039;AWall for Shorewall users&#039;&#039;&lt;br /&gt;
** [[Alpine Wall]] - &#039;&#039;AWall - Firewall management framework - Design Document&#039;&#039;&lt;br /&gt;
* [[Iptables]]&lt;br /&gt;
* [[nftables]]&lt;br /&gt;
* [[Uncomplicated Firewall|Uncomplicated Firewall or UFW]]&lt;br /&gt;
&lt;br /&gt;
=== HTTP and web services ===&lt;br /&gt;
&lt;br /&gt;
* [[Althttpd]]&lt;br /&gt;
* [[Apache]]&lt;br /&gt;
** [[Apache with php-fpm]]&lt;br /&gt;
** [[Setting Up Apache with PHP]]&lt;br /&gt;
** [[Apache authentication: NTLM Single Signon]]&lt;br /&gt;
* [[Darkhttpd]]&lt;br /&gt;
* [[Lighttpd]]&lt;br /&gt;
** [[Lighttpd Advanced security]]&lt;br /&gt;
** [[Setting Up Lighttpd With FastCGI]]&lt;br /&gt;
** [[Production Web server: Lighttpd|Production web server: Lighttpd‎‎]]&lt;br /&gt;
* [[Nginx]]&lt;br /&gt;
** [[Nginx as reverse proxy with acme (letsencrypt)]]&lt;br /&gt;
** [[Nginx with PHP]]&lt;br /&gt;
* Squid Proxy&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
** [[Setting up Explicit Squid Proxy]]&lt;br /&gt;
** [[Setting up Transparent Squid Proxy]] &#039;&#039;(Covers Squid proxy and URL Filtering system)&#039;&#039;&lt;br /&gt;
** [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
* [[Tomcat]]&lt;br /&gt;
** [[Production LAMP system: Lighttpd + PHP + MySQL‎‎|Production LAMP system: Lighttpd + PHP + MariaDB/MySQL‎‎]]&lt;br /&gt;
&lt;br /&gt;
=== IRC ===&lt;br /&gt;
&lt;br /&gt;
* [[NgIRCd]] &#039;&#039;(Server for Internet Relay Chat/IRC)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mail ===&lt;br /&gt;
&lt;br /&gt;
* [[Hosting services on Alpine]] &#039;&#039;(Hosting mail, webservices and other services)&#039;&#039;&lt;br /&gt;
* [[Hosting Web/Email services on Alpine]]&lt;br /&gt;
* Exim/Dovecot&lt;br /&gt;
** [[Small-Time Email with Exim and Dovecot]] &#039;&#039;(A simple configuration for your home network.)&lt;br /&gt;
** [[Setting up dovecot with imap and tls]]&lt;br /&gt;
* [[relay email to gmail (msmtp, mailx, sendmail]]&lt;br /&gt;
* [[relay email (nullmailer)]]&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Setting up postfix with virtual domains]]&lt;br /&gt;
* Server protection&lt;br /&gt;
** [[Setting up clamsmtp]]&lt;br /&gt;
&lt;br /&gt;
=== Monitoring ===&lt;br /&gt;
&lt;br /&gt;
* [[Awstats]] &#039;&#039;(Free log file analyzer)&#039;&#039;&lt;br /&gt;
* [[Cacti: traffic analysis and monitoring network]] &#039;&#039;(Front-end for rrdtool networking monitor)&#039;&#039;&lt;br /&gt;
* [[Cvechecker]] &#039;&#039;(Compare installed packages for Common Vulnerabilities Exposure)&#039;&#039; &amp;lt;!-- Monitoring and Security --&amp;gt;&lt;br /&gt;
* [[Linfo]]&lt;br /&gt;
* [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[PhpSysInfo]] &#039;&#039;(A simple application that displays information about the host it&#039;s running on)&#039;&#039;&lt;br /&gt;
* [[Logcheck]] &#039;&#039;(log file monitoring tool)&#039;&#039;&lt;br /&gt;
* [[Matomo]] &#039;&#039;(A real time web analytics software program)&#039;&#039;&lt;br /&gt;
* [[Rasdaemon]] &#039;&#039;(Platform Reliability, Availability and Serviceability monitoring tool)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft, solution, Networking and Monitoring and Server --&amp;gt;&lt;br /&gt;
** [[Setting up NRPE daemon]] &#039;&#039;(Performs remote Nagios checks)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting Up Fprobe And Ntop|Ntop]] &#039;&#039;(NetFlow collection and analysis using a remote fprobe instance; for alpine 3.10-3.12 only)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
* [[Traffic monitoring]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
** [[Setting up monitoring using rrdtool (and rrdcollect)]]&lt;br /&gt;
** [[Setting up traffic monitoring using rrdtool (and snmp)]] &amp;lt;!-- Monitoring --&amp;gt;&lt;br /&gt;
* [[Zabbix|Zabbix - the professional complete manager]] &#039;&#039;(Monitor and track the status of network services and hardware)&#039;&#039;&lt;br /&gt;
* [[ZoneMinder video camera security and surveillance]]&lt;br /&gt;
&lt;br /&gt;
=== Remote Administration ===&lt;br /&gt;
&lt;br /&gt;
* ACF&lt;br /&gt;
** [[Changing passwords for ACF|ACF - changing passwords]]&lt;br /&gt;
** [[Generating SSL certs with ACF]] &amp;lt;!-- Generating SSL certs with ACF 1.9 --&amp;gt;&lt;br /&gt;
** [[setup-acf| ACF - setup]] &#039;&#039;(Configures ACF (webconfiguration/webmin) so you can manage your box through https)&#039;&#039;&lt;br /&gt;
* [[Setting up a SSH server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
** [[HOWTO OpenSSH 2FA with password and Google Authenticator |OpenSSH 2FA]] &#039;&#039;(A simple two factor setup for OpenSSH)&#039;&#039;&lt;br /&gt;
* [[OpenVCP]] &#039;&#039;(VServer Control Panel)&#039;&#039;&lt;br /&gt;
* [[PhpMyAdmin]] &#039;&#039;(Web-based administration tool for MYSQL)&#039;&#039;&lt;br /&gt;
* [[PhpPgAdmin]] &#039;&#039;(Web-based administration tool for PostgreSQL)&#039;&#039;&lt;br /&gt;
* [[Webmin]] &#039;&#039;(A web-based interface for Linux system)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Telephony ===&lt;br /&gt;
&lt;br /&gt;
* [[FreePBX|FreePBX on Alpine Linux]]&lt;br /&gt;
* [[Setting up Zaptel/Asterisk on Alpine]]&lt;br /&gt;
* [[Kamailio]] &#039;&#039;(SIP Server, formerly OpenSER)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== VPN ===&lt;br /&gt;
* [[Freeradius Active Directory Integration]]&lt;br /&gt;
* [[GNUnet]]&lt;br /&gt;
* [[IGMPproxy]]&lt;br /&gt;
* [[Setting up a OpenVPN server|OpenVPN server]] &#039;&#039;(Allowing single users or devices to remotely connect to your network)&#039;&#039;&lt;br /&gt;
* [[OpenVSwitch]]&lt;br /&gt;
* [[Tor]]&lt;br /&gt;
* [[Using Alpine on Windows domain with IPSEC isolation]]&lt;br /&gt;
* [[Configure a Wireguard interface (wg)|Wireguard]]&lt;br /&gt;
&lt;br /&gt;
=== Other Servers ===&lt;br /&gt;
&lt;br /&gt;
* [[apcupsd]] &#039;&#039;(UPS Monitoring with apcupsd)&#039;&#039;&lt;br /&gt;
* [[Chrony and GPSD | Chrony, gpsd, and a garmin LVC 18 as a Stratum 1 NTP source ]]&lt;br /&gt;
* [[Glpi]] &#039;&#039;(Manage inventory of technical resources)&#039;&#039;&lt;br /&gt;
* [[How to setup a Alpine Linux mirror]]&lt;br /&gt;
* [[nut-ups|NUT UPS]] &#039;&#039;(UPS Monitoring with Network UPS Tools)&#039;&#039;&lt;br /&gt;
* [[Odoo]]&lt;br /&gt;
* [[Configure OpenLDAP | OpenLDAP]] &#039;&#039;(Installing and configuring the Alpine package for OpenLDAP)&#039;&#039;&lt;br /&gt;
* [[Setting up a LLDAP server|lldap-server]] &#039;&#039;(Directory Server)&#039;&#039;&lt;br /&gt;
* [[Setting up Transmission (bittorrent) with Clutch WebUI]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Software development ==&lt;br /&gt;
&lt;br /&gt;
* [[Cgit]]&lt;br /&gt;
* [[OsTicket]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[Patchwork]] &#039;&#039;(Patch review management system)&#039;&#039;&lt;br /&gt;
* [[Redmine]] &#039;&#039;(Project management system) [Deprecated]&#039;&#039;&lt;br /&gt;
* [[Request Tracker]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[Setting up trac wiki|Trac]] &#039;&#039;(Enhanced wiki and issue tracking system for software development projects)&#039;&#039;&lt;br /&gt;
* [[Ansible]] &#039;&#039;(Configuration management)&#039;&#039;&lt;br /&gt;
* [[Installing Oracle Java|Oracle Java (installation)]]&lt;br /&gt;
&lt;br /&gt;
== Storage ==&lt;br /&gt;
&lt;br /&gt;
* [[Setting up disks manually|Manual partitioning]]&lt;br /&gt;
* [[Disk Replication with DRBD|DRBD: Disk Replication]]&lt;br /&gt;
* [[Filesystems]]&lt;br /&gt;
** [[Burning ISOs]]&lt;br /&gt;
* [[Setting up iSCSI|iSCSI Setup]]&lt;br /&gt;
** [[iSCSI Raid and Clustered File Systems]]&lt;br /&gt;
** [[Linux iSCSI Target (TCM)|iSCSI Target (TCM)/LinuxIO (LIO)]]&lt;br /&gt;
** [[Linux iSCSI Target (tgt)|User space iSCSI Target (tgt)]]&lt;br /&gt;
* [[Setting up Logical Volumes with LVM|LVM Setup]]&lt;br /&gt;
** [[Setting up LVM on GPT-labeled disks|LVM on GPT-labeled disks]]&lt;br /&gt;
** [[Installing on GPT LVM|LVM on GPT-labeled disks (updated)]]&lt;br /&gt;
** [[LVM on LUKS]]&lt;br /&gt;
* RAID&lt;br /&gt;
** [[Raid Administration]]&lt;br /&gt;
** [[Setting up a software RAID array]]&lt;br /&gt;
* [[ZFS]]&lt;br /&gt;
** [[Root on ZFS with native encryption]]&lt;br /&gt;
** [[Setting up ZFS on LUKS]]&lt;br /&gt;
* [[CEPH|CEPH]]&lt;br /&gt;
&lt;br /&gt;
== Virtualization ==&lt;br /&gt;
&lt;br /&gt;
* [[Docker]]&lt;br /&gt;
* [[Installing Alpine in a virtual machine]]&lt;br /&gt;
** [[Install Alpine on VMware ESXi]]&lt;br /&gt;
* [[KVM]] &#039;&#039;(Setting up Alpine as a KVM hypervisor)&#039;&#039;&lt;br /&gt;
* [[LXC]] &#039;&#039;(Setting up a Linux container in Alpine Linux)&#039;&#039;&lt;br /&gt;
* [[QEMU]]&lt;br /&gt;
* Xen&lt;br /&gt;
** [[Xen Dom0]] &#039;&#039;(Setting up Alpine as a dom0 for Xen hypervisor)&#039;&#039;&lt;br /&gt;
** [[Xen Dom0 on USB or SD]]&lt;br /&gt;
** [[Create Alpine Linux PV DomU|Xen DomU (paravirtualized)]]&lt;br /&gt;
** [[Xen LiveCD]]&lt;br /&gt;
** [[Xen PCI Passthrough]]&lt;br /&gt;
** [[K8s]] Building a K8s Kubernetes Cluster on Alpine Linux&lt;br /&gt;
* [[Runc]]&lt;br /&gt;
&lt;br /&gt;
== [[Simple_Walkthrough]] ==&lt;br /&gt;
&lt;br /&gt;
* [[LXC_Alpinelinux_Simple]]&lt;br /&gt;
* [[Qemu-simple]]&lt;br /&gt;
&lt;br /&gt;
== Tutorials ==&lt;br /&gt;
&lt;br /&gt;
* [[TTY_Autologin|TTY Autologin]]&lt;br /&gt;
* [[Kexec|Faster rebooting with kexec]]&lt;br /&gt;
* [[Dynamic Multipoint VPN (DMVPN)]] combined with [[Small Office Services]]&lt;br /&gt;
* [[DIY Fully working Alpine Linux for Allwinner and Other ARM SOCs]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]]&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039;&lt;br /&gt;
* [[Linux iSCSI Target (TCM)]]&lt;br /&gt;
* [[ISP Mail Server 3.x HowTo]] &#039;&#039;(Postfix+PostfixAdmin+DoveCot+Roundcube+ClamAV+Spamd - A full-service ISP mail server)&#039;&#039;&lt;br /&gt;
* [[Grommunio Mail Server]] &#039;&#039;(Mariadb+Postfix+Rspamd+Grommunio - Full-service mail server as MS exchange replacement)&#039;&#039;&lt;br /&gt;
* [[Replacing non-Alpine Linux with Alpine remotely]]&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
* [[Streaming Security Camera Video with VLC]]&lt;br /&gt;
* [[Install Alpine on a btrfs filesystem with refind as boot manager]]&lt;br /&gt;
* [[Compile software from source|How to Compile a software from source in Alpine Linux]]&lt;br /&gt;
* [https://ww2.coastal.edu/mmurphy2/oer/alpine/ Alpine Linux tutorials - Dr Murphy, Computing Science Associate Professor]&lt;br /&gt;
* [[Michael&#039;s base installation procedure|Michael&#039;s base installation procedure]]&lt;br /&gt;
* [[Michael&#039;s sway desktop (minimal)|Michael&#039;s sway desktop (minimal)]]&lt;br /&gt;
* [[Michael&#039;s cwm  desktop (minimal)|Michael&#039;s cwm  desktop (minimal)]]&lt;br /&gt;
* [[Using Distrobox For VR Gaming|Using Distrobox For VR Gaming]]&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil/Router&amp;diff=30993</id>
		<title>User:AlpinePhil/Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil/Router&amp;diff=30993"/>
		<updated>2025-09-23T20:06:48Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: AlpinePhil moved page User:AlpinePhil/Router to Setting up a Home Router: Moving a draft howto out into the real world&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Setting up a Home Router]]&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30992</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30992"/>
		<updated>2025-09-23T20:06:48Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: AlpinePhil moved page User:AlpinePhil/Router to Setting up a Home Router: Moving a draft howto out into the real world&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
The clue is in the name that routing is at the heart of what a router does.&lt;br /&gt;
&lt;br /&gt;
To enable routing, you will need to add a line&lt;br /&gt;
&amp;lt;code&amp;gt;net.ipv4.ip_forward=1&amp;lt;/code&amp;gt; to the file /etc/sysctl.conf and then run &lt;br /&gt;
&amp;lt;code&amp;gt;sysctl -p&amp;lt;/code&amp;gt; with administrative privileges.&lt;br /&gt;
&lt;br /&gt;
If you have subnets managed by their own routers in your network, you may need to add [[How to configure static routes|static routing]].&lt;br /&gt;
&lt;br /&gt;
Dynamic routing is an advanced topic which goes beyond the range of this HowTo.&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
On a practical note, it is helpful to download pppd and your firewall of choice using your ISPs provided router and configure them prior to connecting your home-made router to the internet directly.&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
A DHCP server is responsible for assigning dynamic IP addresses to computers attached to your network.&lt;br /&gt;
&lt;br /&gt;
If your network is small enough, and the constituent computers do not change regularly, you might consider sticking with static (manually) assigned IP addresses. However, beyond a certain size and/or if you have changing members of your network (for example, house guests using your wi-fi), then DHCP becomes quite important.&lt;br /&gt;
&lt;br /&gt;
The only DHCP server that the author was able to install and operate from the default repositories at the time of writing was [https://dnsmasq.org/docs/dnsmasq-man.html dnsmasq.]&lt;br /&gt;
&lt;br /&gt;
==Hosting Wi-Fi==&lt;br /&gt;
&lt;br /&gt;
See [[How to setup a wireless access point]].&lt;br /&gt;
&lt;br /&gt;
[[Category: Networking]]&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30991</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30991"/>
		<updated>2025-09-23T20:05:47Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Added category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
The clue is in the name that routing is at the heart of what a router does.&lt;br /&gt;
&lt;br /&gt;
To enable routing, you will need to add a line&lt;br /&gt;
&amp;lt;code&amp;gt;net.ipv4.ip_forward=1&amp;lt;/code&amp;gt; to the file /etc/sysctl.conf and then run &lt;br /&gt;
&amp;lt;code&amp;gt;sysctl -p&amp;lt;/code&amp;gt; with administrative privileges.&lt;br /&gt;
&lt;br /&gt;
If you have subnets managed by their own routers in your network, you may need to add [[How to configure static routes|static routing]].&lt;br /&gt;
&lt;br /&gt;
Dynamic routing is an advanced topic which goes beyond the range of this HowTo.&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
On a practical note, it is helpful to download pppd and your firewall of choice using your ISPs provided router and configure them prior to connecting your home-made router to the internet directly.&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
A DHCP server is responsible for assigning dynamic IP addresses to computers attached to your network.&lt;br /&gt;
&lt;br /&gt;
If your network is small enough, and the constituent computers do not change regularly, you might consider sticking with static (manually) assigned IP addresses. However, beyond a certain size and/or if you have changing members of your network (for example, house guests using your wi-fi), then DHCP becomes quite important.&lt;br /&gt;
&lt;br /&gt;
The only DHCP server that the author was able to install and operate from the default repositories at the time of writing was [https://dnsmasq.org/docs/dnsmasq-man.html dnsmasq.]&lt;br /&gt;
&lt;br /&gt;
==Hosting Wi-Fi==&lt;br /&gt;
&lt;br /&gt;
See [[How to setup a wireless access point]].&lt;br /&gt;
&lt;br /&gt;
[[Category: Networking]]&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30990</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30990"/>
		<updated>2025-09-23T20:04:55Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* Wi-Fi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
The clue is in the name that routing is at the heart of what a router does.&lt;br /&gt;
&lt;br /&gt;
To enable routing, you will need to add a line&lt;br /&gt;
&amp;lt;code&amp;gt;net.ipv4.ip_forward=1&amp;lt;/code&amp;gt; to the file /etc/sysctl.conf and then run &lt;br /&gt;
&amp;lt;code&amp;gt;sysctl -p&amp;lt;/code&amp;gt; with administrative privileges.&lt;br /&gt;
&lt;br /&gt;
If you have subnets managed by their own routers in your network, you may need to add [[How to configure static routes|static routing]].&lt;br /&gt;
&lt;br /&gt;
Dynamic routing is an advanced topic which goes beyond the range of this HowTo.&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
On a practical note, it is helpful to download pppd and your firewall of choice using your ISPs provided router and configure them prior to connecting your home-made router to the internet directly.&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
A DHCP server is responsible for assigning dynamic IP addresses to computers attached to your network.&lt;br /&gt;
&lt;br /&gt;
If your network is small enough, and the constituent computers do not change regularly, you might consider sticking with static (manually) assigned IP addresses. However, beyond a certain size and/or if you have changing members of your network (for example, house guests using your wi-fi), then DHCP becomes quite important.&lt;br /&gt;
&lt;br /&gt;
The only DHCP server that the author was able to install and operate from the default repositories at the time of writing was [https://dnsmasq.org/docs/dnsmasq-man.html dnsmasq.]&lt;br /&gt;
&lt;br /&gt;
==Hosting Wi-Fi==&lt;br /&gt;
&lt;br /&gt;
See [[How to setup a wireless access point]].&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=30989</id>
		<title>User:AlpinePhil</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=30989"/>
		<updated>2025-09-23T20:00:05Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* TODOs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==TODOs==&lt;br /&gt;
&lt;br /&gt;
#Page on setting up a router&lt;br /&gt;
#How to set up a wireless access point needs tweaks&lt;br /&gt;
#* Other pages will need to be pointed/merged to this, there seems to be a plethora of pages ultimately doing the same thing.&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30988</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30988"/>
		<updated>2025-09-23T19:56:14Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
The clue is in the name that routing is at the heart of what a router does.&lt;br /&gt;
&lt;br /&gt;
To enable routing, you will need to add a line&lt;br /&gt;
&amp;lt;code&amp;gt;net.ipv4.ip_forward=1&amp;lt;/code&amp;gt; to the file /etc/sysctl.conf and then run &lt;br /&gt;
&amp;lt;code&amp;gt;sysctl -p&amp;lt;/code&amp;gt; with administrative privileges.&lt;br /&gt;
&lt;br /&gt;
If you have subnets managed by their own routers in your network, you may need to add [[How to configure static routes|static routing]].&lt;br /&gt;
&lt;br /&gt;
Dynamic routing is an advanced topic which goes beyond the range of this HowTo.&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
On a practical note, it is helpful to download pppd and your firewall of choice using your ISPs provided router and configure them prior to connecting your home-made router to the internet directly.&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
A DHCP server is responsible for assigning dynamic IP addresses to computers attached to your network.&lt;br /&gt;
&lt;br /&gt;
If your network is small enough, and the constituent computers do not change regularly, you might consider sticking with static (manually) assigned IP addresses. However, beyond a certain size and/or if you have changing members of your network (for example, house guests using your wi-fi), then DHCP becomes quite important.&lt;br /&gt;
&lt;br /&gt;
The only DHCP server that the author was able to install and operate from the default repositories at the time of writing was [https://dnsmasq.org/docs/dnsmasq-man.html dnsmasq.]&lt;br /&gt;
&lt;br /&gt;
==Wi-Fi==&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30987</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30987"/>
		<updated>2025-09-23T19:54:09Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* DHCP Server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
{{Note|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
The clue is in the name that routing is at the heart of what a router does.&lt;br /&gt;
&lt;br /&gt;
To enable routing, you will need to add a line&lt;br /&gt;
&amp;lt;code&amp;gt;net.ipv4.ip_forward=1&amp;lt;/code&amp;gt; to the file /etc/sysctl.conf and then run &lt;br /&gt;
&amp;lt;code&amp;gt;sysctl -p&amp;lt;/code&amp;gt; with administrative privileges.&lt;br /&gt;
&lt;br /&gt;
If you have subnets managed by their own routers in your network, you may need to add [[How to configure static routes|static routing]].&lt;br /&gt;
&lt;br /&gt;
Dynamic routing is an advanced topic which goes beyond the range of this HowTo.&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
On a practical note, it is helpful to download pppd and your firewall of choice using your ISPs provided router and configure them prior to connecting your home-made router to the internet directly.&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
A DHCP server is responsible for assigning dynamic IP addresses to computers attached to your network.&lt;br /&gt;
&lt;br /&gt;
If your network is small enough, and the constituent computers do not change regularly, you might consider sticking with static (manually) assigned IP addresses. However, beyond a certain size and/or if you have changing members of your network (for example, house guests using your wi-fi), then DHCP becomes quite important.&lt;br /&gt;
&lt;br /&gt;
The only DHCP server that the author was able to install and operate from the default repositories at the time of writing was [https://dnsmasq.org/docs/dnsmasq-man.html dnsmasq.]&lt;br /&gt;
&lt;br /&gt;
==Wi-Fi==&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30986</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30986"/>
		<updated>2025-09-23T19:43:53Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Added information about routing.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
{{Note|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
The clue is in the name that routing is at the heart of what a router does.&lt;br /&gt;
&lt;br /&gt;
To enable routing, you will need to add a line&lt;br /&gt;
&amp;lt;code&amp;gt;net.ipv4.ip_forward=1&amp;lt;/code&amp;gt; to the file /etc/sysctl.conf and then run &lt;br /&gt;
&amp;lt;code&amp;gt;sysctl -p&amp;lt;/code&amp;gt; with administrative privileges.&lt;br /&gt;
&lt;br /&gt;
If you have subnets managed by their own routers in your network, you may need to add [[How to configure static routes|static routing]].&lt;br /&gt;
&lt;br /&gt;
Dynamic routing is an advanced topic which goes beyond the range of this HowTo.&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
On a practical note, it is helpful to download pppd and your firewall of choice using your ISPs provided router and configure them prior to connecting your home-made router to the internet directly.&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Wi-Fi==&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30985</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30985"/>
		<updated>2025-09-23T19:36:35Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Added information about practical considerations of installing pppd&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
{{Note|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
On a practical note, it is helpful to download pppd and your firewall of choice using your ISPs provided router and configure them prior to connecting your home-made router to the internet directly.&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Wi-Fi==&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30984</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30984"/>
		<updated>2025-09-23T19:34:18Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Checkpoint - pppd and firewalls&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
{{Note|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
==Enable Routing and Set Up Routes==&lt;br /&gt;
&lt;br /&gt;
==Configuring Network Interfaces==&lt;br /&gt;
&lt;br /&gt;
Generally speaking, routers are in charge of their own IP addresses, as such you will need to understand how to [[Configure Networking#Static address configuration|configure static IP addresses on the interfaces]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet - pppd==&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are planning on connecting your router directly to the internet, you should have a firewall in place. See next section.}}&lt;br /&gt;
&lt;br /&gt;
If you are looking to connect your router directly to the internet without using the router from your ISP, then you will need to configure pppd. The documentation for pppd can be found [https://linux.die.net/man/8/pppd here].&lt;br /&gt;
&lt;br /&gt;
==Firewalls==&lt;br /&gt;
&lt;br /&gt;
Firewalls At the time of writing, there are three main firewall options available of which the author is aware:&lt;br /&gt;
&lt;br /&gt;
* [[Uncomplicated Firewall|ufw - the uncomplicated firewall]]&lt;br /&gt;
* [https://wiki.nftables.org/wiki-nftables/index.php/Main_Page nftables]&lt;br /&gt;
* IPTables is also an option - but be advised that it is an older piece of software with a somewhat arcane syntax. It has been superseded by nftables.&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Wi-Fi==&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30981</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30981"/>
		<updated>2025-09-23T05:42:19Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Adjusted intro to reflect intended change in direction.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network. Unlike most HowTos, this will not form an exhaustive list of instructions, as a home router is not one piece of software, and not every piece of software listed here will be relevant to your specific requirements. Moreover, the individual pieces of software themselves, in particular firewalls, require configuration which requires documentation in their own right.&lt;br /&gt;
&lt;br /&gt;
As such this HowTo will indicate the relevant pieces of software, and link to the corresponding documentation. It will also contain some more general guidance.&lt;br /&gt;
&lt;br /&gt;
{{Note|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* Subnet&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== You should have done ===&lt;br /&gt;
&lt;br /&gt;
Ensure to [[Configure Networking|Connect your router to your ISP router]]. This howto will presume throughout that this connection is set up on the interface eth0.&lt;br /&gt;
&lt;br /&gt;
=== You should ===&lt;br /&gt;
&lt;br /&gt;
Design your network address layout&lt;br /&gt;
&lt;br /&gt;
== Setting up your router ==&lt;br /&gt;
There are two options for your router, depending on whether you wish to use statically or dynamically assigned addresses for your network.&lt;br /&gt;
&lt;br /&gt;
Statically assigned addresses are generally only suitable for networks where there are a very limited number of computers connecting to the router. Moreover, they are unsuitable for situations in which computers which you do not control will need access to your network, for example if you are setting up a router including a wireless interface.&lt;br /&gt;
&lt;br /&gt;
=== Setting up a network with statically assigned addresses ===&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
=== Setting up a network with dynamically assigned addresses ===&lt;br /&gt;
&lt;br /&gt;
== Extension: Adding routes to subnets ==&lt;br /&gt;
&lt;br /&gt;
== Optional Next Steps ==&lt;br /&gt;
&lt;br /&gt;
* Set up a firewall on your router&lt;br /&gt;
* Set up pppd on your router to manage an ISP connection directly&lt;br /&gt;
* Set up hostapd to set up a wireless network&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30931</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30931"/>
		<updated>2025-09-18T19:44:25Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If your router is going to be a gateway to the internet, ensure you look at the next steps part of this tutorial to ensure that you look at items related to security, in particular setting up a firewall, which goes beyond the scope of this HowTo.}}&lt;br /&gt;
&lt;br /&gt;
{{Tip|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
{{Todo|Include a link to an article on connecting to an ISP directly using something like pppd.}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
=== You should have done ===&lt;br /&gt;
&lt;br /&gt;
Ensure to [[Configure Networking|Connect your router to your ISP router]]. This howto will presume throughout that this connection is set up on the interface eth0.&lt;br /&gt;
&lt;br /&gt;
=== You should ===&lt;br /&gt;
&lt;br /&gt;
Design your network address layout&lt;br /&gt;
&lt;br /&gt;
== Setting up your router ==&lt;br /&gt;
There are two options for your router, depending on whether you wish to use statically or dynamically assigned addresses for your network.&lt;br /&gt;
&lt;br /&gt;
Statically assigned addresses are generally only suitable for networks where there are a very limited number of computers connecting to the router. Moreover, they are unsuitable for situations in which computers which you do not control will need access to your network, for example if you are setting up a router including a wireless interface.&lt;br /&gt;
&lt;br /&gt;
=== Setting up a network with statically assigned addresses ===&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
=== Setting up a network with dynamically assigned addresses ===&lt;br /&gt;
&lt;br /&gt;
== Extension: Adding routes to subnets ==&lt;br /&gt;
&lt;br /&gt;
== Optional Next Steps ==&lt;br /&gt;
&lt;br /&gt;
* Set up a firewall on your router&lt;br /&gt;
* Set up pppd on your router to manage an ISP connection directly&lt;br /&gt;
* Set up hostapd to set up a wireless network&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30930</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30930"/>
		<updated>2025-09-18T19:43:36Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If your router is going to be a gateway to the internet, ensure you look at the next steps part of this tutorial to ensure that you look at items related to security, in particular setting up a firewall, which goes beyond the scope of this HowTo.}}&lt;br /&gt;
&lt;br /&gt;
{{Tip|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
{{Todo|Include a link to an article on connecting to an ISP directly using something like pppd.}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
=== You should have done ===&lt;br /&gt;
&lt;br /&gt;
Ensure to [[Configure Networking|Connect your router to your ISP router]]. This howto will presume throughout that this connection is set up on the interface eth0.&lt;br /&gt;
&lt;br /&gt;
== Setting up your router ==&lt;br /&gt;
There are two options for your router, depending on whether you wish to use statically or dynamically assigned addresses for your network.&lt;br /&gt;
&lt;br /&gt;
Statically assigned addresses are generally only suitable for networks where there are a very limited number of computers connecting to the router. Moreover, they are unsuitable for situations in which computers which you do not control will need access to your network, for example if you are setting up a router including a wireless interface.&lt;br /&gt;
&lt;br /&gt;
== Setting up a network with statically assigned addresses ==&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Setting up a network with dynamically assigned addresses ==&lt;br /&gt;
&lt;br /&gt;
== Adding routes to subnets ==&lt;br /&gt;
&lt;br /&gt;
== Optional Next Steps ==&lt;br /&gt;
&lt;br /&gt;
* Set up a firewall on your router&lt;br /&gt;
* Set up pppd on your router to manage an ISP connection directly&lt;br /&gt;
* Set up hostapd to set up a wireless network&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30929</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30929"/>
		<updated>2025-09-18T19:43:12Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: /* Before You Start */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If your router is going to be a gateway to the internet, ensure you look at the next steps part of this tutorial to ensure that you look at items related to security, in particular setting up a firewall, which goes beyond the scope of this HowTo.}}&lt;br /&gt;
&lt;br /&gt;
{{Tip|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
{{Todo|Include a link to an article on connecting to an ISP directly using something like pppd.}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
=== You should know ===&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
=== You should have done ===&lt;br /&gt;
&lt;br /&gt;
Ensure to [[Configure Networking|Connect your router to your ISP router]]. This howto will presume throughout that this connection is set up on the interface eth0.&lt;br /&gt;
&lt;br /&gt;
== Options ==&lt;br /&gt;
There are two options for your router, depending on whether you wish to use statically or dynamically assigned addresses for your network.&lt;br /&gt;
&lt;br /&gt;
Statically assigned addresses are generally only suitable for networks where there are a very limited number of computers connecting to the router. Moreover, they are unsuitable for situations in which computers which you do not control will need access to your network, for example if you are setting up a router including a wireless interface.&lt;br /&gt;
&lt;br /&gt;
== Setting up a network with statically assigned addresses ==&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Setting up a network with dynamically assigned addresses ==&lt;br /&gt;
&lt;br /&gt;
== Adding routes to subnets ==&lt;br /&gt;
&lt;br /&gt;
== Optional Next Steps ==&lt;br /&gt;
&lt;br /&gt;
* Set up a firewall on your router&lt;br /&gt;
* Set up pppd on your router to manage an ISP connection directly&lt;br /&gt;
* Set up hostapd to set up a wireless network&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30928</id>
		<title>Setting up a Home Router</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_a_Home_Router&amp;diff=30928"/>
		<updated>2025-09-18T19:32:50Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Created page with &amp;quot; {{Expand|To include information on ipv6}}  This HowTo is written to indicate the basics necessary to get a simple router set up for a network.  {{Tip|If your router is going to be a gateway to the internet, ensure you look at the next steps part of this tutorial to ensure that you look at items related to security, in particular setting up a firewall, which goes beyond the scope of this HowTo.}}  {{Tip|Throughout this HowTo, it is presumed that you have a router provide...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{{Expand|To include information on ipv6}}&lt;br /&gt;
&lt;br /&gt;
This HowTo is written to indicate the basics necessary to get a simple router set up for a network.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If your router is going to be a gateway to the internet, ensure you look at the next steps part of this tutorial to ensure that you look at items related to security, in particular setting up a firewall, which goes beyond the scope of this HowTo.}}&lt;br /&gt;
&lt;br /&gt;
{{Tip|Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection}}&lt;br /&gt;
&lt;br /&gt;
{{Todo|Include a link to an article on connecting to an ISP directly using something like pppd.}}&lt;br /&gt;
&lt;br /&gt;
== Before You Start ==&lt;br /&gt;
&lt;br /&gt;
This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:&lt;br /&gt;
&lt;br /&gt;
* IP Address&lt;br /&gt;
* Address Mask&lt;br /&gt;
* CIDR (Notation of the form 192.168.1.0/24)&lt;br /&gt;
&lt;br /&gt;
Ensure to [[Configure Networking|Connect your router to your ISP router]]. This howto will presume throughout that this connection is set up on the interface eth0.&lt;br /&gt;
&lt;br /&gt;
There are two options for your router, depending on whether you wish to use statically or dynamically assigned addresses for your network.&lt;br /&gt;
&lt;br /&gt;
Statically assigned addresses are generally only suitable for networks where there are a very limited number of computers connecting to the router. Moreover, they are unsuitable for situations in which computers which you do not control will need access to your network, for example if you are setting up a router including a wireless interface.&lt;br /&gt;
&lt;br /&gt;
== Setting up a network with statically assigned addresses ==&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Setting up a network with dynamically assigned addresses ==&lt;br /&gt;
&lt;br /&gt;
== Adding routes to subnets ==&lt;br /&gt;
&lt;br /&gt;
== Optional Next Steps ==&lt;br /&gt;
&lt;br /&gt;
* Set up a firewall on your router&lt;br /&gt;
* Set up pppd on your router to manage an ISP connection directly&lt;br /&gt;
* Set up hostapd to set up a wireless network&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=30927</id>
		<title>User:AlpinePhil</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:AlpinePhil&amp;diff=30927"/>
		<updated>2025-09-18T18:21:33Z</updated>

		<summary type="html">&lt;p&gt;AlpinePhil: Created page with &amp;quot; ==TODOs==  #Page on setting up a router #*Request merges #Page on setting up a connection to an ISP using pppd #* This might be a bit short given that it&amp;#039;s basically pppd, but might still be a useful pointer? #Page on setting up a wifi network with hostapd #* Other pages will need to be pointed/merged to this&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==TODOs==&lt;br /&gt;
&lt;br /&gt;
#Page on setting up a router&lt;br /&gt;
#*Request merges&lt;br /&gt;
#Page on setting up a connection to an ISP using pppd&lt;br /&gt;
#* This might be a bit short given that it&#039;s basically pppd, but might still be a useful pointer?&lt;br /&gt;
#Page on setting up a wifi network with hostapd&lt;br /&gt;
#* Other pages will need to be pointed/merged to this&lt;/div&gt;</summary>
		<author><name>AlpinePhil</name></author>
	</entry>
</feed>