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

Re: [afnog] AFS over NAT bug



On Thu, Aug 14, 2003 at 01:11:58PM +0200, Nelson Chamba wrote:
>    There are two networks in our company. One is 196.x.x.x (servers) and
>    the other 192.x.x.x (workstations). There is also a NAT server. The
>    problem is that AFS does not
>    run with NAT.
>    
>    I would like to know how to run AFS without going through NAT or how
>    to remove the AFS IP from the NAT server.

You don't need NAT when talking from some machines in your company to
others; so just disable NAT for internal traffic.

You didn't say anything about what NAT hardware/software you were using.

I use 'ipfilter' under FreeBSD; this lets you say

map ep0 from 192.168.0.0/16 ! to 192.168.0.0/16 -> 0/32 proxy port ftp ftp/tcp
map ep0 from 192.168.0.0/16 ! to 192.168.0.0/16 -> 0/32 portmap tcp/udp auto
map ep0 from 192.168.0.0/16 ! to 192.168.0.0/16 -> 0/32

(i.e. traffic from 192.168.0.0/16 which is to all destinations OTHER than
192.168.0.0/16 is mapped, so internal traffic is not mapped).

With Linux ipfwadm, you used to be able to create rules like "forward from
192.168.0.0/16 to 192.168.0.0/16"; "forward from 192.168.0.0/16 to 0.0.0.0/0
with masquerading". The first rule takes precedence for internal traffic, so
packets are forwarded without masquerading.

It's been years since I used Linux so I can't give you anything more
specific. Ditto Cisco NAT etc.

Brian.
__________________________________________________
This is the Africa Network Operators' Group(AfNOG) 
technical discussion list.
The AfNOG website is: <http://www.afnog.org>