Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2003 03:00:48 +0100
From:      Nils Vogels <nivo+sender+8eb026@yuckfou.org>
To:        freebsd-net@freebsd.org
Subject:   Re: Reverse IP NAT to secondary IP address
Message-ID:  <3F9B2AD0.3050005@yuckfou.org>
In-Reply-To: <1067128348.400238.16844.nullmailer@cicuta.babolo.ru>
References:  <1067128348.400238.16844.nullmailer@cicuta.babolo.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
"."@babolo.ru wrote:

>>WWW is a FreeBSD-4.8 box.
>>Gateway is a FreeBSD-4.8 box with IP Filter
>>Since the SNMP-server does not have a default route, the traffic needs 
>>to originate from an IP address within the same subnet as the Gateway.
>>To that end, I have added an alias IP of 192.168.2.1 to the gateway. 
>>When I run an snmpwalk from the gateway all goes fine.
>>
>>Since the traffic is coming from WWW and heading through the Gateway, 
>>which does not bridge, I have to perform some form of NATting in the 
>>gateway.
>>
>>    
>>
>configure port with SNMP-server as 192.168.0.17/30 for example
>instead 192.168.2.1/24, and
>sysctl net.link.ether.inet.proxyall=1
>
>and configure SNMP-server as 192.168.0.18/24
>
>If you can change mask of SNMP-server, you can
>use 192.168.0/24 and 192.168.1/24 on gateway
>and 192.168.0/25 on  SNMP-server.
>  
>
Since I have the internet on the same interface, but on the primary IP 
instead, would enabling ARP PROXY not fill the ARP table with every host 
on the internet, that tries to contact the gateway ?

Greetings,

Nils.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F9B2AD0.3050005>