[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible error in man page of nat.conf



Hello,
I believe there may be an error in the nat.conf manual page of OpenBSD 3.1.
In this page it is said that in nat rules you may use the interface name 
in parenthesis as the address in stead of an IP number.
So, this should work:

nat on de0 from 192.168.10.0/24 to any -> (de0)

But every time I try this I get a syntax error during boot and the nat
rules are not loaded, and the computers on the 192 net cannot communicate
with the world.

But if I leave off the parenthesis it works!

nat on de0 from 192.168.10.0/24 to any -> de0

Now I have this line in my nat.conf and my computers behind the firewall
on the 192 network kan communicate with the world.

I am using OpenBSD 3.1 for the i386 installed straight off an original
OpenBSD CD set.

I hope you have some time to see if this problem is an error on my part
or if the documentation should be amended. If I was not clear enough in
my message, feel free to ask questions!

You might want to add this to the faq as well, because when you have to
use dhcp to get an ip number for the outside interface, it is troublesome
to have to add the ip number to the nat.conf file as is said in the faq,
using the interface name in stead saves work and trouble.
Regards,
Kees Stravers



--  
kees.stravers@iae.nl
Geldrop, The Netherlands
http://home.iae.nl/users/pb0aia/
Member of Insomniacs Anonymous


Net-Tamer V 1.08.1 - Registered