jgsoftwares/openwrt-x86-backfire

By jgsoftwares

Updated 3 months ago

openwrt - backfire - version 10.03.1

Image
Networking
0

538

moved to jgsoftwares/openwrt23.05:docker

config network /etc/config vi network
start network with
ifup wan \

vlan docker network create -d ipvlan --subnet=217.160.255.254/32 --gateway=217.160.255.254 -o ipvlan_mode=l2 -o parent=virbr0 openwrtdevssh

run container with docker compose up
switch to ethernet -> eth0 -> save \

forward all packages with:
sysctl -w net.ipv4.ip_nonlocal_bind=1
sysctl -w net.ipv4.conf.all.forwarding=1
sysctl -w net.ipv4.ip_forward=1

wan config static ip setup:
uci set network.wan.proto=dhcp
uci set network.wan.ipaddr=217.160.255.254
uci set network.wan.netmask=255.255.255.255
uci set network.wan.gateway=217.160.255.1
uci set network.wan.dns=95.85.95.85
uci add_list network.wan.dns=2.56.220.2
uci commit
/etc/init.d/network restart \

import the image from:
https://archive.openwrt.org/backfire/10.03.1/x86_generic/ \

ssh over public key is enable - attach to container and parse your ssh public file to path with
-- access to container
docker exec -it openwrtbackgcore /bin/ash
container is forwarded
start interface with
ifup wan -> gateway + dhcp had to config manually over the hostmaschine to get a success connection \

-- open wrt_rsa file to parse text
vi ~/.ssh/wrt_rsa
-- add keyfile and save it with
:w
-- exit from editor with
:q
-- restart openwrt container with public ssh keyfile for to devleoper maschine
reboot

the default password is jj78mvpr52k1

start network with - luci - port 8081
/etc/init.d/uhttpd restart

docker run command \

docker run -it --name openwrtbackfire jgsoftwares/openwrt-x86-backfire:latest /bin/ash

gcore - - < switch to >
docker run -it -p 0.0.0.0:123:123 -p 0.0.0.0:53:53 --name openwrtbackgcore --runtime io.containerd.runc.v2 -v /etc/resolv.conf:/etc/resolv.conf -e TZ=Europe/Berlin --blkio-weight 100 --cpu-shares 1024 --cpu-quota 1000 --cpu-period 1000 --net=host --add-host=demogitjava.ddns.net:217.160.255.254 --platform=linux/amd64 --kernel-memory=6M --restart unless-stopped --privileged -e NETWORK_IF=eth0 jgsoftwares/openwrt-x86-backfire:gcore /bin/ash

google
docker run -it -p 0.0.0.0:123:123 -p 0.0.0.0:53:53 --name openwrtbackgoogle --runtime io.containerd.runc.v2 -v /etc/resolv.conf:/etc/resolv.conf -e TZ=Europe/Berlin --blkio-weight 100 --cpu-shares 1024 --cpu-quota 1000 --cpu-period 1000 --net=host --add-host=demogitjava.ddns.net:217.160.255.254 --platform=linux/amd64 --kernel-memory=6M --restart unless-stopped --privileged -e NETWORK_IF=eth0 jgsoftwares/openwrt-x86-backfire:google /bin/ash

opendns
docker run -it -p 0.0.0.0:123:123 -p 0.0.0.0:53:53 --name openwrtbackopendns --runtime io.containerd.runc.v2 -v /etc/resolv.conf:/etc/resolv.conf -e TZ=Europe/Berlin --blkio-weight 100 --cpu-shares 1024 --cpu-quota 1000 --cpu-period 1000 --net=host --add-host=demogitjava.ddns.net:217.160.255.254 --platform=linux/amd64 --kernel-memory=6M --restart unless-stopped --privileged -e NETWORK_IF=eth0 jgsoftwares/openwrt-x86-backfire:opendns /bin/ash


optionnal
--runtime runc\

conenct over openwrt to devssh container with
ssh -2 -4 -YX -c chacha20-poly1305@openssh.com -C root@yourfqdn -R 22:yourwanip:22

edit the config files manually
/etc/config\

connect to container
docker exec -it openwrtbackgcore /bin/ash

Docker Pull Command

docker pull jgsoftwares/openwrt-x86-backfire