1
0
mirror of https://github.com/MonkWho/pfatt.git synced 2024-11-22 02:25:24 +01:00

Supplicant OPNsense testing

This commit is contained in:
MonkWho 2020-05-26 22:15:32 -07:00 committed by GitHub
parent faa80d09f9
commit 994f36a727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,17 +32,17 @@
# Required Config # Required Config
# =============== # ===============
ONT_IF="igb0" ONT_IF="xx0"
RG_ETHER_ADDR="00:00:00:00:00:00" RG_ETHER_ADDR="xx:xx:xx:xx:xx:xx"
EAP_MODE="bridge" EAP_MODE="bridge"
# Supplicant Config # Supplicant Config
# ================= # =================
EAP_SUPPLICANT_IDENTITY="00:00:00:00:00:00" EAP_SUPPLICANT_IDENTITY="xx:xx:xx:xx:xx:xx"
# Bridge Config # Bridge Config
# ============= # =============
EAP_BRIDGE_IF="igb1" EAP_BRIDGE_IF="xx1"
EAP_BRIDGE_5268AC=0 EAP_BRIDGE_5268AC=0
##### DO NOT EDIT BELOW ################################################################################# ##### DO NOT EDIT BELOW #################################################################################
@ -65,12 +65,18 @@ EAP_BRIDGE_5268AC=0
/usr/sbin/ngctl shutdown vlan0: >/dev/null 2>&1 /usr/sbin/ngctl shutdown vlan0: >/dev/null 2>&1
/usr/sbin/ngctl shutdown ngeth0: >/dev/null 2>&1 /usr/sbin/ngctl shutdown ngeth0: >/dev/null 2>&1
/sbin/kldload -nq netgraph
/sbin/kldload -nq ng_ether
/sbin/kldload -nq ng_vlan
/sbin/kldload -nq ng_eiface
/sbin/kldload -nq ng_one2many
if [ "$EAP_MODE" = "bridge" ] ; then if [ "$EAP_MODE" = "bridge" ] ; then
/usr/bin/logger -st "pfatt" "configuring EAP environment for $EAP_MODE mode..." /usr/bin/logger -st "pfatt" "configuring EAP environment for $EAP_MODE mode..."
/usr/bin/logger -st "pfatt" "cabling should look like this:" /usr/bin/logger -st "pfatt" "cabling should look like this:"
/usr/bin/logger -st "pfatt" " ONT---[] [$ONT_IF]$HOST[$EAP_BRIDGE_IF] []---[] [ONT_PORT]ResidentialGateway" /usr/bin/logger -st "pfatt" " ONT---[] [$ONT_IF]$HOST[$EAP_BRIDGE_IF] []---[] [ONT_PORT]ResidentialGateway"
/usr/bin/logger -st "pfatt" "loading netgraph kernel modules..." /usr/bin/logger -st "pfatt" "loading netgraph kernel modules..."
/sbin/kldload -nq /conf/pfatt/bin/ng_etf.ko /sbin/kldload -nq ng_etf
/usr/bin/logger -st "pfatt" "attaching interfaces to ng_ether..." /usr/bin/logger -st "pfatt" "attaching interfaces to ng_ether..."
/usr/local/bin/php -r "pfSense_ngctl_attach('.', '$ONT_IF');" /usr/local/bin/php -r "pfSense_ngctl_attach('.', '$ONT_IF');"
/usr/local/bin/php -r "pfSense_ngctl_attach('.', '$EAP_BRIDGE_IF');" /usr/local/bin/php -r "pfSense_ngctl_attach('.', '$EAP_BRIDGE_IF');"