diff --git a/bridge-install.sh b/bridge-install.sh index becad18..4c7a146 100755 --- a/bridge-install.sh +++ b/bridge-install.sh @@ -156,7 +156,7 @@ Name=$WLAN_IFACE IPForward=yes DHCP=yes EOF -echo "Created network config: $WLAN_IFACE" +echo "Created network config for the $WLAN_IFACE WiFi interface." echo -e "Finishing systemd-networkd install...\n" apt-get install $NON_INTERACTIVE_APT libnss-resolve ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf diff --git a/bridge/bridge-lan.sh b/bridge/bridge-lan.sh index ff63b43..3f9f853 100755 --- a/bridge/bridge-lan.sh +++ b/bridge/bridge-lan.sh @@ -80,20 +80,20 @@ iptables -X iptables -F iptables -t nat -X iptables -t nat -F -echo "Reset iptables" +echo "Reset iptables." # Route/forward traffic between nets iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -I FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -t nat -I POSTROUTING -o $WLAN_IFACE -j MASQUERADE -echo "Created iptables to route traffic between nets" +echo "Created iptables to route traffic between nets." # Exclude the SSH port from forwarding so we can still administer the router iptables -t nat -A PREROUTING -i $WLAN_IFACE -p tcp --dport $ROUTER_SSH_PORT -j RETURN # Forward all other ports to the single wired device iptables -t nat -A PREROUTING -i $WLAN_IFACE -j DNAT --to-destination $BRIDGED_CLIENT_IP iptables -t nat -A POSTROUTING -o $ETH_IFACE -j MASQUERADE -echo "Redirected the router's ports to the single bridged client" +echo "Redirected the router's ports to the single bridged client." echo -en "\nRestarting dnsmasq..." systemctl stop systemd-resolved diff --git a/bridge/bridge-reset.sh b/bridge/bridge-reset.sh index 165e272..f19c54d 100755 --- a/bridge/bridge-reset.sh +++ b/bridge/bridge-reset.sh @@ -30,13 +30,13 @@ iptables -X iptables -F iptables -t nat -X iptables -t nat -F -echo "Cleared iptables" +echo "Cleared iptables." # Restore MAC address to WLAN interface ifconfig $WLAN_IFACE down ifconfig $WLAN_IFACE hw ether "$(ethtool -P $WLAN_IFACE | awk '{print $3}')" ifconfig $WLAN_IFACE up -echo "Reset $WLAN_IFACE" +echo "Reset the $WLAN_IFACE WiFi interface." while true; do WLAN_IFACE_IP=$(ip -4 -br addr show $WLAN_IFACE | grep -Po "\\d+\\.\\d+\\.\\d+\\.\\d+") @@ -50,7 +50,7 @@ done systemctl start systemd-resolved systemctl stop dnsmasq -echo "Reset DNS services" +echo "Reset DNS services." echo -e "\nConnecting to WiFi..." @@ -89,7 +89,7 @@ Name=$WLAN_IFACE IPForward=yes DHCP=yes EOF -echo "Created network config: $WLAN_IFACE" +echo "Created network config for the $WLAN_IFACE WiFi interface." echo "Restarting systemd-networkd..." systemctl restart systemd-networkd.service