Hello!
Can anyone please explain to me what I'm doing wrong?
I needed to set up a content control and banner removal pack, and I ended up with Squid+SquidGuard, everything was fine at that moment. Then I noticed that if users change their browser to "No Proxy", they'll be able to bypass and browse whatever they want.
The solution appeared: setup IPFW to forward all WWW traffic to Squid using the 'fwd' option, which needed to compile and install a custom kernel. After installing the new kernel the internal LAN lost ability to pass to the default gateway.
New kernel options:
/etc/rc.conf:
/etc/ipfw.conf is empty for now. The LAN PC can ping both em1 and em0, but cannot reach default_gateway (Request timed out.). The server can ping anything successfully.
at the end of the list.
Any suggestions would be greatly appreciated. Thanks in advance.
Can anyone please explain to me what I'm doing wrong?
I needed to set up a content control and banner removal pack, and I ended up with Squid+SquidGuard, everything was fine at that moment. Then I noticed that if users change their browser to "No Proxy", they'll be able to bypass and browse whatever they want.
The solution appeared: setup IPFW to forward all WWW traffic to Squid using the 'fwd' option, which needed to compile and install a custom kernel. After installing the new kernel the internal LAN lost ability to pass to the default gateway.
Code:
[LAN PC]---------[em1_____SERVER_____em0]---------------[default_router]
192.168.2.3/24 192.168.2.1/24 192.168.1.198/24 192.168.1.1/24
New kernel options:
Code:
include GENERIC
ident MYKERNEL1
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_FORWARD
options IPFIREWALL_VERBOSE_LIMIT=5
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT
/etc/rc.conf:
Code:
ifconfig_em0="inet 192.168.1.198 netmask 255.255.255.0"
ifconfig_em1="inet 192.168.2.1 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
sshd_enable="YES"
gateway_enable="YES"
firewall_enable="YES"
firewall_type="/etc/ipfw.conf"
firewall_nat_enable="YES"
firewall_nat_interface="em0"
natd_enable="YES"
natd_interface="em0"
natd_flags="-dynamic -m"
squid_enable="YES"
# ipfw -f flush
doesn't change anything, and has
Code:
65535 allow ip from any to any
Any suggestions would be greatly appreciated. Thanks in advance.