Proxy設定:Squidを使って別のゲートウェイにルーティングする
#ifconfig
ppp1 Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xxx P-t-P:yyy.yyy.yyy.yyy Mask:255.255.255.255
/etc/iproute2/rt_tablesにT1テーブル追加
# local
#
#1 inr.ruhep
200 T1
T1テーブルにルートを追加
ip rule add from xxx.xxx.xxx.0/24 table T1
ip route add default via xxx.xxx.xxx.xxx table T1
Squidが使用するインターフェースを指定
/etc/squid/squid.conf
tcp_outgoing_address xxx.xxx.xxx.xxx localhost
(以下はルーティングとは関係ないがホスト名を匿名化する為に追加:http://www.webhostingtalk.com/showthread.php?t=863179)
header_access Proxy-Connection deny all
header_access X-Forwarded-For deny all
header_access Connection deny all
header_access Via deny all
header_access Cache-Control deny all
header_access Keep-Alive deny all