I will post my full config just in case i am not understanding.
/etc/hostname.athn0
Code:
up media autoselect mediaopt hostap mode 11g chan 7 nwid MY_SSID wpa wpakey MY_PWD_GOES_HERE
10.2.0.1 255.0.0.0
/etc/hostname.xl0
Code:
inet 10.1.0.1 255.0.0.0
/etc/dhcpd.conf
Code:
option domain-name "my.domain";
option domain-name-servers 4.4.4.4;
subnet 10.2.0.0 netmask 255.0.0.0 {
option routers 10.2.0.1
range 10.2.0.32 10.2.0.99;
}
Code:
echo 'dhcpd_flags="athn0"' >>/etc/rc.conf.local
/etc/sysctl.conf was edited for
Code:
net.inet.ip.forwarding=1
/etc/pf.conf (this is really open for now)
Code:
EXT_IF = "xl0"
WRLS_IF = "athn0"
block log all
match out on egress inet from !(egress:network) to any nat-to (egress:0)
pass out on $EXT_IF from any to any
pass out on $WRLS_IF from any to any
pass in on $WRLS_IF from any to any
I did go to 255.0.0.0 instead of 255.255.255.0 does this matter? Shouldnt i see the connection via tcp dump?