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

    Multiple Subnets on One Interface

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    5 Posts 3 Posters 5.4k 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
      sabirshamin
      last edited by

      I am using PfSense Ver2.0.3-RELEASE (i386). I had only one flat Subnet Class B 172.16.0.0/16. Now we have upgraded our IT infrastructure and created 8 VLAN in the newly upgraded CISCO Layer 3 switches . But to isolate and easy maintenance we have created it in Class A 10.10.0.0/16 /32/21/..etc. And kept all our server including PfSenseĀ  in Class B 172.0.0.0 Subnet.

      Now I can get Internet in Class B subnet but not all the Class A. Could you please anybody help me by how do I get internet for the Class A subnet using only one LAN interface.

      Or How do we configure Multiple subnet in a single LAN interface?

      Thanks in advance

      Sabir

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        1. Make sure your firewall rules allow the traffic to pass from those subnets to the Internet
        2. Make sure your outbound NAT rules cover all of your local subnets

        Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • M
          Mr. Jingles
          last edited by

          @jimp:

          1. Make sure your firewall rules allow the traffic to pass from those subnets to the Internet
          2. Make sure your outbound NAT rules cover all of your local subnets

          It's me again JimpĀ  ;D

          If I may ask yet another stupid question about the bold; in NAT I have only the auto created rule LAN -> WAN, which was generated by pfSense. Currently I am experimenting with VLANs, I have three of them on 1 NIC, the same one that LAN is on (the other two NICs are WAN1 (vdsl) and WAN2 (cable)). VLAN 30 (192.168.3.1), VLAN40 (192.168.4.1) and VLAN50 (192.168.5.1), all with DHCP-server enabled.

          There are no entries for these VLANs in the NAT-screen, yet I do have internet on them. So I simply concluded 'it works' without messing up anything ( ;D) in the NAT-screen.

          (By now you know that I am stupidĀ  ;D I have the pfSense book, but sometimes I just don't get thingsĀ  :-).

          6 and a half billion people know that they are stupid, agressive, lower life forms.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            If you are set to "automatic outbound NAT" then the rules in the list are ignored. If you're on manual outbound NAT, then there must be something in the list matching the subnet(s).

            Remember: Upvote with the šŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • S
              sabirshamin
              last edited by

              Hi jimp,

              Thank you for the quick answer. When I added 'firewall rule' and 'Outbound NAT rule' it works! But now it works only https sites. Not others. Please help.

              Thanks in advance
              Sabir

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