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

    Specific gateway for specific website.

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 1.9k 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.
    • S Offline
      sidis405
      last edited by

      Hello guys, i have the following situation.

      For some time now i've had a pfSense box which works wonderfully. 2 Lans and 2 Wans.
      LAN1 -> WAN1 (static ip)
      LAN2 -> WAN2 (Dynamic ip)

      I need to make it so that all requests towards a given website from LAN2 will pass through WAN1.
      I've already set up a rule on the LAN2 interface that takes all requests for that website's ip and routes them through WAN1.
      The problem is that i need to make that rule so that accepts the url. This because the website does not have reverse lookup :
      pinging the website i get the correct ip. Reaching the ip on the browser does not reach the website but some directory on the server.

      I am trying to add an alias www.example.com but no dice, even though ive seen info around that one can add straight an url as an alias.
      I never seem to be able to add it.

      Anyway i can resolve this matter?

      1 Reply Last reply Reply Quote 0
      • marcellocM Offline
        marcelloc
        last edited by

        Try alias type for www.example.com with host option instead of url.

        url alias is not for url filtering.

        if www.example.com/sample.php goes to www.example2.com, then you have to include the host on redirect link on the same alias

        alias should be this way

        alias name: siteredirect
        alias mode: host
        alias entry1:www.example.com
        alias entry2:www.example2.com

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • S Offline
          sidis405
          last edited by

          Just saw that on the forums :)
          Had just hit enter on the rule change after i created the alias.

          Thank you very much for the reply :D

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