routing

Nicolas de Bari Embriz Garcia Rojas nbari at k9.cx
Tue Apr 22 19:46:16 UTC 2008


I have a ipsec/vpn on FreeBSD 6.3 from one master server to another  
server the one has multiple jails. each jail has is own public IP and  
i need to do something like this:

vpn point >----------------------< master server with jails <------->  
jail (75.76.78.80)
64.68.69.79/10.10.10.1         75.76.78.79/10.10.10.2

when doing a telnet to 10.10.10.2 80  from 10.10.10.1 I want that the  
jail with ip 75.76.78.80 to respond, and also from jail 75.76.78.80  
been available to telnet the other vpn point 10.10.10.1.

I am trying to route trafic using PF but is not working for  the tunel  
only for the non encrypted trafic, example:
rdr on em1 proto tcp from any to any port 80 -> 75.76.78.80

but if i use the gif0 interface (the one for the tunnel) insted of em1  
does not work.

Any ideas ?

--
 > nbari







More information about the freebsd-jail mailing list