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

    Netgear/Vlans/Pfsense

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    58 Posts 4 Posters 10.6k 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 johnpoz

      You have port all ports untagged vlan 1 - that is WRONG!!!

      That even lets you have 1 an 5 untagged on port 1 is just stupid.. You should not be able to put more than 1 untagged vlan on a port.. Its a borked configuration!!

      ssumed I would be able to NAT the VLAN5 to use the VPN_GROUP

      How - you don't have anything in outbound nat natting 192.168.5/24 to your vpn interface.. You only have 192.168.1/24

      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

      R 1 Reply Last reply Reply Quote 0
      • R
        r79c @johnpoz
        last edited by r79c

        @johnpoz For me to change the port setup in membership tab on vlan1 I have to change the Port PVID

        ah apart from port 1 which I can blank

        like so

        https://ibb.co/16BV4hz

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

          You have its pvid set to 5.. So remove the vlan 1 untagged on that port!

          Which is correct... Your telling the switch hey any untagged traffic you see ingress to this port is vlan 5 traffic!! And putting the switch in vlan 5 untagged tells the switch hey only send vlan 5 traffic out this port, and remove the tag.

          Now the device connected to this port is in vlan 5, but it doesn't really know.. It just sees untagged traffic..

          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 1
          • R
            r79c
            last edited by

            right ok I think I've done that

            https://ibb.co/16BV4hz
            https://ibb.co/w7ZLhMV

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

              That looks right yes.

              Now you just need to fix your hybrid rules if you want vlan5 to go out your vpn connection.

              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 1
              • R
                r79c
                last edited by r79c

                So I would need to add a rule for 192.168.5.0/24 LAN to WAN?? altho I have an automatic rule with that.

                BTW thanks for your help, I'm learning, albeit slowly!

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

                  No you need an outbound nat so that pfsense will nat 192.168.5 to one of your vpn interfaces.. You only had 192.168.1 in your hybrid natting to yoru vpn interface ips.

                  Why would you need a rule for lan to wan?? Wan net is not the internet - its just wan net, that is it... Your rule on sending vlan 5 out your vpn would send it out a vpn... But you had no outbound nat to nat 192.168.5 to vpn interface.

                  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 1
                  • R
                    r79c
                    last edited by

                    I added a rule to one of the vpn interfaces that I have outbound

                    https://ibb.co/4TspV7G

                    Is this correct?

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

                      Again those wan outbound hybrids are POINTLESS!!!

                      And how you sure that outbound nat is gong to use that vpn interface, if your policy routing it out a group... What if it goes out a different vpn interface?

                      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

                      R 1 Reply Last reply Reply Quote 1
                      • R
                        r79c @johnpoz
                        last edited by r79c

                        So i have the following configuration and I still have no internet connectivity on the pc plugged into port 1 on the netgear switch. The VLAN5 interface is up, I have outbound NAT rules and firewall rules in the VLAN tab. I just dont understand it at the moment????? It should be relatively simple.

                        on the pc i get a dhcp lease but am unable to ping 192.168.5.1 or google.com

                        LAN is on 192.168.1.
                        VLAN is on 192.168.5.

                        here are some more screens of the configuration.

                        https://ibb.co/0ft99fJ
                        https://ibb.co/D9W0ZXV
                        https://ibb.co/wy401MF
                        https://ibb.co/z7Rv26Z
                        https://ibb.co/dcXmmCQ
                        https://ibb.co/8r27zTG
                        https://ibb.co/vsmjRxW
                        https://ibb.co/7JGDVS1
                        https://ibb.co/HTCjhpN

                        I've just read that you cannot send vlan over vpn!

                        https://forum.netgate.com/topic/148170/specific-vlan-over-vpn-only/5

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • dotdashD
                          dotdash
                          last edited by

                          Not sure how that NordVPN stuff works, but I think you need the 192.168.5.0 natting out the VPN gateway instead of the redundant WAN. Why don't you just verify the vlan works out the WAN first. I'll refrain from giving my opinions of 'privacy' vpn providers.
                          RE: That last link, i'm not sure what JP is on about- you can't carry the vlan tag over a VPN, but you can absolutely have a vlan interface with a unique subnet and route that. My experience however is with site to site tunnels.

                          1 Reply Last reply Reply Quote 0
                          • R
                            r79c
                            last edited by r79c

                            I thought that as well, getting it to work with the WAN first so I added the following mapping...

                            https://ibb.co/WF4NFYm

                            still no internet, It has to be something stupid that I'm not configuring properly...

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

                              @r79c said in Netgear/Vlans/Pfsense:

                              on the pc i get a dhcp lease but am unable to ping 192.168.5.1

                              Well then look to the client for why... Can you arp pfsense 192.168.5.1 on the client? You have no rules allowing to ping pfsense.. Its possible everything thing is getting shoved out your policy.. So no you wouldn't be able to ping 192.168.5.1... Create a rule above your policy route rule that allows ping to vlan address

                              I've just read that you cannot send vlan over vpn!

                              Your reading that WRONG... That has nothing to do with what your doing, which is routing a specific network/vlan over a vpn connection.

                              As to getting to the internet - well how and the F do you think its going to go out your vpn which your forcing via your policy route.. But your not natting to it... We already went over this!!!

                              What I would highly suggest you do is get your vlan 5 working as a normal network before you worry about shoving all its traffic down some vpn connection.

                              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

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                r79c @johnpoz
                                last edited by r79c

                                @johnpoz What I would highly suggest you do is get your vlan 5 working as a normal network before you worry about shoving all its traffic down some vpn connection.

                                that's what I'm trying to do

                                @johnpoz Create a rule above your policy route rule that allows ping to vlan address

                                By policy route rule you mean a firewall rule in the vlan tab that allows me to ping vlan address?

                                if i do arp -a 192.168.5.1 i get

                                Interface: 192.168.5.0 --- 0x7
                                Internet Address 192.168.5.1
                                Physical Address MAC
                                Type Dynamic

                                rules picture

                                https://ibb.co/cyTRT9s

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

                                  @r79c said in Netgear/Vlans/Pfsense:

                                  I dont get a response with arp 192.168.5.1

                                  Look in your client that is on this vlan 5, look in its arp table.. If you do not see pfsense mac address then NO your never going to be able to ping it.

                                  And would say your not getting dhcp from it either..

                                  I am assuming this is a windows box.

                                  lets see its ipconfig /all
                                  ping 192.168.5.1
                                  look in your arp table
                                  arp -a

                                  This is WRONG

                                  Interface: 192.168.5.0 --- 0x7
                                  

                                  Post your ipconfig /all

                                  Your interface sure and the hell should not have a .0 address with a /24 mask.

                                  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
                                  • R
                                    r79c
                                    last edited by r79c

                                    arp -a on the client gives me

                                    Interface: 192.168.5.50 --- 0x7

                                    Internet Address
                                    192.168.1.125
                                    192.168.1.201
                                    192.168.1.202
                                    192.168.5.1 - mac address is that of LAN interface on Pfsense
                                    192.168.5.255
                                    224.0.0.2
                                    224.0.0.251
                                    224.0.0.252
                                    239.255.255.250
                                    255.255.255.255

                                    with all the physical address as well

                                    ipconfig /all

                                    Connection : localdomain
                                    description: intel gb network connection
                                    physical: mac
                                    dhcp enabled: yes
                                    auto config: yes
                                    link local ipv6: ...
                                    ipv4 192.168.5.50
                                    subnet mask: 255.255.255.0
                                    default gateway: 192.168.5.1
                                    dhcp server: 192.168.5.1
                                    dhcpv6 iaid: 133459204
                                    dhcpv6 client duid: ...
                                    dns server: 192.168.5.1
                                    netbios over tcip: enabled

                                    yes client is a windows box

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

                                      Well is the mac address for 5.1 pfsense mac address. Where were you seeing 5.0? for your interface?

                                      You have something really F'd up

                                      192.168.1.125
                                      192.168.1.201
                                      192.168.1.202
                                      

                                      You shouldn't be seeing 192.168.1 address if your in vlan 5!!!

                                      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

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        r79c @johnpoz
                                        last edited by

                                        @johnpoz yes the mac address for 5.1 is the mac address of the lan interface

                                        5.0 must have been a typo

                                        two of those 192.168.1 address are static IP mappings for devices
                                        192.168.1.125 is the IP address of an access point

                                        all these IP addresses go through port 3 on the netgear switch which is connected to a wireless access point mesh

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

                                          @r79c said in Netgear/Vlans/Pfsense:

                                          two of those 192.168.1 address are static IP mappings for devices

                                          Doesn't matter! So you created those on the device directly with arp? For why? It is pointless, and does nothing - sure and the F not going to work..

                                          I take it basic understanding of how vlans actually work, and what they do is where we need to start..

                                          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

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            r79c @johnpoz
                                            last edited by

                                            @johnpoz So you created those on the device directly with arp? For why?

                                            I statically mapped those IP addresses using Pfsense with arp yes, why, because those two devices are TV's which I did not want to put the traffic over VPN connection.

                                            @johnpoz I take it basic understanding of how vlans actually work, and what they do is where we need to start..

                                            sure, your the only one responding to this, and I'm grateful because I can't seem to get this working at all!!! I'm starting to wonder why I'm bothering really, as I only wanted to setup up one VLAN with one PC on my home network LoL

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