ipfwadm: setsockopt failed: protocol not available
This is the error message I get when I run my rc.firewall
I know it's something stupid I just can't quite see it (too much coffee i
guess ;)
anyhow attached to this file is my rc.firewall file,
I was hoping that someone might be able to point out my stupidity.
Currently this is on a Linux 2.0.29 Slackware distribution and squid
1.2.22 and I'm attempting to have it proxy transparently (uh oh;)
Chuck Pitre 128 Larch Street, Suite 301
Technical Consultant P3E 5J8 Sudbury Ontario
ViaNet Internet Solutions tel: 705-675-0400
*The box said "Windows 95, Windows NT4.0 or better".. so I installed Linux*
#!/bin/sh
# rc.firewall Linux firewalling rules
FW=/sbin/ipfwadm
# FLush rules, for testing purposes
for i in I O F
do
${FW} -$i -f
done
# Default policies:
${FW} -I -p rej # Incoming policy: reject (quick error)
${FW} -O -p acc # Output policy: accept
${FW} -F -p den # Forwarding policy: deny
# Input Rules:
# Loopback Interface:
${FW} -I -a acc -S 127.0.0.1/32 -D 127.0.0.1/32
# Local Ehternet-interface:
# Redirect to Squid proxy server
${FW} -I -a acc -P tcp -D 209.91.128.21/0 80 -r 80
# Accept packets from local network:
${FW} -I -a acc -P all -S 209.91.0.0/16 -D 209.91.128.21/0 -W eth0
# Only required for toher types of traffic (FTP, TELNET):
# Forward localnet with masquerading (udp and tcp, no icmp!):
${FW} -F -a m -P tcp -S 209.91.0.0/16 -D 209.91.128.21/0
${FW} -F -a m -P udp -S 209.91.0.0/16 -D 209.91.128.21/0
Received on Thu Jul 16 1998 - 15:22:30 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:41:08 MST