Skip to content

Instantly share code, notes, and snippets.

@cybik
Last active June 5, 2023 02:02
Show Gist options
  • Select an option

  • Save cybik/ecceae4f4aa0be576ef822b9deacf12f to your computer and use it in GitHub Desktop.

Select an option

Save cybik/ecceae4f4aa0be576ef822b9deacf12f to your computer and use it in GitHub Desktop.

Revisions

  1. cybik revised this gist Jun 26, 2020. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion README.md
    Original 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.2
    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?
  2. cybik renamed this gist Jun 26, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. cybik revised this gist Jun 26, 2020. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions TOTALLY WEIRD.md
    Original 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
    ```
  4. cybik revised this gist Jun 24, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original 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:
    * 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 \
    zsh
    luci-app-nlbwmon luci-app-sqm
    ```

    ## Now what?
  5. cybik revised this gist Jun 24, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original 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 pache-mod-ssl apache-mod-webdav \
    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
    ```
  6. cybik revised this gist Jun 24, 2020. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions SHOUTOUTS.md
    Original 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
  7. cybik revised this gist Jun 24, 2020. 1 changed file with 14 additions and 3 deletions.
    17 changes: 14 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,26 @@
    # So you found the docker OpenWRT containers

    Replace <ARCH> with your target, from these choices:
    Starting the container, replace <ARCH> with your target, from these choices:
    * x86-64
    * armvirt-32
    * armvirt-64

    * 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.
  8. cybik created this gist Jun 24, 2020.
    15 changes: 15 additions & 0 deletions README.md
    Original 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
    ```