Hello,
I have an Asus eeepc 900a which I put FreeBSD 9.2 on. I want this little thing to be my router/firewall connected to my cable connection. I set everything up and without the IPFW rules NAT works and I can obtain a DHCP-assigned address from wlan0 on the Eee's wireless network.
To set up my firewall I used the stateful rules here: http://www.freebsd.org/doc/handbook/firewalls-ipfw.html, modified to reflect my own network interface names and DNS server/cable DHCP server addresses. When I load the rules, however, I lose the NAT capabilities and cannot connect to the internet from a separate machine connected to the wireless network presented on the Eee.
Here are the contents of my rc.conf:
From /var/log/security I see that rule 450 from the ruleset at the above URL is blocking the traffic. It would appear that the "skip to 800" is simply being ignored. I should also note that I am using a stock kernel.
Thanks for any help!
PV
I have an Asus eeepc 900a which I put FreeBSD 9.2 on. I want this little thing to be my router/firewall connected to my cable connection. I set everything up and without the IPFW rules NAT works and I can obtain a DHCP-assigned address from wlan0 on the Eee's wireless network.
To set up my firewall I used the stateful rules here: http://www.freebsd.org/doc/handbook/firewalls-ipfw.html, modified to reflect my own network interface names and DNS server/cable DHCP server addresses. When I load the rules, however, I lose the NAT capabilities and cannot connect to the internet from a separate machine connected to the wireless network presented on the Eee.
Here are the contents of my rc.conf:
Code:
hostname="fw"
sshd_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
ipfw_load="YES"
ipdivert_load="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
defaultrouter="10.10.10.1"
ifconfig_ale0="SYNCDHCP"
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="inet 192.168.2.1 netmask 255.255.255.0 ssid freebsdap mode 11g channel 1"
hostapd="YES"
dhcpd_enable="YES"
dhcpd_ifaces="wlan0"
gateway_enable="YES"
natd_enable="YES" # Enable NATD function
natd_interface="ale0" # interface name of public Internet NIC
natd_flags="-m" # -m = preserve port numbers if possible
firewall_enable="YES"
firewall_nat_enable="YES"
firewall_type="OPEN"
firewall_logging="YES"
firewall_script="/etc/ipfw.conf"
From /var/log/security I see that rule 450 from the ruleset at the above URL is blocking the traffic. It would appear that the "skip to 800" is simply being ignored. I should also note that I am using a stock kernel.
Thanks for any help!
PV