I' all,
please help me 'cause i'm going grazy with that supid built in mac os x firewall (ipfw).
Now, my mac is connected to the internet via a DSL line.
This machine works as a router (with geeRoute) and this service appear to give me no problems,
then, there is the ftpd, and sshd daemon active.
Due to the fact that this mac is a router i 'd like to set up the firewall in this way.
ALLOW any connection from MY ROUTER TO THE INTERNET
DENY any coonection from THE INTERNET TO MY ROUTER
ALLOW ftp connection from THE INTERNET TO MY ROUTER
ALLOW ssh coonection from THE INTERNET to MY ROUTER
DENY afpovertcp coonection from THE INTERNET TO MY ROUTER
(this last rule because i access the ftp accounts via Apple Talk and NONE out of the lan must use this protocol to connect to my machine)
I've tryed to do this using BrickHouse ... but it doesn't work (the 548 - afpovertcp - port remain opened and accept connection from the internet)
here is reported the script made up by Brickhouse (it leave the 548 port open... very strange!!!)
Now, PLEASE, is there any one can help me do this by posting the step by step instruction to do this via terminal ???
THANKS, THANKS, IN ADVANCE A MILLION !!!
please help me 'cause i'm going grazy with that supid built in mac os x firewall (ipfw).
Now, my mac is connected to the internet via a DSL line.
This machine works as a router (with geeRoute) and this service appear to give me no problems,
then, there is the ftpd, and sshd daemon active.
Due to the fact that this mac is a router i 'd like to set up the firewall in this way.
ALLOW any connection from MY ROUTER TO THE INTERNET
DENY any coonection from THE INTERNET TO MY ROUTER
ALLOW ftp connection from THE INTERNET TO MY ROUTER
ALLOW ssh coonection from THE INTERNET to MY ROUTER
DENY afpovertcp coonection from THE INTERNET TO MY ROUTER
(this last rule because i access the ftp accounts via Apple Talk and NONE out of the lan must use this protocol to connect to my machine)
I've tryed to do this using BrickHouse ... but it doesn't work (the 548 - afpovertcp - port remain opened and accept connection from the internet)
here is reported the script made up by Brickhouse (it leave the 548 port open... very strange!!!)
#################################################
# Allow Loopback
#################################################
add 1000 allow ip from any to any via lo0
#################################################
# Allow packets from existing connections
#################################################
add 1002 allow tcp from any to any established
add 1003 allow all from any to any frag
#################################################
# Allow Essential ICMP Traffic
#################################################
add 1004 allow icmp from any to any icmptype 3,4,11,12
#################################################
## Rules for the ppp0 interface
#################################################
#################################################
## Allow DHCP/BOOTP
#################################################
add 3000 allow udp from any 67-68 to any 67-68 via ppp0
#################################################
## Allow Broadcast (for DHCP, etc)
#################################################
add 3001 allow ip from any to 255.255.255.255 via ppp0
#################################################
## Deny Source Routed Packets
#################################################
add 3002 unreach host log ip from any to any ipopt ssrr,lsrr via ppp0
#################################################
## Allow Network Time (NTP)
#################################################
add 3003 allow udp from any 123 to any 1024-65535 via ppp0
#################################################
## Allow All ICMP Packets
#################################################
add 3004 allow icmp from any to any via ppp0
#################################################
## Allow FTP-Data port
#################################################
add 3005 allow tcp from any 20-21 to any 1024-65535 in via ppp0
#################################################
## Allow DNS
#################################################
add 3006 allow udp from any 1024-65535 to any 53 out via ppp0
add 3007 allow udp from any 53 to any 1024-65535 in via ppp0
#################################################
## * * * User Filter Policies * * *
#################################################
#################################################
## File Transfer (FTP)
#################################################
add 3008 allow tcp from any to any 20-21 in via ppp0
add 3008 allow tcp from any 20-21 to any out via ppp0
#################################################
## Remote Login (SSH)
#################################################
add 3009 allow tcp from any to any 22 in via ppp0
add 3009 allow tcp from any 22 to any out via ppp0
#################################################
## AppleShare IP/iDisk
#################################################
add 3010 deny log tcp from any to any 548 in via ppp0
#################################################
## * * * Default Filter Policies * * *
#################################################
#################################################
## Allow All Outgoing Services
#################################################
add 53011 allow all from any to any out via ppp0
#################################################
## Deny All Incoming Services
#################################################
add 53012 deny log all from any to any in via ppp0
Now, PLEASE, is there any one can help me do this by posting the step by step instruction to do this via terminal ???
THANKS, THANKS, IN ADVANCE A MILLION !!!