IPTABLES mail forwarding ?

From: TCF Cranendonk (t.cranendonk@home.net)
Date: 03/14/02

  • Next message: Tony: "Re: connection lost when scanned with nmap - iptables"

    Date: Thu, 14 Mar 2002 17:34:37 +0100
    From: TCF Cranendonk <t.cranendonk@home.net>
    
    

    Hi,

    I have a firewal running on my fixed ip address and closed most ports.
    everything works fine. However I want to forward smtp to another
    server on the local net 192....

    I have added the following:

    iptables -t nat -A PREROUTING -p tcp --dport 25 -i $ext_if -j DNAT
    --to-destination 192.xxx.xxx.xxx

    It doesn't work though, because when I telnet to port 25 I reach the
    gateway and not the server.
    I also need some help with input and output rules for smtp.

    Thanks is advance

    Theodor.

    ps.
    I am running SUSE 7.3



    Relevant Pages

    • RE: SMTP setup for connecting through Firewall
      ... sounds as if they are some type of SMTP client, ... 278339 TCP/UDP ports used by Exchange 2000 Server ...
      (microsoft.public.exchange2000.protocols)
    • Re: opening firewall ports on multiple IP mail server
      ... If we are still talking about mail server and not firewall then ... instead of using SMTP service this time you need to edit and ... It will open up the appropriate TCP ports. ... > listen for SMTP ...
      (microsoft.public.windows.server.networking)
    • Re: TCP/IP filter & SMTP
      ... Also, if you are using MS SMTP server or Exchange server, you'll need to ... and I can't find any other ports that SMTP might use. ... > If I enable all UDP ports, ...
      (microsoft.public.inetserver.iis.security)
    • Re: opening firewall ports on multiple IP mail server
      ... the firewall ports for each of those addresses, ... >Hi Dana, ... Even with one IP you can receive SMTP traffic ... >> We have a Server 2003 machine that has multiple IP ...
      (microsoft.public.windows.server.networking)
    • Re: Whats a decent modem/router for tech savy user?
      ... It is not possible to route or deny traffic to specific ports based on the source IP address. ... But it wont route back inside the LAN - needs internal DNS server spoofing. ... Normally, this option should be Enabled, so that an Internet connection will be made automatically, whenever Internet-bound traffic is detected. ... Specifying a Default DMZ Server allows you to set up a computer or server that is available to anyone on the Internet for services that you haven't defined. ...
      (uk.telecom.broadband)