Compare commits

...

7 commits

Author SHA1 Message Date
3da1ff997e Merge pull request 'Freebsd 13' (#55) from reedmcintosh/FreeBSD-13 into master
Reviewed-on: #55
2024-10-11 18:37:10 +05:30
7e30f3e353 Merge pull request 'Fixes https://github.com/MonkWho/pfatt/issues/65' (#70) from dkowis/opnsense22.1 into master
Reviewed-on: #70
2024-10-11 18:36:41 +05:30
28da6ae36e Merge pull request 'Fix for newer versions of pfSense.' (#73) from neclimdul/ngctl_attach_removal into master
Reviewed-on: #73
2024-10-11 18:35:14 +05:30
3059f89aa4 Merge pull request 'Update gen-duid.sh' (#88) from bplein/master into master
Reviewed-on: #88
2024-10-11 18:34:26 +05:30
Bill Plein
9d5e5d011f Update gen-duid.sh
Add support for Nokia BGW-500. This generates the proper DUID for these units.
2024-05-25 15:42:23 -05:00
James Gilliland
015a8cf913 Fix for newer versions of pfSense.
Support newer versions of pfSense without pfSense_ngctl_attach.

Relates to #67
2022-05-02 09:20:38 -05:00
David Kowis
aaba7c36ed
Fixes https://github.com/MonkWho/pfatt/issues/65
Have verified on opnsense 21.x and on 22.1, non-supplicant, tethered
mode.
2022-03-12 23:16:04 -06:00
2 changed files with 9 additions and 6 deletions

View file

@ -6,13 +6,13 @@ printhexstring() { awk '{l=split($0,c,"");for(i=1;i<l-1;i=i+2)printf("%s:",subst
echo
echo "Step 1) RG information"
echo
while read -p " Manufacturer [1=Pace, 2=Motorola/Arris]: " mfg; do
([ "$mfg" = "1" ] || [ "$mfg" = "2" ]) && break
while read -p " Manufacturer [1=Pace, 2=Motorola/Arris, 3=Nokia]: " mfg; do
([ "$mfg" = "1" ] || [ "$mfg" = "2" ] || [ "$mfg" = "3" ]) && break
done
while read -p " Serial number: " serial; do [ -n "$serial" ] && break; done
echo
[ "$mfg" = "1" ] && mfg="00D09E" || mfg="001E46"
[ "$mfg" = "1" ] && mfg="00D09E" || [ "$mfg" = "2" ] && mfg="001E46" || [ "$mfg" = "3" ] && mfg="207852"
echo -n "Identifier: "
ascii2hex "$mfg-$serial" | printhexstring

View file

@ -18,8 +18,10 @@ getTimestamp(){
echo "$(getTimestamp) RG_ETHER_ADDR: $RG_ETHER_ADDR"
echo -n "$(getTimestamp) attaching interfaces to ng_ether... "
/usr/local/bin/php -r "pfSense_ngctl_attach('.', '$ONT_IF');"
/usr/local/bin/php -r "pfSense_ngctl_attach('.', '$RG_IF');"
# Only needed for older versions of pfatt. Newer versions handle this automatically.
# Eventually this can be remove.
/usr/local/bin/php -r "function_exists('pfSense_ngctl_attach') && pfSense_ngctl_attach('.', '$ONT_IF');"
/usr/local/bin/php -r "function_exists('pfSense_ngctl_attach') && pfSense_ngctl_attach('.', '$RG_IF');"
echo "OK!"
echo "$(getTimestamp) building netgraph nodes..."
@ -80,7 +82,8 @@ getTimestamp(){
echo "OK!"
echo -n "$(getTimestamp) enabling promiscuous mode on $ONT_IF... "
/sbin/ifconfig $ONT_IF promisc
# Updated as per https://github.com/MonkWho/pfatt/issues/65
/sbin/ifconfig $ONT_IF promisc -vlanhwtag -vlanhwfilter -vlanhwtso
echo "OK!"
echo "$(getTimestamp) ngeth0 should now be available to configure as your pfSense WAN"