I'm using RedHat 6.0 with kernel 2.2.10 and two 3Com 3C905
NICs. I am using dhcpd on eth1 to feed 172.16.1.x IP #s to dhcp
clients on the lan. I am also using squid on the eth0 interface
(204.48.173.252) to cache httpd for the lan and would like to allow
the eth1 (172.16.1.x) users similar access to squid. The following simple script
allows masquerading thru the linux cpu for the 172.16.1.x users:
========== start script ==================
#!/bin/sh
ifconfig eth1 172.16.1.1 netmask 255.255.0.0 broadcast
172.16.255.255 up
/sbin/modprobe ip_masq_ftp
ipchains -F
ipchains -A forward -s 172.16.0.0/255.255.0.0 -d 0.0.0.0/0.0.0.0 -j
MASQ
### Set IP forwarding on
echo "1" > /proc/sys/net/ipv4/ip_forward
============ end script ====================
Finally, the QUESTION: Is it possible to have the 172.16.1.x users
make use of the squid proxy on eth0 (204.48.173.252)?? If so
would someone please suggest the ipchains commands that would
allow such use/access. Thanks in advance, Ashe Coutts
"I was gratified to be able to answer promptly,
and I did. I said I didn't know." - Mark Twain
Ashe Coutts (ashe@sbceo.k12.ca.us)
805.963-4338 Ext 300
Fax 805.884.1557
Received on Thu Jul 15 1999 - 11:53:30 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:25 MST