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

    Allow OPT to connect only to WAN, not LAN

    Scheduled Pinned Locked Moved Firewalling
    12 Posts 3 Posters 887 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.
    • N
      NGUSER6947
      last edited by

      Bear with me, I'm a novice at this.

      I have been using my SG-1100 for a while now, works great. I now need to set up an isolated network connection for a work computer. I do not want any way for data to cross between devices on the LAN port and the (for work) OPT port.

      I created the interface for OPT, and of course it reports that everything is blocked.

      If I simply duplicate the out of the box Firewall rules already set on the LAN port (I only use the default rules, haven't had any need to adjust them) on the OPT port, will that do the trick? Or do I need to put a rule in the OPT port to block anything to the LAN port (and vice versa)?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        i would achive that with this method :
        first rule: put a block to the OPT interface with destination LAN
        everything else go under this rule

        first rule: put a block to the LAN interface with destination OPT
        everything else go under this rule

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

          You don't need the lan interface rule unless you don't want lan to be able to get to opt network..

          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
          • kiokomanK
            kiokoman LAYER 8
            last edited by

            @NGUSER6947 said in Allow OPT to connect only to WAN, not LAN:

            I do not want any way for data to cross between devices on the LAN port and the (for work) OPT port.

            @johnpoz to me he asked for it 🤔

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

              Yeah true does sound like that.. Just odd.. while I can understand isolating traffic from isolated network ie "not trusted" into your trusted. Don't get why you would want/need to block from trust into untrusted... But sure yeah you can for sure do it..

              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
              • N
                NGUSER6947
                last edited by

                Ok, thanks to lots of help I got the OPT interface to work and can connect through it.

                Can someone please check my firewall rules to see if I have these right. Again, I don't want anything from the LAN to get to OPT, and vice-versa. Thanks!

                7806f475-6e33-4bc2-8a39-e367cc18c6ed-image.png

                f0dc3fcb-cd2f-4dd8-9f12-10db61ee19d3-image.png

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

                  No they are not... When could opt net ever be a source into lan?

                  Your not blocking anything on opt, it can go anywhere it wants.

                  Rules are evaluated as traffic enters an interface from the network its attached too.
                  Top down first rule to trigger wins
                  No other rules are evaluated.

                  When and how could the source IP of traffic come into your lan from the opt? How??

                  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
                  • kiokomanK
                    kiokoman LAYER 8
                    last edited by kiokoman

                    yup, the last rule on the LAN tab is wrong, remove it. you just need to copy the first block rule you have on LAN to the OPT interface but with destination 'LAN net'

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                    1 Reply Last reply Reply Quote 0
                    • N
                      NGUSER6947
                      last edited by

                      Ok so like this:

                      ac94d308-4ac6-45af-a7f0-ab0f9ada6988-image.png

                      e7ec11d6-7f35-44a9-a93e-b20a2e633ab3-image.png

                      Thanks again. This is not my specialty so I appreciate all the help I get here.

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

                        Keep in mind if opt has IPv6 addresses that lan would be able to talk to those..

                        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
                        • N
                          NGUSER6947
                          last edited by

                          If my IPv6 configuration type is set to None that would preclude that, correct?

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

                            on your opt, then sure..

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