c378
![]() |
|
|
|
|
|||||||
| Firewalls IPFW, PF, IPF (but not limited) related discussion |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi.
I don't know what I'am doing wrong but I can't enable NAT at startup, every reboot shows error: Code:
ipfw: getsockopt(IP_FW_ADD): Invalid argument in rc.conf I have: Code:
firewall_enable="YES" firewall_type="OPEN" gateway_enable="YES" natd_enable="YES" natd_interface="re0" Code:
Id Refs Address Size Name 1 17 0xc0400000 bb5384 kernel 2 2 0xc605b000 11000 ipfw.ko 3 1 0xc606c000 d000 libalias.ko 4 1 0xc6119000 4000 ipdivert.ko 5 1 0xc62e8000 2000 wlan_xauth.ko 6 1 0xc6371000 68000 radeon.ko 7 1 0xc63d9000 14000 drm.ko Code:
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled Last edited by DutchDaemon; January 17th, 2011 at 03:31. |
|
#2
|
|||
|
|||
|
We're you ever able to resolve this as I have the EXACT same issue. This config worked for a while too but somewhere in upgrading to the latest FreeBSD it got broken.
Thanks! Rusty Nejdl |
|
#3
|
|||
|
|||
|
This might be a problem if the NAT module hasn't been loaded when ipfw is initializing.
Try setting ipdivert_load="YES" in /boot/loader.conf |
|
#4
|
|||
|
|||
|
Load the ipfw_nat.ko kernel module and use in-kernel NAT.
Code:
kldload ipfw_nat ipfw nat 1 config if re0 ipfw add nat 1 ip4 from any to any via re0 |
|
#5
|
|||
|
|||
|
That's what I ended up doing for the ipnat stuff was simply to compile it into the kernel instead of as kernel modules as something is messed up on that as most of my kernel modules just don't load, without any error. NVIDIA, AIO, HTTP_*, VIRTUALBOX, they are just plain skipped.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] ipfw nat problems | graudeejs | Firewalls | 14 | January 10th, 2011 06:37 |
| IPFW and NAT | kalman84 | Firewalls | 0 | November 8th, 2010 09:53 |
| IPFW+NAT+FreeBSD7.3 please help to solve problem | rman-86 | Firewalls | 7 | September 22nd, 2010 17:39 |
| IPFW kernel nat problem FreeBSD 8.1 release | apanas | Firewalls | 18 | September 18th, 2010 12:54 |
| ipfw nat tablearg --> ipfw nat 0 | sandrey | Firewalls | 0 | February 6th, 2009 16:54 |