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

    Best way to isolate an IP from everything BUT the internet

    Scheduled Pinned Locked Moved Firewalling
    23 Posts 3 Posters 2.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.
    • I Offline
      ice_mf_mike
      last edited by

      @Derelict:

      Then you hosed up the numbering of the new OPTX interface. You probably set a /32 netmask there.

      I used a /24.

      Any other ideas?

      827ABEBF-C12C-4A0C-908E-71AFE16E8BCA.png
      827ABEBF-C12C-4A0C-908E-71AFE16E8BCA.png_thumb

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

        You need to statically set annb address on the new interface to the new subnet you want on that interface. Do it just like LAN.

        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
        • I Offline
          ice_mf_mike
          last edited by

          @Derelict:

          You need to statically set annb address on the new interface to the new subnet you want on that interface. Do it just like LAN.

          So you mean i should use /32?

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

            No.

            You are making a new subnet on a new interface. You need to number the interface then create a DHCP server.

            Example interface configuration attached.

            screenshot-2018-04-07-16-00-28.png
            screenshot-2018-04-07-16-00-28.png_thumb

            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
            • I Offline
              ice_mf_mike
              last edited by

              @Derelict:

              No.

              You are making a new subnet on a new interface. You need to number the interface then create a DHCP server.

              Example interface configuration attached.

              Thanks!  The static ip did the trick. Ok.  So i have the opt interface configured.  DHCP configured.  the computer plugged into the opt1 port on the sg-3100.  But it will not pull an IP address.  Static does not allow it to connect to anything either.

              Any ideas?

              ![ss opt1.png](/public/imported_attachments/1/ss opt1.png)
              ![ss opt1.png_thumb](/public/imported_attachments/1/ss opt1.png_thumb)
              ![dhcp ss.png](/public/imported_attachments/1/dhcp ss.png)
              ![dhcp ss.png_thumb](/public/imported_attachments/1/dhcp ss.png_thumb)
              firewallss.png
              firewallss.png_thumb

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

                Did you make a VLAN or not?

                When the device is connected to the port does the status go to up in Status > Interfaces?

                You have protocols TCP and UDP on your firewall rule. That will not pass pings, for instance. Change that to protocol any unless you can articulate why you need just TCP/UDP.

                https://doc.pfsense.org/index.php/Connectivity_Troubleshooting

                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
                • I Offline
                  ice_mf_mike
                  last edited by

                  @Derelict:

                  Did you make a VLAN or not?

                  When the device is connected to the port does the status go to up in Status > Interfaces?

                  You have protocols TCP and UDP on your firewall rule. That will not pass pings, for instance. Change that to protocol any unless you can articulate why you need just TCP/UDP.

                  https://doc.pfsense.org/index.php/Connectivity_Troubleshooting

                  Yes i made a VLAN when first started.  Used 320 as the ID.  Also the interface shows as up.

                  vlanss.png
                  vlanss.png_thumb

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

                    Then you have to tag the traffic with VLAN ID 320. You mighht be able to do that in the NIC settings on your computer, but it would probably be easier to connect it to a switch that is configured for TAGGED VLAN 320, then connect your test device to a port on the switch that is UNTAGGED for VLAN 320.

                    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
                    • I Offline
                      ice_mf_mike
                      last edited by

                      @Derelict:

                      Then you have to tag the traffic with VLAN ID 320. You mighht be able to do that in the NIC settings on your computer, but it would probably be easier to connect it to a switch that is configured for TAGGED VLAN 320, then connect your test device to a port on the switch that is UNTAGGED for VLAN 320.

                      Im using a SG-3100.  How can i do that with this hardware?

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

                        Post your Interfaces > Assignments screen

                        And Interfaces > Switches, Ports

                        And Interfaces > Switches, VLANs

                        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
                        • I Offline
                          ice_mf_mike
                          last edited by

                          @Derelict:

                          Post your Interfaces > Assignments screen

                          And Interfaces > Switches, Ports

                          And Interfaces > Switches, VLANs

                          posted.  Thanks again for the help here.

                          ports.png
                          ports.png_thumb
                          vlans.png
                          vlans.png_thumb
                          ![interface assignments.png](/public/imported_attachments/1/interface assignments.png)
                          ![interface assignments.png_thumb](/public/imported_attachments/1/interface assignments.png_thumb)

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

                            You cannot do it in the switch there. mvneta0 is not part of the built-in switch. If you really want to use that OPT1 port, and don't want to hassle the VLAN or put a switch on it, then just change the assignment for  OPT1 to mvneta0 instead of VLAN 320 on mvneta0 and it will start working.

                            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
                            • I Offline
                              ice_mf_mike
                              last edited by

                              @Derelict:

                              You cannot do it in the switch there. mvneta0 is not part of the built-in switch. If you really want to use that OPT1 port, and don't want to hassle the VLAN or put a switch on it, then just change the assignment for  OPT1 to mvneta0 instead of VLAN 320 on mvneta0 and it will start working.

                              ok perfect.  That worked.  So let me ask you one last question.  If i wanted to do this for one of my LAN ports, is that possible?  Or is my best best connecting a switch to the opt1 port and using that for anything i want segmented from the rest of the network?

                              Thanks again.

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

                                You could tweak the switch into doing what you want by putting it in dot1q mode with VLAN 320 on mvneta0, then configuring the switch to be tagged on port 5 and untagged on one of the 4 edge ports.

                                But if you're happy with how you have it just connect OPT1 to a switch (managed or unmanaged) and connect all of the devices you want on that network to that switch.

                                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
                                • P patrickdickey52761 referenced this topic on
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.