forgot a few things

This commit is contained in:
Cyberes 2023-06-20 15:17:32 -06:00
parent 2acc67b90a
commit cd5b96a1ef
3 changed files with 8 additions and 1 deletions

View File

@ -3,3 +3,5 @@
This bridge is a lot simpler than the NAT version. Just plug your client(s) into the bridge and it should just work.
Make sure to use a hub (NOT a switch) if you have more than one bridged client. A switch doesn't let the bridge see all the traffic from the clients.
Also, `parprouted` has a bug where it prints its error messages as raw Ethernet frames over the network. If something isn't working, open Wireshark and restart `parprouted`. Look for white "Ethernet II" frames.

View File

@ -94,7 +94,7 @@ WPA_SUPP_FILE="/etc/wpa_supplicant/wpa_supplicant-$WLAN_IFACE.conf"
cat >"$WPA_SUPP_FILE" <<EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=USifconfig $WLAN_IFACE
country=US
network={
ssid="$WIFI_SSID"
scan_ssid=1
@ -171,11 +171,13 @@ RestartSec=5
TimeoutStartSec=30
# clone the dhcp-allocated IP to $ETH_IFACE so dhcp-helper will relay for the correct subnet
ExecStartPre=/bin/bash -c '/sbin/ip addr add \$(/sbin/ip -4 -br addr show $WLAN_IFACE | /bin/grep -Po "\\\d+\\\.\\\d+\\\.\\\d+\\\.\\\d+")/32 dev $ETH_IFACE'
ExecStartPre=/sbin/ip link set dev $ETH_IFACE down
ExecStartPre=/sbin/ip link set dev $ETH_IFACE up
ExecStartPre=/sbin/ip link set $WLAN_IFACE promisc on
ExecStart=-/usr/sbin/parprouted $ETH_IFACE $WLAN_IFACE
ExecStopPost=/sbin/ip link set $WLAN_IFACE promisc off
ExecStopPost=/sbin/ip link set dev $ETH_IFACE down
ExecStopPost=/sbin/ip link set dev $ETH_IFACE up
ExecStopPost=/bin/bash -c '/sbin/ip addr del \$(/sbin/ip -4 -br addr show $WLAN_IFACE | /bin/grep -Po "\\\d+\\\.\\\d+\\\.\\\d+\\\.\\\d+")/32 dev $ETH_IFACE'
[Install]

View File

@ -6,6 +6,9 @@ ETH_IFACE="eth0"
# This will be your WAN port.
WLAN_IFACE="wlan0"
# The IP(s) of your DHCP servers. If multiple, seperate with space.
DHCP_SERVERS="192.168.1.1"
# Name of the WiFi network to connect to.
WIFI_SSID="Example-Network"