setting up a NAT gateway with PPPoE

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Thu May 11 08:49:23 PDT 2006


"Michael P. Soulier" <msoulier at digitaltorque.ca> writes:

> People,
>
> I have just set up my 5.4 box as a gateway to my DSL connection. I
> used this section of the freebsd handbook.
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoe.html
>
> I enabled NAT on the PPP connection, and viola, it works.

You have musical accompaniment?

> I still have to set up my firewall, but I'm curious about how natd works.
>
> Looking here
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html
>
> I tried to run natd, but I got an error that the socket type was not
> supported. Do I really need to recompile the GENERIC kernel in 5.4 to
> support NAT?

Yes.  See the section of that page titled "Configuration".

> I'm also unclear about how to tell natd which local networks to NAT.

The "divert" rule(s) in your ipfw configuration. 

> Also, why is NAT capability in both PPP and natd?

Convenience.



More information about the freebsd-questions mailing list