some fixes
This commit is contained in:
1 parent
cfcf7f09e0
commit
731989b840
5 files changed
+29
-1
No files matched your search
@@ -44,6 +44,7 @@ const login = async (username, password) => {
|
||||
await get_user_data()
|
||||
loginusername.value = ""
|
||||
loginpassword.value = ""
|
||||
settingssection.classList.add('active')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
interface=eth1
|
||||
dhcp-range=192.168.100.2,192.168.100.100,12h
|
||||
dhcp-range=interface:eth0,192.168.100.2,192.168.100.100,12h
|
||||
dhcp-range=interface:wlan0,192.168.101.2,192.168.101.100,12h
|
||||
resolv-file=/etc/dnsmasq.conf.d/resolv.conf
|
||||
addn-hosts=/etc/dnsmasq.conf.d/hosts
|
||||
cache-size=10000
|
||||
@@ -0,0 +1,14 @@
|
||||
interface=wlan0
|
||||
driver=nl80211
|
||||
ssid=OpenRouterWIFI
|
||||
hw_mode=g
|
||||
channel=6
|
||||
wmm_enabled=0
|
||||
macaddr_acl=0
|
||||
auth_algs=1
|
||||
ignore_broadcast_ssid=0
|
||||
wpa=2
|
||||
wpa_passphrase=OpenRouterPassword
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
wpa_pairwise=TKIP
|
||||
rsn_pairwise=CCMP
|
||||
@@ -8,6 +8,7 @@ case "$1" in
|
||||
printf "Starting dnsmasq "
|
||||
sleep 1
|
||||
/usr/bin/dnsmasq --user=dnsmasq --pid-file=/var/run/dnsmasq.pid
|
||||
echo "nameserver 0.0.0.0" > /etc/resolv.conf
|
||||
if [[ "$?" == "0" ]]; then
|
||||
echo "nameserver 0.0.0.0" > /etc/resolv.conf
|
||||
printf "[$Green OK $Color_off]\n"
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
# Loopback interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
# eth0 - connected to the internet
|
||||
auto eth0
|
||||
iface eth0 inet dhcp
|
||||
|
||||
# eth1 - internal network
|
||||
auto eth1
|
||||
iface eth1 inet static
|
||||
address 192.168.100.1
|
||||
netmask 255.255.255.0
|
||||
|
||||
# wlan0 - internal wireles network
|
||||
auto wlan0
|
||||
iface wlan0 inet static
|
||||
address 192.168.101.1
|
||||
netmask 255.255.255.0
|
||||
Reference in new issue
Block a user