Re: IPFW: Blocking me out. How to debug?
- From: Tuomo Latto <djv@xxxxxx>
- Date: Mon, 17 Dec 2007 11:49:21 +0200
W. D. wrote:
How do I tell which rule is blocking me out? SSH *is* working,
but others are not.
It all depends on what you mean by "blocking you out" and "others".
Did you try *reading* your fw config?
# Loopback:Nope.
# Allow anything on the local loopback:
add allow all from any to any via lo0
add deny ip from any to 127.0.0.0/8
add deny ip from 127.0.0.0/8 to any
# Allow established connections:Nope.
add allow tcp from any to any established
# Deny fragmented packets:Nope.
add deny ip from any to any frag
# Show pings:Nope.
add count icmp from any to any icmptypes 8 in
# Allow pings, ping replies, and host unreach:Nope.
add allow icmp from any to any icmptypes 0,8,3
# Allow UDP traceroutes:Nope.
add allow udp from any to any 33434-34458 in
add allow udp from any 33434-34458 to any out
# Allow DNS with name serverNope.
add allow udp from any to any domain out
add allow udp from any domain to any in
# SSHNope, but this explains SSH working.
# Note that /etc/hosts.allow has restrictions
# on which IP addresses are allowed.
#
# Allow SSH:
add allow tcp from any to any ssh in setup
# HTTP & HTTPS:Nope.
add allow tcp from any to any https in setup
add allow tcp from any to any http in setup
# Mail: SMTP & IMAP:Nope.
add allow tcp from any to any smtp in setup
add allow tcp from any to any imap in setup
# FTP:Nope.
add allow tcp from any to any ftp in setup
add allow tcp from any to any ftp\-data in setup
add allow tcp from any ftp\-data to any setup out
# Allow NTP in and outNope.
add allow udp from any ntp to 128.252.19.1 ntp out
add allow udp from 128.252.19.1 ntp to any ntp in
# Deny and log everything else:Bingo!
add deny log all from any to any
"ipfw -a list" may also help (packet counts).
In the kernel config file, is a limit of 10 too small?
You tell us.
http://www.defcon1.org/html/NATD-config/firewall-setup/ipfw-2.html
--
Tuomo
... She's dead, Jim. Should we bury her or have some fun?
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: IPFW: Blocking me out. How to debug?
- From: W. D.
- Re: IPFW: Blocking me out. How to debug?
- References:
- IPFW compiled in kernel: Where is it reading the config?
- From: W. D.
- Re: IPFW compiled in kernel: Where is it reading the config?
- From: Gary Palmer
- Re: IPFW compiled in kernel: Where is it reading the config?
- From: W. D.
- IPFW: Blocking me out. How to debug?
- From: W. D.
- IPFW compiled in kernel: Where is it reading the config?
- Prev by Date: IPFW: Blocking me out. How to debug?
- Next by Date: Portaudit database truncated?
- Previous by thread: IPFW: Blocking me out. How to debug?
- Next by thread: Re: IPFW: Blocking me out. How to debug?
- Index(es):
Relevant Pages
|
|