Hi, i have a problem, i want to block all ports but allow port 25. I trying some rules but not working it. Please, can you help me?
Here is my try:
my solutions block all connections and port 25 still closed.
Thanks and sorry for my bad eng.
Here is my try:
Code:
#!/bin/sh
ipfw -q -f flush
cmd="ipfw add"
$cmd 00010 check-state
$cmd 00020 deny ip from any to any
#SSH
$cmd 11020 allow tcp from any to any dst-port 25 setup keep-state
Thanks and sorry for my bad eng.