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

    NAT forward in the same interface with vlan

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 1.5k 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.
    • A
      alexandrejs
      last edited by

      Helo,

      I have a little box with pfsense and i hava a problem with NAT in this situation:
                                        _________
      Lan (rl1 in VLAN 10)–->  |pfSense  | -->  Wan (rl0)
      Opt1(rl1 in VLAN 20)---> |________|

      I wanted forward traffic in Lan (TCP 80) to Local Squid (127.0.0.1,80) and traffic in Opt1 (TCP 80) to external host (a.b.c.d). I make 2 rules in NAT but don't work. Only work the first rule. The second rule is don't executed.
      In this rule i setting a correct interface for each rule (lan e opt1).

      Any idea ?

      Thanks

      Obs: Network in Lan (10.0.10.0/24 VLAN 10)
            Network in opt1(10.0.20.0/24 VLAN 20)

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