I just setup the Shorewall in my school, but now all clients can't through to internet, all servers can through to internet with NAT, when I disabled NAT that all servers can't through to internet.
Below is my school network:
internet ---> shorewall ----> loc ---> ciso router ---> loc1
Below is my config files:
policy:
# If you want to force clients to access the Internet via a proxy server
# on your firewall, change the loc to net policy to REJECT info.
loc net ACCEPT
loc $FW DROP info
loc all DROP info
#
# Policies for traffic originating from the firewall ($FW)
#
# If you want open access to the Internet from your firewall, change the
# $FW to net policy to ACCEPT and remove the 'info' LOG LEVEL.
# This may be useful if you run a proxy server on the
firewall.
$FW net DROP info
$FW loc DROP info
$FW all DROP info
#
# Policies for traffic originating from the Internet zone (net)
#
net $FW DROP info
net loc DROP info
net all DROP info
# THE FOLLOWING POLICY MUST BE LAST
all all DROP info
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
zones:
#ZONE TYPE OPTIONS IN OUT
# OPTIONS OPTIONS
fw firewall
net ipv4
loc1 ipv4
loc ipv4
vpn ipv4
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE
rules:
####################################################################
# Accept connections from internet to the local network #
####################################################################
HTTP/ACCEPT net loc:192.168.0.8
HTTP/ACCEPT net loc:192.168.0.102
HTTP/ACCEPT net loc:192.168.0.104
HTTP/ACCEPT net loc:192.168.0.105
HTTP/ACCEPT net loc:192.168.0.106
#HTTP/ACCEPT net loc:192.168.0.108
#SSL/ACCEPT net loc:192.168.0.108
FTP/ACCEPT net loc:192.168.0.3
FTP/ACCEPT net loc:192.168.0.8
FTP/ACCEPT net
loc:192.168.0.105
FTP/ACCEPT net loc:192.168.0.106
DNAT net loc:192.168.0.109 tcp 25 - 210.0.214.132
abc/ACCEPT net loc:192.168.0.83
VNC/ACCEPT net loc:192.168.0.105
SSH/ACCEPT
net:210.3.33.242-210.3.33.254 loc:192.168.0.102
#############################################################
# Allow connection from local network to firewall #
#############################################################
SSH/ACCEPT loc $FW
Ping/ACCEPT loc $FW
#############################################################################
# Allow connection from firewall to the internet and local network #
#############################################################################
Ping/ACCEPT $FW
loc
Ping/ACCEPT $FW net
#DNS/ACCEPT $FW net
#########################################################################
# Reject Ping from the internet and prevent your log from being flooded.#
#########################################################################
Ping/DROP net $FW
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
hosts:
#ZONE HOST(S) OPTIONS
loc1 eth0:10.0.15.0/24
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS LINE -- DO NOT REMOVE
interface:
#ZONE INTERFACE BROADCAST OPTIONS
net eth1 detect tcpflags,routefilter,nosmurfs,norfc1918
loc eth0 detect tcpflags,detectnets,nosmurfs
vpn tun0
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
masq:
#ZONE INTERFACE BROADCAST OPTIONS
net eth1 detect tcpflags,routefilter,nosmurfs,norfc1918
loc eth0
detect tcpflags,detectnets,nosmurfs
vpn tun0
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
nat:
#EXTERNAL INTERFACE INTERNAL ALL LOCAL
# INTERFACES
210.0.214.130 eth1:1 192.168.0.2
210.0.214.131 eth1:2 192.168.0.83
210.0.214.132 eth1:3 192.168.0.104
210.0.214.133 eth1:4 192.168.0.105
210.0.214.134 eth1:5 192.168.0.106
210.0.214.135 eth1:6 192.168.0.102
210.0.214.136
eth1:7 192.168.0.3
210.0.214.137 eth1:8 192.168.0.8
210.0.214.138 eth1:9 192.168.0.108
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
_______________________________________
YM - 離線訊息
就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
http://messenger.yahoo.com.hk