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

Re: IPF/IPNAT Problem



> 
> 	--hostname.dc0--
> 
> shrimpcookie# cat hostname.dc0
> dhcp NONE NONE NONE 
> shrimpcookie#
> 
> 	--hostname.dc1--
> 
> shrimpcookie# cat hostname.dc1
> inet 192.168.1.1 255.255.255.0 NONE 
> shrimpcookie#
>  
> 
> # $OpenBSD: ipnat.rules,v 1.2 1999/05/08 16:33:10 jason Exp $
> #
> # See /usr/share/ipf/nat.1 for examples.
> # edit the ipnat= line in /etc/rc.conf to enable Network Address Translation
> 
> #map ppp0 10.0.0.0/8 -> ppp0/32 portmap tcp/udp 10000:20000
> 
> map dc0 192.168.1.0/24 -> dc0/32 portmap tcp/udp 20000:60000
> map dc0 192.168.1.0/24 -> dc0/32
> 
> 	--ipnat -l--
> 
> shrimpcookie# ipnat -l
> List of active MAP/Redirect filters:
> map dc0 192.168.1.0/24  -> 24.31.44.167/32  portmap tcp/udp 20000:60000
> map dc0 192.168.1.0/24  -> 24.31.44.167/32 
> 
> List of active sessions:
> shrimpcookie# 
> 

map dc0 192.168.1.0/24 -> dc0/32 portmap tcp/udp 20000:60000

may work a little better for a DHCP assigned address.

-- 
|
There is no doubt we need government in our lives. There is also no doubt 
that we need salt in our diet. Watch out for too much of either one.
AA4YU http://www.beekeeper.org http://www.q7.net