Gateway problem

Stefan Bethke stb at lassitu.de
Wed Oct 25 23:46:45 UTC 2006


Am 20.10.2006 um 20:42 schrieb Brian Hawk:

> tun0 and ADSL is the default gateway. But the TCP packets are bound  
> to 212.64.212.180 IP address which should send them out thru xl1.  
> But it doesn't.

That is correct.  The routing table will only consider the  
destination address when deciding which route (and thereby which  
interface) a packet should traverse.

You will need to use IPFW, pf, or similiar to force packets  
originating on your xl0's address (212.64.212.180) to go to the  
router on that network instead of to the default routes gateway/ 
interface.


Stefan

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 170 346 0140




More information about the freebsd-net mailing list