Welcome!
First, sorry for my bad English.
Second,
My box has two connections to the Internet [tun0=192.168.1.100, re0=10.0.0.11] and one LAN [rl1 172.21.0.1, 172.21.0.0/16] connection.
I manage to setup two routing tables with default gateways.
I am using pf, and everything works like charm on first route table. When i switch LAN to go by re0
it works,
but if i add
squid is using first route table.
I was trying with tcp_outgoing_address 10.0.0.1 LAN, but this doesn't work, even on first route.
Is this problem of squid, or my rules sucks?
First, sorry for my bad English.
Second,
My box has two connections to the Internet [tun0=192.168.1.100, re0=10.0.0.11] and one LAN [rl1 172.21.0.1, 172.21.0.0/16] connection.
I manage to setup two routing tables with default gateways.
Code:
/usr/sbin/setfib 0 route delete default
/usr/sbin/setfib 0 route add default 192.168.20.1
/usr/sbin/setfib 1 route delete default
/usr/sbin/setfib 1 route add default 10.0.0.1
I am using pf, and everything works like charm on first route table. When i switch LAN to go by re0
Code:
pass in log (all) from $lan to any rtable 1
but if i add
Code:
rdr on $int_if proto tcp from $lan to any port www -> $gw port 3128
squid is using first route table.
I was trying with tcp_outgoing_address 10.0.0.1 LAN, but this doesn't work, even on first route.
Is this problem of squid, or my rules sucks?