asolomon15 wrote:
Hello all,
I tried to setup natd on my fbsd 5.2.1 box and fbsd 4.10 box with no luck. What I wanted to do was to setup a gateway for my internal network to my cable provider. On my server box I have two ethernet card dc0 pointing to cable modem and dc1 pointing to hub so that the other computers may connect with my bsd gateway. I managed recompile the kernel with options IPFIREWALL and IPDIVERT and kernel compiled successfully.
Then I add natd, gateway and firewall to my rc.conf file

I think you mixed up the following two (excerpt from /etc/default/rc.conf): firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall)

To fix your mistake, I would then not touch the firewall_script variable, but
only set firewall_type in /etc/rc.conf:


Then why your ping doesn't work with firewall, and works when firewall off:

It seems you are not using
in your kernel configuration, which means, by default your kernel blocks
*everything* (also the ping). Since you used the wrong variable settings
in /etc/rc.conf, you ended up with firewall that blocks everything.
Disabling the firewall, opens up your connections again. Hence the
behaviour of your ping tests.
Using firewall_type="open" in rc.conf will prevent this.

Check your firewall settings, as root, "ipfw list".

Does this make sense to you?


_______________________________________________ [EMAIL PROTECTED] mailing list To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to