I have RH6.2 with 2.2.18 kernel compiled with all IPMASQ and PORTFW modules.
My firewall and IP MASQ capability works without any problems.
The following confirms the correct installation of the above modules:
# ls /proc/net/ip_masq
app autofw icmp portfw tcp udp
I want to port forward port 25 (SMTP) on my firewall to an internal machine
running, my mail server.
I do this my issuing the following command:
ipmasqadm portfw -a -P tcp -L <my.ext.addr> 25 -R 10.1.23.15 25
ipmasqadm portfw -a -P udp -L <my.ext.addr> 25 -R 10.1.23.15 25
doing a ipmasqadm portfw -l confirms the port forward rules being entered...
However when I try to telnet <my.ext.addr> 25 all I get is:
Trying <my.ext.addr>...
telnet: Unable to connect to remote host: Connection refused
I have port 25 open on my firewall, and I also tried port forwarding off the
internal address of the firewall (10.1.23.5). All with the same results...
Telnetting into 10.1.23.15 25 responds with my ESMTP banner.
Any ideas/solutions would be appreciated.
Thanks.