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

    NAT is not working NAT 1:1 for IP subnet LAN

    NAT
    2
    2
    3.2k
    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.
    • C
      camil
      last edited by

      I have 4 free static IP xx.xx.xx.139 xx.xx.xx.140 xx.xx.xx.141 xx.xx.xx.142 IP pfsense 192.168.0.10/24 - xx.xx.xx.139 netmask /29 = 255.255.255.248
      I have server www apache mysql perl… 192.168.0.11 give this ip NAT for static IP xx.xx.xx.140

      I add virtualIP xx.xx.xx.140 and use NAT>1:1 add External subnet: xx.xx.xx.140 add Internal subnet: 192.168.0.11 /
      32
      Help..!!:)

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        Did you create firewallrules to allow the incoming traffic? Only 1:1 NAT is not automatically passing all traffic (which would be a bad idea anyway).

        Let's say one of your IPs is a webserver for example you need a pass rule like this:

        protocol tcp
        source IP any
        sourceport any
        destination IP <lan-ip of="" mailserver="">(NAT comes first, then firewallrules are applied so you have to use the internal IP as destination)
        destinationport http (80)</lan-ip>

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