forked from oofnikj/docker-openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenwrt.conf.example
More file actions
58 lines (53 loc) · 1.72 KB
/
openwrt.conf.example
File metadata and controls
58 lines (53 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
### Sample OpenWrt config file ###
## General
# OpenWrt version
OPENWRT_SOURCE_VER=19.07.4
# image tag for pre-built Docker image, or if building locally
IMAGE_TAG=oofnik/openwrt
# container name
CONTAINER=openwrt_1
## Docker network settings
# name of the WAN Docker network
WAN_NAME=openwrt-wan
# host interface which will provide the WAN link for OpenWrt
WAN_PARENT=eth0
# upstream DNS for OpenWrt
UPSTREAM_DNS_SERVER=8.8.8.8
# name of the LAN Docker network
LAN_NAME=openwrt-lan
# Host interface which will provide the LAN link for OpenWrt.
# Can be a physical interface or a VLAN of the primary interface if
# operating without a second NIC.
# For example if WAN_PARENT is eth0, LAN_PARENT can be eth0.10 for
# VLAN 10. VLAN interface will be created if it doesn't exist, and
# destroyed on shutdown.
LAN_PARENT=eth0.10
# Docker network driver for LAN interface, either 'bridge', 'macvlan', or 'ipvlan'.
# Don't change this unless you have good reason.
LAN_DRIVER=bridge
# DNS search domain for LAN DHCP clients
LAN_DOMAIN=home
# Subnet configuration for LAN network
LAN_SUBNET=192.168.16.0/24
# Set LAN_ADDR to something other than the first available address
# in the subnet - Docker will claim this address for the host.
LAN_ADDR=192.168.16.2
# openwrt doesn't accept CIDR notation; must match LAN_SUBNET
LAN_NETMASK=255.255.255.0
## Wifi settings
WIFI_ENABLED=true
WIFI_IFACE=wlan0
WIFI_SSID=test123
WIFI_ENCRYPTION=psk2
WIFI_KEY=12345678
# See README.md for explanation of this mode
WIFI_HAIRPIN=false
# Only one of the following sections at a time (5 / 2.4 GHz) are supported!
## 5GHz 802.11ac (if your hw supports it)
# WIFI_HW_MODE=11a
# WIFI_HT_MODE=VHT80
# WIFI_CHANNEL=36
## 2.4 GHz 802.11g
WIFI_HW_MODE=11g
WIFI_HT_MODE=HT20
WIFI_CHANNEL=6