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

[solved] How to route a /29 subnet to a user on LAN?

Scheduled Pinned Locked Moved Routing and Multi WAN
6 Posts 4 Posters 1.8k 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.
  • T
    Tillebeck
    last edited by Feb 11, 2016, 10:24 PM Feb 7, 2016, 8:35 PM

    I have a pfsense with one WAN and one LAN.

    A user on LAN would like his own /29 subnet of public global IP addresses and not a normal LAN IP address with 1:1 NAT

    I have an extra /29 routed to the WAN IP. How can I route this to a user on LAN?

    I have an ekstra interface he can have if that would help.

    1 Reply Last reply Reply Quote 0
    • D
      David_W
      last edited by Feb 8, 2016, 10:21 AM

      @Tillebeck:

      I have an extra /29 routed to the WAN IP. How can I route this to a user on LAN?

      I have an ekstra interface he can have if that would help.

      Configure the extra interface to a static IPv4 address in that /29 subnet, which will become the gateway address for devices on that /29. Don't forget that the highest address in the /29 is the broadcast address, which is unusable for normal purposes, and the lowest address in the /29 is the network address which really should not be used (though can often be used with care).

      You then need to add an "Other" Virtual IP on the WAN address for the /29 network.

      Finally, you need to configure appropriate firewall rules.

      This is one way to do it - there may well be others.

      1 Reply Last reply Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Feb 8, 2016, 4:35 PM

        if the /29 is routed to his wan IP, then he has no need to create any extra vip on his wan for that /29

        But yes bring up a vlan on pfsense - put your /29 on that vlan and then on the ports on your switch that user will be using put that vlan..

        That you have an actual routed /29 makes it easy..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • S
          sorskov
          last edited by Feb 10, 2016, 6:35 PM

          @David_W:

          @Tillebeck:

          I have an extra /29 routed to the WAN IP. How can I route this to a user on LAN?

          I have an ekstra interface he can have if that would help.

          Configure the extra interface to a static IPv4 address in that /29 subnet, which will become the gateway address for devices on that /29. Don't forget that the highest address in the /29 is the broadcast address, which is unusable for normal purposes, and the lowest address in the /29 is the network address which really should not be used (though can often be used with care).

          You then need to add an "Other" Virtual IP on the WAN address for the /29 network.

          Finally, you need to configure appropriate firewall rules.

          This is one way to do it - there may well be others.

          Hi.

          Why is it needed to set an "Other" Virtual IP on the WAN address for the /29 network?

          Also, shouldn't NAT Outbound be set to Manuel, and also remove the auto generated rules for the extra interface? Or all IP's in the /29 be shown as the Gateway IP set on the extra interface?

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Feb 10, 2016, 8:26 PM

            there is no reason to add a vip of the /29 is routed too you… Not sure what he is talking about.. But if the /29 is routed to you just add the network on the lan side of pfsense and your ready to go.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • T
              Tillebeck
              last edited by Feb 11, 2016, 10:24 PM

              Thanks. It works perfect.
              I tried without adding a VIP and as Johnpoz writes, it works fine without VIP.

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