Hello!
I would like to ask for your clever advice. I'm really stuck at one point and can't find where is the mistake. I couldn't decide in witch forum section to put this post, but I think it refers more to network related discussions.
I have installed FreeBSD 8.0 on my box and I would like to make it to work as a router. Internet is connected by cable (ip is acquired by DHCP). Lan side is wireless. I'v configured both Lan and Wifi interfaces. DHCPd on wlan is working. Added to rc.conf lines to load ipwf, but can't get nat working. In dmesg it prints line that confuses me:
dmesg:
As I found in rc.conf(5) ipfw nat support is now loadable without kernel change. My rc.conf is:
rc.conf:
ipfw prints following:
And I can't figure out, is the /etc/ipfw.rules essential? And do I have to enable natd in rc.conf or ipfw uses it's build in natd? Please give me advice, what am I doing wrong?
Thank you!
I would like to ask for your clever advice. I'm really stuck at one point and can't find where is the mistake. I couldn't decide in witch forum section to put this post, but I think it refers more to network related discussions.
I have installed FreeBSD 8.0 on my box and I would like to make it to work as a router. Internet is connected by cable (ip is acquired by DHCP). Lan side is wireless. I'v configured both Lan and Wifi interfaces. DHCPd on wlan is working. Added to rc.conf lines to load ipwf, but can't get nat working. In dmesg it prints line that confuses me:
dmesg:
Code:
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled
As I found in rc.conf(5) ipfw nat support is now loadable without kernel change. My rc.conf is:
rc.conf:
Code:
### General ###
keymap="us.iso"
hostname="home.home.com"
### Deamons ###
sshd_enable="YES"
gateway_enable="YES"
hostapd_enable="YES"
named_enable="YES"
### Wired Lan ###
ifconfig_re0="DHCP"
### Wireless Lan ###
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap mode 11g"
ifconfig_wlan0="inet 192.168.100.1 netmask 0xffffff00 ssid home channel 11"
### Dhcpd ###
dhcpd_enable="YES"
dhcpd_ifaces="wlan0"
### IPFW ###
firewall_enable="YES"
firewall_type="open"
firewall_logging="YES"
firewall_nat_enable="YES"
firewall_nat_interface="re0"
dummynet_enable="YES"
ipfw prints following:
Code:
00050 2981 492046 divert 8668 ip4 from any to any via re0
00100 0 0 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
65000 3547 550143 allow ip from any to any
65535 0 0 deny ip from any to any
And I can't figure out, is the /etc/ipfw.rules essential? And do I have to enable natd in rc.conf or ipfw uses it's build in natd? Please give me advice, what am I doing wrong?
Thank you!