I have been trying to find a way to work around this issue with no luck and decided to ask the experts .
i have a FreeBSD box acting as a gateway for an office .
i use ipnat and squid to redirect all traffic thriugh a proxy .
however i need to allow direct access to 2 subnets , and i cannot figure out how to make ipnat redirect all traffic BUT those 2 subnets .
i tried using ! to and map with no luck .
any ideas ?
my current rules are below :
#xl0 - internal nic #xl1 - external nic
rdr xl0 0/0 port 80 -> 127.0.0.1 port 8080 rdr xl0 0/0 port 443 -> 127.0.0.1 port 8080 map xl1 192.168.0.0/24 -> X.X.X.X/32 proxy port ftp ftp/tcp map xl1 192.168.0.0/24 -> X.X.X.X/32 portmap tcp/udp 40000:60000 map xl1 192.168.0.0/24 -> X.X.X.X/32
thanks , Moti
