<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Bandwidth Shaping Using Squid Cache and WIPFW</title>
	<atom:link href="http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/feed/" rel="self" type="application/rss+xml" />
	<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/</link>
	<description>What's going on Internet?</description>
	<pubDate>Wed, 07 Jan 2009 19:42:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Markus</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-516</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Thu, 02 Oct 2008 07:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-516</guid>
		<description>Khaled, I was using Squid for Windows which doesn't support transparent proxy</description>
		<content:encoded><![CDATA[<p>Khaled, I was using Squid for Windows which doesn&#8217;t support transparent proxy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khaled</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-515</link>
		<dc:creator>Khaled</dc:creator>
		<pubDate>Thu, 02 Oct 2008 00:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-515</guid>
		<description>you're welcome!
try these directives on your squid:

#-------------------------
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
acl lan src 192.168.1.1 192.168.2.0/24
http_access allow localhost
http_access allow lan
#-------------------------

Where,

    * httpd_accel_host virtual: Squid as an httpd accelerator
    * httpd_accel_port 80: 80 is port you want to act as a proxy
    * httpd_accel_with_proxy on: Squid act as both a local httpd accelerator and as a proxy.
    * httpd_accel_uses_host_header on: Header is turned on which is the hostname from the URL.
    * acl lan src 192.168.1.1 192.168.2.0/24: Access control list, only allow LAN computers to use squid
    * http_access allow localhost: Squid access to LAN and localhost ACL only
    * http_access allow lan: -- same as above --


Eth0: IP:192.168.1.1
Eth1: IP: 192.168.2.1 (192.168.2.0/24)

Eth0 connected to internet and eth1 connected to local lan i.e. system act as router.

In addition to your WIPFW configuration.. this transparent config may help!</description>
		<content:encoded><![CDATA[<p>you&#8217;re welcome!<br />
try these directives on your squid:</p>
<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
httpd_accel_host virtual<br />
httpd_accel_port 80<br />
httpd_accel_with_proxy on<br />
httpd_accel_uses_host_header on<br />
acl lan src 192.168.1.1 192.168.2.0/24<br />
http_access allow localhost<br />
http_access allow lan<br />
#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Where,</p>
<p>    * httpd_accel_host virtual: Squid as an httpd accelerator<br />
    * httpd_accel_port 80: 80 is port you want to act as a proxy<br />
    * httpd_accel_with_proxy on: Squid act as both a local httpd accelerator and as a proxy.<br />
    * httpd_accel_uses_host_header on: Header is turned on which is the hostname from the URL.<br />
    * acl lan src 192.168.1.1 192.168.2.0/24: Access control list, only allow LAN computers to use squid<br />
    * http_access allow localhost: Squid access to LAN and localhost ACL only<br />
    * http_access allow lan: &#8212; same as above &#8211;</p>
<p>Eth0: IP:192.168.1.1<br />
Eth1: IP: 192.168.2.1 (192.168.2.0/24)</p>
<p>Eth0 connected to internet and eth1 connected to local lan i.e. system act as router.</p>
<p>In addition to your WIPFW configuration.. this transparent config may help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-514</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 01 Oct 2008 06:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-514</guid>
		<description>Hi Khaled, thank you for sharing</description>
		<content:encoded><![CDATA[<p>Hi Khaled, thank you for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khaled</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-511</link>
		<dc:creator>Khaled</dc:creator>
		<pubDate>Tue, 30 Sep 2008 23:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-511</guid>
		<description>Markus,
I got an idea for you.. may be a little cheaper than using a virtual server.

consider these:
computer#1 : SRVR
computer#2 : GW (your internet gateway)
and the rest of your LAN computers

Now here are the key steps to follow..

1- your LAN users must be obtaining their IP's through a DHCP server (google some free ones) and set it up on your SRVR.

2- Add another IP address for your Windows machine
http://www.itsyourip.com/networking/how-to-add-multiple-ip-address-in-windows-2000xp2003/
make sure that you separate the subnets (e.g. 192.168.1.0/24 and 10.0.0.0/8) so that your WHOLE LAN pc's are on one subnet, and your GW is on the other.
Say, 10.0.0.0 is for your GW and 192.168.1.0 is for other LAN computers.
hint: you can use this address 192.168.1.1 _WITH_ 10.0.0.2 as your SRVR address, and 10.0.0.1 as your GW address
(you need to access your GW to set it up with the new IP's) 
BUT BE CAREFUL... IT'S PREFERABLY NOT TO CHANGE THE GW IP, UNLESS YOU KNOW WHAT YOU'RE DOING !!

3- For the DHCP server settings on your SRVR, you'll only be concerned about these: (IP configuration given to clients)
IP range: 192.168.1.2 to 192.168.1.100 (gives you 99 hosts that can use your LAN)
gateway: your squid address 192.168.1.1 (that is SRVR) not your GW.

4- Turn off the DHCP server of your GW, so you can avoid race between two DHCPs.

5- Make sure your GW does not have any other IP's on the LAN.

6- Configure your squid for allowed_ports and our_networks -- Don't forget to add all used networks above (you're the man, thx for your other post of Squid config ;) )

By now, your SRVR can ping both: the GW and LAN computers...

Once the older DHCP leases expire (from the GW's DHCP), your Windows DHCP server will now start acting!
Hence, they'll be given your squid address as the gateway address.

If it doesn't work, maybe you need to add a DNS to the DHCP server configuration. -- I am not sure of that yet..
Please tell me if it works for you!

P.S.
This won't be really effective for some tough guy sniffing LAN traffic, he might bypass your squid by using static IP on the 10.0.0.0 network.
So you need to create firewall rules on your GW.. long story, I know !</description>
		<content:encoded><![CDATA[<p>Markus,<br />
I got an idea for you.. may be a little cheaper than using a virtual server.</p>
<p>consider these:<br />
computer#1 : SRVR<br />
computer#2 : GW (your internet gateway)<br />
and the rest of your LAN computers</p>
<p>Now here are the key steps to follow..</p>
<p>1- your LAN users must be obtaining their IP&#8217;s through a DHCP server (google some free ones) and set it up on your SRVR.</p>
<p>2- Add another IP address for your Windows machine<br />
<a href="http://www.itsyourip.com/networking/how-to-add-multiple-ip-address-in-windows-2000xp2003/" rel="nofollow">http://www.itsyourip.com/networking/how-to-add-multiple-ip-address-in-windows-2000xp2003/</a><br />
make sure that you separate the subnets (e.g. 192.168.1.0/24 and 10.0.0.0/8) so that your WHOLE LAN pc&#8217;s are on one subnet, and your GW is on the other.<br />
Say, 10.0.0.0 is for your GW and 192.168.1.0 is for other LAN computers.<br />
hint: you can use this address 192.168.1.1 _WITH_ 10.0.0.2 as your SRVR address, and 10.0.0.1 as your GW address<br />
(you need to access your GW to set it up with the new IP&#8217;s)<br />
BUT BE CAREFUL&#8230; IT&#8217;S PREFERABLY NOT TO CHANGE THE GW IP, UNLESS YOU KNOW WHAT YOU&#8217;RE DOING !!</p>
<p>3- For the DHCP server settings on your SRVR, you&#8217;ll only be concerned about these: (IP configuration given to clients)<br />
IP range: 192.168.1.2 to 192.168.1.100 (gives you 99 hosts that can use your LAN)<br />
gateway: your squid address 192.168.1.1 (that is SRVR) not your GW.</p>
<p>4- Turn off the DHCP server of your GW, so you can avoid race between two DHCPs.</p>
<p>5- Make sure your GW does not have any other IP&#8217;s on the LAN.</p>
<p>6- Configure your squid for allowed_ports and our_networks &#8212; Don&#8217;t forget to add all used networks above (you&#8217;re the man, thx for your other post of Squid config <img src='http://markus.revti.com/smilies/yahoo_wink.gif' alt='&#59;&#41;' class='wp-smiley' width='18' height='18' title='&#59;&#41;' /> )</p>
<p>By now, your SRVR can ping both: the GW and LAN computers&#8230;</p>
<p>Once the older DHCP leases expire (from the GW&#8217;s DHCP), your Windows DHCP server will now start acting!<br />
Hence, they&#8217;ll be given your squid address as the gateway address.</p>
<p>If it doesn&#8217;t work, maybe you need to add a DNS to the DHCP server configuration. &#8212; I am not sure of that yet..<br />
Please tell me if it works for you!</p>
<p>P.S.<br />
This won&#8217;t be really effective for some tough guy sniffing LAN traffic, he might bypass your squid by using static IP on the 10.0.0.0 network.<br />
So you need to create firewall rules on your GW.. long story, I know !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-415</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Fri, 28 Mar 2008 18:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-415</guid>
		<description>Hello Marpan..

thank you for your idea.. i didn't know that there is a free version of vmware server.</description>
		<content:encoded><![CDATA[<p>Hello Marpan..</p>
<p>thank you for your idea.. i didn&#8217;t know that there is a free version of vmware server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marpan</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-414</link>
		<dc:creator>marpan</dc:creator>
		<pubDate>Fri, 28 Mar 2008 12:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-414</guid>
		<description>Hello Markus,
I don't know if you could install a new pc as your gateway or if you have only windows you could use vmware server witch is free and install a linux distro called ClarkConnect. You will be amazed with what you could do with it. It has a very easy web configuration and it will solve any problems regarding firewalling your internet connection, blocking p2p traffic or traffic shaping per ip  and port, content filtering even mail-ftp-smb-vpn services with ldap backend. I think it has all the solutions for all the things you mentioned above and it will give you full control on your internet connection.
There is a free Community edition that does all the above. If you know a little bit of linux you 
can do a lot lot more!!!</description>
		<content:encoded><![CDATA[<p>Hello Markus,<br />
I don&#8217;t know if you could install a new pc as your gateway or if you have only windows you could use vmware server witch is free and install a linux distro called ClarkConnect. You will be amazed with what you could do with it. It has a very easy web configuration and it will solve any problems regarding firewalling your internet connection, blocking p2p traffic or traffic shaping per ip  and port, content filtering even mail-ftp-smb-vpn services with ldap backend. I think it has all the solutions for all the things you mentioned above and it will give you full control on your internet connection.<br />
There is a free Community edition that does all the above. If you know a little bit of linux you<br />
can do a lot lot more!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-300</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Fri, 05 Oct 2007 11:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-300</guid>
		<description>WIPFW is a port of FreeBSD's IPFW, so you can read the manual of IPFW here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html</description>
		<content:encoded><![CDATA[<p>WIPFW is a port of FreeBSD&#8217;s IPFW, so you can read the manual of IPFW here: <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html" rel="nofollow">http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stabul</title>
		<link>http://markus.revti.com/2007/06/bandwidth-shaping-using-squid-cache-and-wipfw/comment-page-1/#comment-299</link>
		<dc:creator>stabul</dc:creator>
		<pubDate>Fri, 05 Oct 2007 09:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://markus.revti.com/index.php/2007/06/10/bandwidth-shaping-using-squid-cache-and-wipfw/#comment-299</guid>
		<description>Hi Markus.
I'd like to make a trivial port forwarding (i.e. @IP_1:port_1 to @IP_2:port_2) with WIPFW command line, on Windows XP. I suppose we can do that using the "fwd" action, as you mentioned in your article, do we can ?
Problem : I don't find any WIPFW official documentation concerning the "fwd" action. Could you please tell me more ?
Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Markus.<br />
I&#8217;d like to make a trivial port forwarding (i.e. @IP_1<img src='http://markus.revti.com/smilies/yahoo_tongue.gif' alt='&#58;&#112;' class='wp-smiley' width='18' height='18' title='&#58;&#112;' />ort_1 to @IP_2<img src='http://markus.revti.com/smilies/yahoo_tongue.gif' alt='&#58;&#112;' class='wp-smiley' width='18' height='18' title='&#58;&#112;' />ort_2) with WIPFW command line, on Windows XP. I suppose we can do that using the &#8220;fwd&#8221; action, as you mentioned in your article, do we can ?<br />
Problem : I don&#8217;t find any WIPFW official documentation concerning the &#8220;fwd&#8221; action. Could you please tell me more ?<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
