Re: ipfw and mail

From: Bob Martin (bob_at_buckhorn.net)
Date: 06/25/04

  • Next message: Len Conrad: "Re: ipfw and mail"
    Date: Fri, 25 Jun 2004 16:38:21 -0500
    To: "Gustavo A. Baratto" <gbaratto@superb.net>
    
    

    We don't redirect the mail. We just have the mail server listen on both
    ports. Much easier that way.

    Bob Martin

    Gustavo A. Baratto wrote:

    >Hello guys,
    >
    >some of our users' ISPs don't allow them to use port 25, so they cannot use out mail server.
    >
    >I want to open a new port (2525) and forward all packets from 2525 to 25 so, they can use mail.
    >
    >I tried this in IPFW:
    >0100 119649 44772439 allow tcp from any to me dst-port 25 keep-state
    >0200 0 0 divert 25 ip from any to me dst-port 2525 keep-state
    >0300 103075 35531648 allow ip from me to any keep-state
    >0400 60 4530 deny log ip from any to any
    >
    >
    >If I telnet directly to port 25, I can get the prompt, but if I telnet to port 2525, I get a connection refused.
    >
    >What should I do in ipfw to forward port 2525 to port 25 tranparently?
    >
    >Thanks
    >_______________________________________________
    >freebsd-isp@freebsd.org mailing list
    >http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    >To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    >
    >
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Len Conrad: "Re: ipfw and mail"

    Relevant Pages

    • Re: IPTables F*&%-up part 2
      ... > # move forwarding to top and comment out the disable line ... > iptables -X ... > # wants you to place the openings for ports ... # pop3 server--are you running a mail server for everyone? ...
      (comp.os.linux.security)
    • Re: Win XP
      ... replaced the mail server IP with "." ... so I had ports 25 and 110 mapped. ... #Software: Microsoft Internet Connection Firewall ... date time action protocol src-ip dst-ip src-port dst-port size ...
      (microsoft.public.security)
    • Amazin Amavis!
      ... in a "dual Sendmail" setup, ... mail server I broke something about Sendmail ... It worked beautifully in a test environment, ... PS> build from ports, and read up in: ...
      (freebsd-newbies)
    • Unable to connect to SMTP over internet
      ... to forward request via these ports to my Exchange server. ... POP3 clients are able to connect from the internet and get ... the mail server cannot be contacted on port 25. ... users from within my network are able to send emails using ...
      (microsoft.public.exchange2000.admin)
    • Re: pix firewall and mail server
      ... Do you have a static mapping for that device and does your Access-list ... DNS should not stop you from receiving the mails. ... >and only the mail server take a real ip(the traffic came to real and the ... >so i opened the 25 tcp port and close any comming other ports ...
      (Security-Basics)