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

Routing traffic through an specific IP address (virtual IP alias)

Scheduled Pinned Locked Moved NAT
5 Posts 3 Posters 7.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.
  • M
    mephisto
    last edited by Nov 20, 2012, 10:15 AM

    Hey guys,

    I've got a few IP addresses allocated as virtual IP addresses on pfSense and I would like to have a few internal IP addresses outbound traffic to go through specific IP addresses. Is possible to route all traffic based on a rule to go out through an specific address?

    Thanks!

    1 Reply Last reply Reply Quote 0
    • G
      GruensFroeschli
      last edited by Nov 20, 2012, 11:49 AM Nov 20, 2012, 10:37 AM

      Yes.
      You configure this under Firewall–>NAT-->Outbound
      Enable manual rule generation.
      Default rules will be added which NAT from your LAN to your WAN.
      Now create new rules according to your needs.
      What you probably want is to create an additional rule at the top with as source your internal IP(s) and as NAT address your VIPs.

      We do what we must, because we can.

      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

      1 Reply Last reply Reply Quote 1
      • M
        mephisto
        last edited by Nov 20, 2012, 11:24 AM

        @GruensFroeschli:

        Yes.
        You configure this Firewall–>NAT-->Outbound
        Enable manual rule generation.
        Default rules will be added which NAT from your LAN to your WAN.
        Now create new rules according to your needs.
        What you probably want is to create an additional rule at the top with as source your internal IP(s) and as NAT address your VIPs.

        I've created one on top of all others

        source has network 192.168.111.167/32
        source port blank

        destination type any
        destination port blank

        translation is using the virtual IP I want, static port unticked.

        Still doesn't work, traffic is not being routed through this IP address :/

        any other suggestion please? Thanks!

        1 Reply Last reply Reply Quote 0
        • M
          Metu69salemi
          last edited by Nov 20, 2012, 11:29 AM

          Have you moved your rule top of the list?
          Outbound nat is like normal rules top to down order.

          1 Reply Last reply Reply Quote 1
          • G
            GruensFroeschli
            last edited by Nov 20, 2012, 11:49 AM

            Can you show a screenshot of your new AoN ruleset?

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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