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

    Como criar regra masquerade e IP forwarding

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 268 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.
    • P
      Patricia Oliveira
      last edited by

      Alguém sabe me dizer como eu conseguiria criar essas mesmas regras do iptables no pfsense

      1 iptables -t nat -A POSTROUTING -o em1 -j MASQUERADE
      2 iptables -A FORWARD -i em1 -o em3 -m state --state RELATED,ESTABLISHED -j ACCEPT
      3 iptables -A FORWARD -i em3 -o em1 -j ACCEPT
      

      E como eu poderia ter o mesmo efeito desse comando que habilita IP forwarding no pfsense

      sysctl -w net.ipv4.ip_forward=1
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.