This commit is contained in:
Reed McIntosh 2021-04-16 00:54:08 -04:00
parent 34322e6352
commit 39e31428e9
No known key found for this signature in database
GPG Key ID: 1B054509B676DE56
2 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,16 @@
hostname="fw"
ifconfig_eth0=""
ifconfig_ngeth0="DHCP"
ifconfig_ngeth0="SYNCDHCP"
ifconfig_ngeth0_ipv6="inet6"
ipv6_cpe_wanif="ngeth0"
ifconfig_eth2="inet 192.168.1.1 netmask 255.255.255.0"
gateway_enable="YES"
ipv6_gateway_enable="YES"
pf_enable="YES"
pf_rules="/etc/pf.conf"
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
powerd_enable="YES"
powerd_flags="-b hadp -n hadp -a hadp"
ntpd_enable="YES"
sshd_enable="YES"

View File

@ -315,11 +315,10 @@ For FreeBSD:
1) use file freeatt.sh
2) ng_etf.ko is not needed, standard FreeBSD includes all of the required modules
3) modules can be loaded from /boot/loader.conf, an example loader.conf with the modules listed is included (loading modules in the script should work, but lets do things "properly")
4) set net.inet.ip.forwarding=1 and net.inet6.ip6.forwarding=1 in '/etc/sysctl.conf' and with 'sysctl net.inet.ip.forwarding=1 net.inet6.ip6.forwarding=1'
5) put the freeatt.sh script into '/etc' and rename to 'start_if.$ONT_IF' in my case the file is '/etc/start_if.igb0' this will depend on your hardware
6) in rc.conf, add the line 'ifconfig_$ONT_IF=""' this will trigger rc to run our start_if.$ONT_IF script to create the ngeth0 interface, and then do nothing else to the interface, in my case this line is 'ifconfig_igb0=""' (using $RG_IF instead probably gives the same result)
7) you can then use rc.conf to configure ngeth0 as your wan interface as normal, and configure your lan interface, vlans, etc. as normal depending on your hardware and setup (mac address spoofing is set in the script already)
8) configure pf, dhcpd, etc. to taste, generic examples provided
4) put the freeatt.sh script into '/etc' and rename to 'start_if.$ONT_IF' in my case the file is '/etc/start_if.igb0' this will depend on your hardware
5) in rc.conf, add the line 'ifconfig_$ONT_IF=""' this will trigger rc to run our start_if.$ONT_IF script to create the ngeth0 interface, and then do nothing else to the interface, in my case this line is 'ifconfig_igb0=""' (using $RG_IF instead probably gives the same result)
6) configure the rest of rc.conf, an example is provided with the essentials, gateway_enable, DHCP settings etc.
7) configure pf, dhcpd, etc. to taste, generic examples provided
# U-verse TV