I set FreeBSD as the network gateway.
However, the systems on the internal network have no connection.
That's why I didn't check further, but other systems like Android on the local network have no connection.
The configuration is as follows:
/etc/rc.conf
nat on pf:
/etc/pf.conf
Dnsmasq
/usr/local/etc/dnsmasq.conf
/var/db/dnsmasq.leases
Android says connected but no internet
However, the systems on the internal network have no connection.
That's why I didn't check further, but other systems like Android on the local network have no connection.
The configuration is as follows:
/etc/rc.conf
Code:
hostname="router"
dnsmasq_enable="YES"
ifconfig_re0="inet 192.168.1.46 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
wlans_rtwn0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="inet 10.1.1.1 netmask 255.255.255.0"
hostapd_enable="YES"
ifconfig_igb0="inet 10.1.1.1 netmask 255.255.255.0"
#dhcpd_enable="YES"
gateway_enable="YES"
nat on pf:
/etc/pf.conf
Code:
ext_if="re0"
int_if="igb0"
set skip on lo
nat on $ext_if inet from ! ($ext_if) to any -> ($ext_if)
Dnsmasq
/usr/local/etc/dnsmasq.conf
Code:
domain-needed
server=208.67.222.222
server=208.67.220.220
dhcp-range=set:igb0,10.1.1.10,10.1.1.200,255.255.255.0,24h
dhcp-option=igb0,option:router,10.1.1.1
dhcp-range=set:wlan0,10.1.1.10,10.1.1.200,255.255.255.0,24h
dhcp-option=wlan0,option:router,10.1.1.1
/var/db/dnsmasq.leases
Code:
1650906948 0a:50:CE:NZ:OR:ED:ZZ 10.1.1.111 * 01:0a:CE:NZ:OR:ED:ZZ
1650907494 40:6f:CE:NZ:OR:ED:ZZ 10.1.1.190 BLACKBERRY-A293 *
1650906849 00:10:CE:NZ:OR:ED:ZZ 10.1.1.132 DESKTOP-sdxfsd 01:00:CE:NZ:OR:ED:ZZ
Android says connected but no internet