[squid-users] 2 network interfases

From: Oscar Valdez <oscar@dont-contact.us>
Date: Tue, 20 Mar 2001 19:01:54 -0500

how i configure ipnat to redirect 2 network interfases to my squid.

example:

        NETWORK 0.0.0.0/0 NETWORK 30.0.0.0/16
                        | |
                     ROUTER1 10.0.0.1 ROUTER2 20.0.0.1
                                | |
                                SQUID ---------------
                    hme0 10.0.0.2 hme1 20.0.0.2

/usr/sbin/route -n add net 30.0.0.0/16 20.0.0.1 1
/usr/sbin/route -n add net default 10.0.0.1 1

when i made that dont work for web pages in the network 30.0.0.0/16
the ipnat.conf :
rdr hme0 10.0.0.2/32 port 80 -> 10.0.0.2 port 8081 tcp
rdr hme0 0.0.0.0/0 port 80 -> 10.0.0.2 port 3128 tcp

p.d. the ips are ficticious

--
Oscar
   
Received on Tue Mar 20 2001 - 17:01:29 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:45 MST