Hello all :) I've been trying to use ipilter to do source routing since I have 2 Internet connections, but no BGP nor other routing protocol available. So far, no success... I read the docs and it looks like it is easy to setup, so I really don't understand what I'm doing wrong.
My setup is: FreeBSD-5.2-RELEASE 1 ppp internet connexion - dynamic IP 1 pppoe internet connexion - dynamic IP I would like the LAN to access the internet (with NAT) using tun0 (the pppoe connection) except for one box that would access the internet using tun1 (the ppp connection). Here is my non-working setup (note that it is NOT at all secure for now, this is just for testing): note: xxx.xxx.xxx.xxx is my ppp IP address (it is dynamic) # ipf.rules pass out quick on tun0 to tun1:xxx.xxx.xxx.xxx from 192.168.0.120 to any pass in quick all keep state pass out quick all keep state # ipnat.rules map tun1 192.168.0.120/24 -> 0/32 map tun0 192.168.0.0/24 -> 0/32 proxy port ftp ftp/tcp map tun0 192.168.0.0/24 -> 0/32 portmap tcp/udp 40000:60000 map tun0 192.168.0.0/24 -> 0/32
