Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Forward to External Address

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      webstar
      last edited by

      Hi, I am running Pfsense on a VPS and I am trying to set it up to relay incoming mail to my smtp server.

      Incoming connections to VPS on Port 25  -across internet–-> Home Pfsense on port 12345 to smtp server behind pfsense on port 25.

      The issues I am having is getting the Pfsense on the VPS to forward the smtp traffic to my home pfsense box over the internet.  I would rather not get into the whole VPN tunnel stuff but if there is no other way.

      Right now I am just using socat to forward all port 25 traffic to another IP but on my mail server it looks like all the traffic is coming from my VPS IP and the spam blocking based on blacklisted IP's doesn't work very well.

      1 Reply Last reply Reply Quote 0
      • marcellocM Offline
        marcelloc
        last edited by

        If you are natting over the internet, nat will change source ip to your VPS ip and antispam rules based on source ip will not work.

        Did you tried postfix package? it can do a really good job on spam blocking and then forward to your internal server.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • C Offline
          craigduff
          last edited by

          I wondered about this. Can we not just create a rule on the firewall to say 173.56.89.78 to go to 32.678.23.12 (another Pfsense firewall) Also like pushing the incoming traffic to another destination?

          FAKE IPs addresses BTW

          Kind Regards,
          Craig

          1 Reply Last reply Reply Quote 0
          • W Offline
            webstar
            last edited by

            I ended up just using rinetd to setup the forwards from my VPS to my mail server.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.