Last active
June 5, 2023 02:02
-
-
Save cybik/ecceae4f4aa0be576ef822b9deacf12f to your computer and use it in GitHub Desktop.
Revisions
-
cybik revised this gist
Jun 26, 2020 . 1 changed file with 14 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,20 @@ Starting the container, replace <ARCH> with your target, from these choices: and run the following ``` docker run --rm -it -p 8880:80 -p 8443:443 -p 8822:22 openwrtorg/rootfs:<ARCH>-19.07.3 ``` ## arm32 ``` docker run --rm -it -p 8880:80 -p 8443:443 -p 8822:22 openwrtorg/rootfs:armvirt-32-19.07.3 ``` ## arm64 ``` docker run --rm -it -p 8880:80 -p 8443:443 -p 8822:22 openwrtorg/rootfs:armvirt-64-19.07.3 ``` ## x86-64 ``` docker run --rm -it -p 8880:80 -p 8443:443 -p 8822:22 openwrtorg/rootfs:x86-64-19.07.3 ``` ## You got the rootfs active. What now? -
cybik renamed this gist
Jun 26, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
cybik revised this gist
Jun 26, 2020 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ # Some jank about homenet/hncp ``` opkg remove odhcpd-ipv6only; opkg install odhcpd; opkg install luci-app-hnet luci-proto-hnet hnet-full-secure ``` -
cybik revised this gist
Jun 24, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Starting the container, replace <ARCH> with your target, from these choices: * x86-64 * armvirt-32 * armvirt-64 and run the following ``` @@ -17,7 +17,7 @@ opkg update; opkg list-upgradable > /tmp/listup; sed -e 's/ .*$//' /tmp/listup | opkg install luci-app-ocserv luci-app-ddns luci-app-upnp luci-app-samba4 luci-app-uhttpd apache nano \ apache-mod-http2 apache-mod-proxy apache-mod-proxy-html apache-mod-ssl apache-mod-webdav \ apache-mod-session-crypto apache-utils luci-app-acme luci-app-transmission luci-app-lxc \ luci-app-nlbwmon luci-app-sqm ``` ## Now what? -
cybik revised this gist
Jun 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ In the container, this is my packagestrap: ``` opkg update; opkg list-upgradable > /tmp/listup; sed -e 's/ .*$//' /tmp/listup | xargs opkg upgrade; opkg install luci-app-ocserv luci-app-ddns luci-app-upnp luci-app-samba4 luci-app-uhttpd apache nano \ apache-mod-http2 apache-mod-proxy apache-mod-proxy-html apache-mod-ssl apache-mod-webdav \ apache-mod-session-crypto apache-utils luci-app-acme luci-app-transmission luci-app-lxc \ zsh ``` -
cybik revised this gist
Jun 24, 2020 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ # Shout-outs * Ubiquiti because they're awesome people * OpenWRT because without them I wouldn't be doing this * Qualcomm for being complete toilets and getting me to approach gigabit routing in rather creative fashion * Docker/podman/buildah for making the container stuff possible * https://hub.docker.com/r/openwrtorg/rootfs for making me waste far more time than should be on this dumb quick hack project thing -
cybik revised this gist
Jun 24, 2020 . 1 changed file with 14 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,26 @@ # So you found the docker OpenWRT containers Starting the container, replace <ARCH> with your target, from these choices: * x86-64 * armvirt-32 * armvirt-64: and run the following ``` docker run --rm -it -p 8880:80 -p 8443:443 -p 8822:22 openwrtorg/rootfs:<ARCH>-19.07.2 ``` ## You got the rootfs active. What now? In the container, this is my packagestrap: ``` opkg update; opkg list-upgradable > /tmp/listup; sed -e 's/ .*$//' /tmp/listup | xargs opkg upgrade; opkg install luci-app-ocserv luci-app-ddns luci-app-upnp luci-app-samba4 luci-app-uhttpd apache nano \ apache-mod-http2 apache-mod-proxy apache-mod-proxy-html pache-mod-ssl apache-mod-webdav \ apache-mod-session-crypto apache-utils luci-app-acme luci-app-transmission luci-app-lxc \ zsh ``` ## Now what? I dunno, you tell me. This is a quick hack to get it set up and play with it. I'm assuming giving it privileged access to your whole system would make the container a bona fide router layer within an active Docker instance, and you might be able to straight up run a router via Docker. Not gonna lie, this might end up very useful on a few ARM boards I have. -
cybik created this gist
Jun 24, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # So you found the docker OpenWRT containers Replace <ARCH> with your target, from these choices: * x86-64 * armvirt-32 * armvirt-64 ``` docker run --rm -it -p 8880:80 -p 8443:443 -p 8822:22 openwrtorg/rootfs:<ARCH>-19.07.2 opkg update; opkg list-upgradable > /tmp/listup; sed -e 's/ .*$//' /tmp/listup | xargs opkg upgrade; opkg install luci-app-ocserv luci-app-ddns luci-app-upnp luci-app-samba4 luci-app-uhttpd apache nano \ apache-mod-http2 apache-mod-proxy apache-mod-proxy-html pache-mod-ssl apache-mod-webdav \ apache-mod-session-crypto apache-utils luci-app-acme luci-app-transmission luci-app-lxc \ zsh ```