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

    VLAN Questions

    Scheduled Pinned Locked Moved General pfSense Questions
    33 Posts 4 Posters 22.3k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      What does a core switch have to do with anything.. If both switches can reach pfsense then just put a switch there.. Go to the store and get a $40 smart switch..  If you have no budget, connect your 2 switches to that.  This is 1 vlan!

      There is NO scenario that would make sense to bridge 2 different vlans.  The act of bridging them would make it 1 vlan..  Why would you use something like pfsense to connect them.  You just need to plug one switch into the other switch.  Make the vlan id the same, there you go 1 vlan.

      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.8, 24.11

      1 Reply Last reply Reply Quote 0
      • J
        Jamerson
        last edited by

        Thank you guys and John for the help.
        I managed to get this fixed.
        I've configured one up link for all the switches and all the VLANS running on one interface and everything runs fine.

        I've enabled DHCP on each VLANS however didn't specify the dns on the dhcp . I've noticed that the users are having some difficulties to contact the file server .
        The users logs in local on their MAC machines.
        There is no internal DNS at all. The DNS is the gateway, DNS forward is configured fine.
        What am I doing wrong ?

        Before we migrate to offense we could build VPN to our Cisco firewall in holland to access the Internet as we may know the chiness are blocking a lot of sites .
        Is this gonna work with the openvpn tunnel we build ? I've forced the tunnel over the VPN but when I am connect over the openvpn and I went to whatismyip it's not showing our office IP but the local IP

        Thank you guys for the support
        Modify message

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          @Jamerson:

          Before we migrate to opnsense

          opnsense? Really?

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • J
            Jamerson
            last edited by

            @Derelict:

            @Jamerson:

            Before we migrate to opnsense

            opnsense? Really?

            I meant offense man

            1 Reply Last reply Reply Quote 0
            • J
              Jamerson
              last edited by

              Sorry don't know what open sense is , my safari auto corrections.
              Our productions number now is :
              2.3.1-RELEASE-p5 (amd64)
              built on Thu Jun 16 12:53:15 CDT 2016
              FreeBSD 10.3-RELEASE-p3

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                "I've enabled DHCP on each VLANS however didn't specify the dns on the dhcp"

                How exactly would thy find anything then??  They just going to broadcast for names?  Might work for something like smb on the local layer 2.  But how are they getting to anything on the internet?  Are you handing them a proxy via auto discovery (wpad)?

                if you handed them external dns, how would they find your local servers it seems your running?

                You kind of need dns..  So you have local servers but no local dns??  Pfsense can be your local dns.. Once you enable dhcp on pfsense it would default to handing out its IP on that interface dhcp is running as dns to all dhcp clients.  If you need to resolve some fqdn locally just put in a host override.

                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.8, 24.11

                1 Reply Last reply Reply Quote 0
                • J
                  Jamerson
                  last edited by

                  @johnpoz:

                  "I've enabled DHCP on each VLANS however didn't specify the dns on the dhcp"

                  How exactly would thy find anything then??  They just going to broadcast for names?  Might work for something like smb on the local layer 2.  But how are they getting to anything on the internet?  Are you handing them a proxy via auto discovery (wpad)?

                  if you handed them external dns, how would they find your local servers it seems your running?

                  You kind of need dns..  So you have local servers but no local dns??  Pfsense can be your local dns.. Once you enable dhcp on pfsense it would default to handing out its IP on that interface dhcp is running as dns to all dhcp clients.  If you need to resolve some fqdn locally just put in a host override.

                  Thank you John,
                  Yes I've enable the dhcp and left it as default so of sense is providing them gateway and dns as it self on each VLANS. I believe its fine now .
                  So specify dns or leave it to pfsense to decide is gonna be the same.
                  About the mobile users , how can we force the openvpn to send the whole traffic over the WAN ?
                  When we are in China want our users to user internet using our VPN to the office in Holland. Is this even possible with openvpn or we have to create a L2tp tunnel ?

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    GFW will probably block whatever you try to do. Probably want to take that up with the Chinese government.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jamerson
                      last edited by

                      @Derelict:

                      GFW will probably block whatever you try to do. Probably want to take that up with the Chinese government.

                      Last month my colleagues were in China, and everything works fine with the Cisco ASA firewall,
                      Cisco force the whole traffic over the VPN.
                      I don't know if this even possible with the openvpn .
                      I've seen the options on openvpn to send all traffic over the tunnel but don't know if it does it really.
                      So when I am connected with the VPN to the office, i get the office public ip and not the local.

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        Yes, it does it.

                        Redirect Gateway
                        Force all client generated traffic through the tunnel.

                        Then re-export your client config.

                        Cisco ASAs are IPsec, not OpenVPN. Not sure why you're making that comparison. If IPsec was working for you on the ASA, why not use IPsec on pfSense?

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                        1 Reply Last reply Reply Quote 0
                        • J
                          Jamerson
                          last edited by

                          @Derelict:

                          Yes, it does it.

                          Redirect Gateway
                          Force all client generated traffic through the tunnel.

                          Then re-export your client config.

                          Cisco ASAs are IPsec, not OpenVPN. Not sure why you're making that comparison. If IPsec was working for you on the ASA, why not use IPsec on pfSense?

                          Thank you, had reconfigured the OPENVPN to send all traffic over the tunnel and everything is working now.
                          Much appreciate it .

                          The management believes the openvpn is using ssl which makes it secure to use than the IPsec.
                          Right now I need to restrict the access between one VLAN and the rest of the VLANS.
                          Is creating a group of interfaces and apply the firewall rules between those two group would be the easy way of managing the stuff ?

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by

                            while ipsec has its own issues, not sure I would consider it less secure than openvpn.  I am a bit surprised that ipsec works through the 防火长城 (The Great Firewall of China) let me know if the Chinese comes through ;)

                            It is much easier to spot and stop ipsec traffic then openvpn that can run on any port.  If your doing a deep packet inspection you would know its not normal ssl traffic..  But like I said its much easier to block ipsec so it funny that is not blocked..

                            Blocking traffic between vlans on pfsense is quite simple.  I would assume all your vlans are rfc1918 so just make an alias that contains those networks and use a not rule so only if traffic is NOT rfc1918 is it allowed.  Of course putting the stuff you want to allow above that rule.

                            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.8, 24.11

                            1 Reply Last reply Reply Quote 0
                            • J
                              Jamerson
                              last edited by

                              @johnpoz:

                              while ipsec has its own issues, not sure I would consider it less secure than openvpn.  I am a bit surprised that ipsec works through the 防火长城 (The Great Firewall of China) let me know if the Chinese comes through ;)

                              It is much easier to spot and stop ipsec traffic then openvpn that can run on any port.  If your doing a deep packet inspection you would know its not normal ssl traffic..  But like I said its much easier to block ipsec so it funny that is not blocked..

                              Blocking traffic between vlans on pfsense is quite simple.  I would assume all your vlans are rfc1918 so just make an alias that contains those networks and use a not rule so only if traffic is NOT rfc1918 is it allowed.  Of course putting the stuff you want to allow above that rule.

                              The IPsec has always worked from China to Europe. Last month too
                              I don't know about IPsec to USA or there are some other policies than the one to Europe.
                              The VLANS are rfc1918 24 bit-block .

                              I will create the rules and report back.
                              A big thank you sir for your continu support

                              1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by

                                if you have questions post up your rules and we can go over them.

                                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.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • J
                                  Jamerson
                                  last edited by

                                  @johnpoz:

                                  if you have questions post up your rules and we can go over them.

                                  Thank you so much John,
                                  Our first Pfsense Firewall Hardware is up and running.

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