Navigation

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

    OPT1 / OPT2 interfaces not able to access the Internet

    General pfSense Questions
    7
    28
    2166
    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.
    • K
      ketaj271969 last edited by

      Hello,

      I'm running a Pfsense 2.3.1 ITX Firewall Router 1-WAN 3-LAN.  The WAN and LAN interfaces are working as expected.  I've enabled the OPT1 & OPT2 interfaces and the DHCP server for each interface.  I connect a PC to OPT1 & OPT2 and am given an IP address on each interface.  I can hit other computers on my network, but neither OPT1 or OPT2 can get out to the internet.  I have firewall rules set up for each interface as shown in the attached screenshots.  When I use Diagnostics > ping, I can ping from the LAN interface but not OPT1 or OPT2.  Might anyone have suggestions about how to resolve this issue?

      Thanks!



      1 Reply Last reply Reply Quote 0
      • KOM
        KOM last edited by

        In your network config for OPT1 and OPT2, did you specify a gateway?

        1 Reply Last reply Reply Quote 0
        • SammyWoo
          SammyWoo last edited by

          This typically signals an absence of the GATEWAY parameter.

          GATEWAY (literally) = This is the door to the Internet.

          1 Reply Last reply Reply Quote 0
          • K
            ketaj271969 last edited by

            Thank you.  This must be the problem.  I didn't see a gateway specified on the LAN interface (as it is on the WAN interface).  This is why I thought it wouldn't be needed on OPT1 or OPT2.

            I've taken a stab at setting up a new Gateway (using the same IP address as the gateway on WAN) but that dog doesn't hunt.

            Can I set up multiple gateways for a single upstream gateway (from ISP modem)?  Anyone aware of some documentation I could follow?

            1 Reply Last reply Reply Quote 0
            • SammyWoo
              SammyWoo last edited by

              No… Anything connected up to opt1, should have gateway=IP of opt1.  Anything connected up to opt2 should have gateway=IP of opt2.

              A gateway is always an IP on the SAME SUBNET as you are in.  Think of opt1 as a room, and you have multiple doors, and that's all you can see, most of those doors are other clients but one of them is, as mentioned, the door to the Internet and that is opt1 IP.

              I haven't done this myself under pfsense but you may have to run multiple instances of the DHCP server in order to dish out the different gateways, and on top of that am not sure if there is any advantage to run opt1/opt2 on the same subnet as LAN or better run separate subnets.

              1 Reply Last reply Reply Quote 0
              • T
                tagit446 last edited by

                Please correct me if I am wrong but I don't think it is a gateway issue.

                Looking at the firewall rules you posted I think you are missing the source as you have it set to any. For OPT1 add OPT1 net as source and for OPT2 add OPT2 net as source. If you look at your LAN firewall rule you will see the source is LAN net.

                Please add the source to each rule and report back.

                1 Reply Last reply Reply Quote 0
                • K
                  ketaj271969 last edited by

                  I don't think this is the problem.  I've updated the rules per your guidance (see attachments) and am still unable to access internet from OPT1 or OPT2.

                  I really appreciate the help I'm receiving here.  Before we burn too many cycles, I'd like to highlight my ultimate goal is to run 1 interface (LAN) with an OPENVPN client (specifying LAN as the interface) and the other two WITHOUT VPN.  Does the approach I'm trying to take make sense to address this goal?

                  Much appreciated.




                  1 Reply Last reply Reply Quote 0
                  • T
                    tagit446 last edited by

                    @ketaj271969:

                    I don't think this is the problem.  I've updated the rules per your guidance (see attachments) and am still unable to access internet from OPT1 or OPT2.

                    Ok but it is a start as atleast your firewall rules are now correct.

                    Could you post a screenshot of your DNS Resolver settings and your Outbound NAT settings?

                    Also, are your LAN, OPT1 and OPT2 each in a different subnet? Maybe throw in a screenshot of one of your OPT interfaces?

                    Concerning your VPN, yes you can use the VPN on just one interface but lets first get your internet working on OPT1 and OPT2.

                    The problem here is that setups can vary greatly so it makes it hard to identify the issue. It could be something very simple or something complex. Best bet is to post as much info about your settings as possible.

                    It sounds like you have a setup similar to mine or should I say your setup goal is similar to what I have so we should be able to figure this out.

                    1 Reply Last reply Reply Quote 0
                    • K
                      ketaj271969 last edited by

                      Hello,

                      I've included the following:

                      • DNS Resolver - I did not include my host overrides. Let me know if they're needed

                      • OutBound NAT

                      • OPT1 configure - running on different subnet

                      • OPT2 configure - running on different subnet

                      Please let me know what you think.
















                      1 Reply Last reply Reply Quote 0
                      • Grimson
                        Grimson Banned last edited by

                        You're trying to NAT on a LAN (OPT1) interface that won't work, you need to learn how NAT works.

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

                          So you took your outbound nat out of automatic - why??

                          And you didn't create outbound nat to the wan interface from the networks you put on your opt1 and opt2… But you have an outbound nat out into opt1..

                          There is you problem... Change your outbound nat to automatic and it will fix it your problem.  Then change it to to hybrid and setup what you want for any sort of vpn service.

                          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 23.01 | Lab VMs CE 2.6, 2.7

                          1 Reply Last reply Reply Quote 1
                          • T
                            tagit446 last edited by

                            Thanks for posting the screenshots, very helpful :)

                            johnpoz is correct and this should fix your problem. Below is a screenshot of what you should end up with when it is correct. You can either do what johnpoz said or edit it manually to match the settings in my screenshot. Of course I use a different VPN so substitute with your own VPN. Unless you need them you can also delete the Auto created rules for ISAKMP to clear up some of the clutter.

                            As for your VPN, if you only want it on your LAN.. Goto your LAN firewall rule, edit and scroll down to advanced options and choose your VPN for the gateway. For OPT1 and OPT2 the same except choose your WAN gateway in Advanced Options.


                            1 Reply Last reply Reply Quote 0
                            • T
                              tagit446 last edited by

                              An edit to my last post.

                              Since you only want your VPN on your LAN you can probably disregard the outbound VPN NAT rules for your 192.168.20.0 and 192.168.30.0 subnets.

                              As you can see I have my VPN setup on all interfaces. Basically everything on my network goes through the VPN and I use firewall rules to run certain devices through the WAN by specifying the devices IP and choosing my WAN as the gateway. This is why I have VPN outbound NAT rule for each subnet.

                              Also for your OPT1 and OPT2 firewall rules, probably no need to choose a gateway in advanced options.

                              1 Reply Last reply Reply Quote 0
                              • T
                                tagit446 last edited by

                                I forgot to mention that you may need to make some other changes in pfSense so that you do not have DNS leak issues with your VPN but first please follow the advice given earlier to get your internet working on each interface then report back. I only mention this because of your resolver settings and the fact that you are using a VPN for a reason. The VPN is useless if it is leaking DNS to your ISP.

                                1 Reply Last reply Reply Quote 0
                                • K
                                  ketaj271969 last edited by

                                  Hi,

                                  I believe we're getting close.

                                  Per my screenshot for outbound NAT, I now have NAT mode set to hybrid and I've removed the ISAKMP rules.  I've left the WAN rules for subnets  168.192.20.0 and 168.192.30.0 in place.

                                  As for setting my LAN interface to use the OpenVPN gateway, I've tried setting up a new gateway under System > Routing and/or Status > Gateway.  I didn't know what to use for an IP address so I left them blank.  The screenshot of the Gateways shows this new OpenVPNGW gateway is in a "pending" status, I'm not sure where to go next with this.

                                  Then, I tried setting up the LAN firewall rule to refer to the OpenVPNGW gateway.  I also referred the OPT1 and OPT2 rules to the non-VPN gateway WANGW.  Unfortunately, I'm still getting the same results – neither OPT1 or OPT2 can access the internet when OpenVPN is active.

                                  Regards.








                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    tagit446 last edited by

                                    Looks like you took johnpoz and my advice together. I am sorry I should have stated to do one or the other in regards to your NAT rules.

                                    Below is a copy of your screenshot with some added text. You can safely delete the rules I marked as duplicates as they were already created automatically at the bottom, do this if you want to keep it in Hybrid Outbound NAT. If you want to do the rules like I have in my screenshot you will need to switch to Manual Outbound NAT.

                                    With that said I don't believe the duplicate NAT rules would stop your internet from working so there must be something else going on here.

                                    @ketaj271969:

                                    Then, I tried setting up the LAN firewall rule to refer to the OpenVPNGW gateway.  I also referred the OPT1 and OPT2 rules to the non-VPN gateway WANGW.  Unfortunately, I'm still getting the same results – neither OPT1 or OPT2 can access the internet when OpenVPN is active.

                                    Do you have internet on OPT1 and OPT2 when the VPN is disabled?

                                    If I were you I would remove the VPN completely until I had internet working on all interfaces just to rule it out. I personally had a lot of strange issues while trying to set up my VPN.

                                    Though it probably won't make a difference please fix your NAT rules as I mentioned above and then reboot your pfSense box. If you still have no internet on OPT1 and OPT2 the best advice I can give is try to get this all working WITHOUT your VPN. Once you have your internet working, then add the VPN back in.


                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      ketaj271969 last edited by

                                      Hello,

                                      I've played around with things a bit more and am in a slightly different situation.  All interfaces - LAN, OPT1 and OPT2 – work whether the VPN is active or not.  However, now when I run the VPN, I'm no longer getting connected as I was before.  Running the VPN or not, has no impact on any of the interfaces at the moment.  I haven't deleted the VPN client yet but will do so if you feel it's necessary.  I also tried setting up a gateway for the VPN but must not be getting the configuration right.

                                      Please let me know what you think.

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tagit446 last edited by

                                        @ketaj271969:

                                        Hello,

                                        I've played around with things a bit more and am in a slightly different situation.  All interfaces - LAN, OPT1 and OPT2 – work whether the VPN is active or not.  However, now when I run the VPN, I'm no longer getting connected as I was before.  Running the VPN or not, has no impact on any of the interfaces at the moment.  I haven't deleted the VPN client yet but will do so if you feel it's necessary.  I also tried setting up a gateway for the VPN but must not be getting the configuration right.

                                        Please let me know what you think.

                                        Hi,

                                        So you are saying you do have internet on all interfaces now?

                                        If so no need to disable your VPN.

                                        I'm not sure what you mean by "However, now when I run the VPN, I'm no longer getting connected as I was before". Do you mean you loose internet or you are not getting expected speeds? Please elaborate.

                                        I can say, I think it is normal to see less speed while using a VPN.

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          ketaj271969 last edited by

                                          Confirmed – I am able to connect to the internet from all interfaces now: LAN, OPT1 & OPT2.  The problem I'm having now is when I start my OpenVPN service, I'm still seeing my home IP address and not the IP address(es) of my VPN provider.  Somehow, I managed to disconnect something.  BTW - I did reboot my router which seemed to get things working better (except the VPN).

                                          Thanks.

                                          1 Reply Last reply Reply Quote 0
                                          • K
                                            ketaj271969 last edited by

                                            Could it be that I need to set up a VPN Gateway as you recommended?  If so, I'm in the dark on how to do this.

                                            Thank you.

                                            1 Reply Last reply Reply Quote 0
                                            • T
                                              tagit446 last edited by

                                              I may be wrong but if I remember correctly the VPN gateway should have been created automatically when you set up the VPN.

                                              In one of your previous post you specified your VPN gateway in your LAN firewall rules.

                                              Out of curiosity who is your VPN provider?

                                              1 Reply Last reply Reply Quote 0
                                              • K
                                                ketaj271969 last edited by

                                                Your recollection is correct.  I did try to set up my own gateway but this was NOT part of the process I followed to set up the VPN.  I followed the instructions in this video to set up a VPN (which did not include setting up a gateway.)  https://www.youtube.com/watch?v=jauomZSLUuk

                                                I'm sure that while trying to set up a gateway on my own, I messed things up.

                                                The first problem I'm seeing is that the OpenVPNGW I do set up is in a "pending" state.  This may be one reason it's not working.

                                                Let me know what you think.


                                                1 Reply Last reply Reply Quote 0
                                                • K
                                                  ketaj271969 last edited by

                                                  Also, I'm using Private Internet Access as a provider (as specified in the video)

                                                  1 Reply Last reply Reply Quote 0
                                                  • T
                                                    tagit446 last edited by

                                                    The youtube link is for a Private Internet Access VPN setup so I have to assume you are using PIA?

                                                    If so I noticed that video is almost a year old. It is possible there have been some code changes since then.

                                                    Try this tutorial: https://www.privateinternetaccess.com/pages/client-support/pfsense or at least verify your setting against it.

                                                    Also, anytime you make changes to the VPN setup it is good to reboot the pfSense box.

                                                    It could be something got borked when you were messing around so you may need to delete your VPN setup and start over.

                                                    I use ExpressVPN so my setup is similar but different. With the VPN gateway I did have to set my own monitor IP. I'm not sure if that is needed with PIA but you could add 4.2.2.1 as your Monitor IP.

                                                    What do you see when you goto Status –> OpenVPN? Does it show status up or down?

                                                    1 Reply Last reply Reply Quote 0
                                                    • T
                                                      tagit446 last edited by

                                                      I must have been writing my last post when you posted that you are indeed using PIA.

                                                      1 Reply Last reply Reply Quote 0
                                                      • K
                                                        ketaj271969 last edited by

                                                        Hello -

                                                        At the moment, I'd taken a turn for the worse….

                                                        I tried several different variations of VPN configs, and though I see that the client is active and connecteed, the VPN doesn't work on any of the interfaces.

                                                        Then I had the bright idea to restore my back-up from before I started this work and the VPN was still working.  Alas, I seem to have disabled the webConfig interface running at http://192.168.1.1.

                                                        I've restored to factory defaults and can access my router through the serial interface.  However, no matter what I try, I can't get into WebConfig.

                                                        At this point, I need to take a break working with pfSense and come back with fresh eyes in a day or two.  I may even need to purchase a new box.

                                                        Thanks so much for all your help.

                                                        1 Reply Last reply Reply Quote 0
                                                        • T
                                                          tagit446 last edited by

                                                          @ketaj271969:

                                                          Alas, I seem to have disabled the webConfig interface running at http://192.168.1.1.

                                                          Sorry to hear of your bad luck. Hopefully you will have better luck when you come back to it.

                                                          Just out of curiosity, did you try accessing the web interface at 192.168.10.1 ?

                                                          1 Reply Last reply Reply Quote 0
                                                          • R
                                                            rheylan.cinco last edited by

                                                            hey buddy can you help me on how to set-up opt1 and opt2 and wan with the same gateway.

                                                            1 Reply Last reply Reply Quote 0
                                                            • First post
                                                              Last post