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

pfSense+Postfix via Port Foward

Scheduled Pinned Locked Moved NAT
24 Posts 4 Posters 2.1k 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.
  • B
    Bob.Dig LAYER 8
    last edited by Dec 27, 2022, 6:31 PM

    @t-sato Also you outbound NAT looks horrible. Why do you use hybrid in the first place?

    T 1 Reply Last reply Dec 27, 2022, 6:46 PM Reply Quote 0
    • T
      t.sato @viragomann
      last edited by Dec 27, 2022, 6:33 PM

      @viragomann

      Thank you for the clarification. You are really helping me to understand pfSense.

      No, I do not use 1:1NAT for this.

      I will review outbound NAT settings and documents to ensure my setting is correct to maintain DNAT w/o masquerade and proper outbound traffic.

      My mail server works no problem sending and receiving with WAN if I do not mind log shows LAN interface IP....

      You are correct, x-forward-for works only for HTTP, won't work for SMTP. The article cites proxy protocol for SMTP not XFF. I understand it not pfsense issues.

      Again, I really appreciate you for taking your time to share your knowledge and experience. Not so many pfSense users in Japan and I could not find much information or discussion about pfsense in Japanese environment.

      V 1 Reply Last reply Dec 27, 2022, 6:44 PM Reply Quote 0
      • T
        t.sato @rcoleman-netgate
        last edited by Dec 27, 2022, 6:35 PM

        @rcoleman-netgate

        Thank you! This is what I wanted to see on my server. I will review my outbound NAT settings.

        1 Reply Last reply Reply Quote 0
        • V
          viragomann @t.sato
          last edited by Dec 27, 2022, 6:44 PM

          @t-sato said in pfSense+Postfix via Port Foward:

          Again, I really appreciate you for taking your time to share your knowledge and experience. Not so many pfSense users in Japan and I could not find much information or discussion about pfsense in Japanese environment.

          However, DNAT, SNAT, port forwarding, masquerading are all networking basics. I think, you might find also much stuff in Japanese regarding this.
          But yeah, some terms for these settings might be different in pfSense than in other routers.

          1 Reply Last reply Reply Quote 1
          • T
            t.sato @Bob.Dig
            last edited by Dec 27, 2022, 6:46 PM

            @bob-dig said in pfSense+Postfix via Port Foward:

            @t-sato Also you outbound NAT looks horrible. Why do you use hybrid in the first place?

            That is a good question. I honestly do not know why I did exactly. I remember I found some articles to switch hybrid to make something work. You are correct. I know I should not do thing that way. I have no excuse.

            I left the part alone since everything else is working.

            I will review and confirm all setting from clean install in test environment.

            Thank you for guiding me to right direction!

            R 1 Reply Last reply Dec 27, 2022, 6:47 PM Reply Quote 0
            • R
              rcoleman-netgate Netgate @t.sato
              last edited by Dec 27, 2022, 6:47 PM

              @t-sato said in pfSense+Postfix via Port Foward:

              I remember I found some articles to switch hybrid to make something work.

              If you're doing PBR then you will want it to make sure your specific routes use the outbound interface (typically a VPN) but I think in your situation it's unneeded

              Ryan
              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
              Requesting firmware for your Netgate device? https://go.netgate.com
              Switching: Mikrotik, Netgear, Extreme
              Wireless: Aruba, Ubiquiti

              T 2 Replies Last reply Dec 30, 2022, 11:53 AM Reply Quote 1
              • T
                t.sato @rcoleman-netgate
                last edited by Dec 30, 2022, 11:53 AM

                @rcoleman-netgate

                Screenshot 2022-12-30 at 20-44-37 pfsense2.flexfleet.jp - Firewall NAT Outbound.png

                To make this accessable from WAN and other LAN, I had to add this outbound NAT.

                After I learned my outbound NAT settings are not right from experts here, I have been researching document and tutorials on the net, it seems that port forward should work without outbound NAT. I have been testing on test pfsense box with simple setup to simulate my environment.

                Without outbound NAT States returns "CLOSED:SYN_SENT".
                With the outbound NAT, everything works, but leaving DMZ interface IP as my original problem behaves.

                I checked all server gateway setting to point the pfsense as the gateway.

                I wonder if PPPOE on WAN may affect the result.

                I will keep test and find the way to solve this, but I just wanted to have my status update here as you and other experts helped me.

                1 Reply Last reply Reply Quote 0
                • T
                  t.sato @t.sato
                  last edited by Jan 3, 2023, 4:35 PM

                  [Status Update]

                  Happy New year to all.

                  I was able to review and revise my setting to make everything work.

                  The cause of problem that required to have DMZ outbound NAT which makes me to give up DNAT was the routing setting on the mail server.

                  The mail server has correct IP/Subnet/Gateway/DNS to use the DMZ interface, however, returning traffic from the mail server was not able to reach DMZ interface. Buit I had to have DMZ outbound NAT on hte pfsense box to work around the issues.

                  So I added routing IP 0.0.0.0/Sub 0.0.0.0/10.0.0.2 on the NIC setting on the mail server to see if the traffic reach back to the DMZ interface on pfsense box. It worked without outbound NAT on pfsense box.

                  All traffic between WAN and the mail server via DMZ interface is all good.

                  One interesting thing is I had to select NAT reflect type NAT+Proxy on the mail server related port forward to access from other net. Pure NAT did not work from other LAN interfaces.

                  V 1 Reply Last reply Jan 3, 2023, 4:55 PM Reply Quote 0
                  • T
                    t.sato @rcoleman-netgate
                    last edited by Jan 3, 2023, 4:42 PM

                    @rcoleman-netgate

                    Thank you so much for showing your setting and log. That really helped me to know it's possible and assured me to find issues.

                    @viragomann

                    Thank you so much for your guidance and educational explanation. It really helped me to put terminologies in 2 different languages together. I appreciate you know things are called different even in same language and it gets more difficult after translated to different language.

                    @bob-dig

                    Thank you for guiding me to right direction to review my setting. You are correct and helped me to find the break thru.

                    1 Reply Last reply Reply Quote 1
                    • V
                      viragomann @t.sato
                      last edited by Jan 3, 2023, 4:55 PM

                      @t-sato said in pfSense+Postfix via Port Foward:

                      One interesting thing is I had to select NAT reflect type NAT+Proxy on the mail server related port forward to access from other net. Pure NAT did not work from other LAN interfaces.

                      This does masquerading again, but it is only applied to traffic from inside your network.

                      NAT reflection helps you to access your inside service by requesting its public IP.
                      To avoid the need of NAT reflection, we add host overrides to the internal DNS (maybe DNS resolver on pfSense) and point it to the internal IP of the service.

                      But nice, that you got sorted the outside access without masquerading.

                      1 Reply Last reply Reply Quote 1
                      24 out of 24
                      • First post
                        24/24
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received