Hi, this is one of my favourite sites for fw proxy servers. This is where I got the info for my setup...
http://www.linuxhomenetworking.com/
Ch32, squid.
http://www.linuxhomenetworking.com/w...ess_with_Squid
Ch14, iptables.
http://www.linuxhomenetworking.com/w...Using_iptables
Quote:
#---------------------------------------------------------------
# Allow port 80 (www) and 443 (https) connections from the firewall
#---------------------------------------------------------------
iptables -A OUTPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \
-m multiport --dports 80,443 --sport 1024:65535
#---------------------------------------------------------------
# Allow previously established connections
# - Interface eth0 is the internet interface
#---------------------------------------------------------------
iptables -A INPUT -j ACCEPT -m state --state ESTABLISHED,RELATED \
-i eth0 -p tcp
|
My main machine is off-line right now, so I have no examples to give you,
Hope this helps you though, Glenn