No one seems to around, so I'll chirp in. For default ports, you simply refer to the macros supplied with Shorewall. In the example (
http://flurdy.com/docs/postfix/#config-simple-firewall, below Open for Business):
Code:
vi /etc/shorewall/rules
# Permit all ICMP traffic FROM the firewall TO the net zone
ACCEPT $FW net icmp
# mail lines
SMTP/ACCEPT net $FW
SMTPS/ACCEPT net
Submission/ACCEPT net $FW
IMAP/ACCEPT net $FW
IMAPS/ACCEPT net $FW
#web
Web/ACCEPT net $FW
The line containing
SMTP/ACCEPT net $FW will allow traffic on port 25 from the zone 'net', according to the macro defined in /usr/share/shorewall/macro.SMTP. To specify port 2525 manually, use a line such as
Code:
#Accept from anyone on the net
ACCEPT net $FW tcp 2525
# Or accept from IP 1.2.3.4
ACCEPT net:1.2.3.4 $FW tcp 2525