formatting adjustments
This commit is contained in:
parent
d1ce9211de
commit
7f4e199904
|
@ -58,7 +58,6 @@ else
|
||||||
dns_domain_config=""
|
dns_domain_config=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the dnsmasq.conf file with the generated DNS server config
|
|
||||||
cat >/etc/dnsmasq.conf <<EOL
|
cat >/etc/dnsmasq.conf <<EOL
|
||||||
interface=$ETH_IFACE
|
interface=$ETH_IFACE
|
||||||
domain-needed
|
domain-needed
|
||||||
|
@ -94,7 +93,7 @@ iptables -t nat -A PREROUTING -i $WLAN_IFACE -j DNAT --to-destination $BRIDGED_C
|
||||||
iptables -t nat -A POSTROUTING -o $ETH_IFACE -j MASQUERADE
|
iptables -t nat -A POSTROUTING -o $ETH_IFACE -j MASQUERADE
|
||||||
echo "Port forwarded everything to the single bridged client"
|
echo "Port forwarded everything to the single bridged client"
|
||||||
|
|
||||||
echo -e "\nRestarting dnsmasq...\n"
|
echo -en "\nRestarting dnsmasq..."
|
||||||
service systemd-resolved stop
|
service systemd-resolved stop
|
||||||
# systemctl enable --now dnsmasq
|
# systemctl enable --now dnsmasq
|
||||||
systemctl restart dnsmasq
|
systemctl restart dnsmasq
|
||||||
|
|
|
@ -39,6 +39,7 @@ while true; do
|
||||||
elif [ "$STATUS" == "1" ]; then
|
elif [ "$STATUS" == "1" ]; then
|
||||||
echo -e "\n----> Interface $ETH_IFACE has been plugged in."
|
echo -e "\n----> Interface $ETH_IFACE has been plugged in."
|
||||||
bash "$DIR/bridge/bridge-lan.sh"
|
bash "$DIR/bridge/bridge-lan.sh"
|
||||||
|
echo ""
|
||||||
bash "$DIR/bridge/clone-client-mac.sh"
|
bash "$DIR/bridge/clone-client-mac.sh"
|
||||||
echo -e "--> Bridge complete\n"
|
echo -e "--> Bridge complete\n"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue