Now the fun stuff: ipchains -A input -i eth1 -p tcp ! -y -j ACCEPT # Allow TCP ACK packets back into my network. (Btw, change ppp0 to # eth0 or whatever). Since ipchains is stateless :( you need to have # this to allow TCP sessions coming back into your network ipchains -A input -i eth1 -p UDP --source-port 53 -j ACCEPT # Okay, since ipchains is statless, you need this. the SRC port is # 53, which would be the return port (I send DST=53, SRC=10001, # they send DST=10001, SRC=53) Basic IP communication right there :) ipchains -A input -i eth1 -p icmp --icmp-type echo-reply -j ACCEPT ipchains -A input -i eth1 -p icmp --icmp-type destination-unreachable \ -j ACCEPT ipchains -A input -i eth1 -p icmp --icmp-type time-exceeded -j ACCEPT ipchains -A input -i eth1 -p icmp --icmp-type parameter-problem \ -j ACCEPT ipchains -A input -i eth1 -p icmp --icmp-type source-quench -j ACCEPT ipchains -A input -i eth1 -p tcp -s 0.0.0.0 :80 -j ACCEPT #Just some basic ICMP. For PING, traceroute mainly. ipchains -A input -i eth1 -p tcp --destination-port 23 -j ACCEPT ipchains -A input -i eth1 -p tcp --destination-port 25 -j ACCEPT ipchains -A input -i eth1 -p tcp --destination-port 80 -j ACCEPT ipchains -A input -i eth1 -p tcp --destination-port 20 -j ACCEPT ipchains -A input -i eth1 -p tcp --destination-port 21 -j ACCEPT # And so on for any ports you want inbound. There is more you can do too, like NAT (Network Address Translation) using the IPMASQ functions. http://www.mlinux.org/phorum/read.php?f=1&i=522&t=522 Check out this link for the full thing that I had written some years ago. Thanks, Brian
Sun Cobalt and Linux Support by Zeffie.com
Zeffie's Sun Cobalt User Forums
A Sun Cobalt and Linux Support Specialist Since 1999
Sun Cobalt Support, Repairs, Development, and Maintenance.
Home of the Worlds Largest Collection of Sun Cobalt Updates!
Sun Cobalt Spam Filter, Security, Firewall, Anti Virus Products.
734-454-9117 US Toll Free 800-231-4459 UK 0208-150-6860
Zeffie's Sun Cobalt Restore CD's
Zeffie's Sun Cobalt Updates
Sun Cobalt Users List
Sun Cobalt Security List
Sun Cobalt Developers List
Copyright 2009 by Electronic Consultants Inc.