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

    Regras de NAT Iptables >>> Pfsense

    Scheduled Pinned Locked Moved Portuguese
    2 Posts 2 Posters 778 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.
    • D
      danielsantiago
      last edited by

      Olá bom dia, tenho essas regras que atualmente funcionam perfeitamente no Iptables linux Ubuntu
      Quero mudar para Pfsense, como essas regras ficariam no pfsense?

      *nat
      :PREROUTING ACCEPT [4823600:4483790770]
      :INPUT ACCEPT [1973:267707]
      :OUTPUT ACCEPT [10:696]
      :POSTROUTING ACCEPT [1065:62999]
      -A PREROUTING -p tcp -m tcp –dport 3389 -j DNAT --to-destination 10.1.1.79:3389
      -A POSTROUTING -o eth1 -j SNAT --to-source 177.15.66.17
      COMMIT

      1 Reply Last reply Reply Quote 0
      • R
        Raid0
        last edited by

        Bom dia.

        Considerando que tua eth1 seja a wan no pfsense o source nat já é configurado automaticamente.
        O port forward (-A PREROUTING -p tcp -m tcp –dport 3389 -j DNAT --to-destination 10.1.1.79:3389) deve ser configurado no menu "Firewall -> NAT -> Port Forward".
        As configurações no pfSense são feitas por interface web acessada geralmente a partir de um host na LAN. Uso este sistema há algum tempo e raramente precisei usar algum tipo de shell, salvo para diagnósticos.

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