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

    Unable to traffic between LAN and OPT1

    Scheduled Pinned Locked Moved Firewalling
    15 Posts 4 Posters 6.8k 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

      All that is needed is creation of your firewall rules.. There is no need for creating of any routes.  Pfsense is directly attached to the networks via its interfaces so it knows how to get there.

      How do you have devices connected to these different networks?  Are you using a smart switch?  2 different dumb switches - device directly connected to the interface?  Can the device on opt1 get ip via dhcp, can it ping the opt1 ip 10.0.0.10 ?

      Quite often common issues users run into with this is they forget the devices firewall.  Windows out of the box for example would block access from anything not on its local network.  So while you ping from lan to opt1 network the devices on opt1 would not answer.

      Other common problem is creating rules pointing to a specific gateway..  Such a rule would not allow access to the other local network because traffic would be forced out the gateway.  If you want to send traffic out a specific gateway via say a vpn connection or something you would need to put a rule above that rule that allows access to the other network without setting a gateway on the rule so that pfsense can use its own internal routing to know where to send the 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 0
      • C
        chengli
        last edited by

        thanks for your fast respond.

        Devices like following: i tried to use OPT PC to ping lan printer  but failed. LAN PC can ping LAN printer
        OPT1 PC(10.0.0.2/24) –--> PFSENSE --> unmanage switch---> LAN printer(192.168.1.190/24 ) <---->  LAN PC(192.168.1.20).

        for OPT1 : pc can get ip from  dhcp and ping 10.0.0.10.

        Besides that, i had set the Interface: LAN
        Source: LAN subnet
        Destination: any

        Interface: OPT1
        Source: OPT1 subnet
        Destination: any

        am i missing something else?

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

          "LAN printer"

          Ah – does the printer have a gateway set to pfsense lan IP?  I have seen many a printer that don't have or some that don't even allow for a gateway.  So the only way to talk to them is being on the same network as 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
          • C
            chengli
            last edited by

            OK .. we don't mention about the LAN printer.

            I cant ping the LAN PC (192.168.1.20) from OPT PC(10.0.0.2)  as well and even the IP of LAN interface 192.168.1.10.

            Thanks for your patient and my stupid.

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

              please post up picture of your opt1 rules.

              And you say you can ping the opt pfsense IP..  But not the lan IP of pfsense from this opt pc.. You sure you have the gateway and mask setup correctly on the opt pc?  It got this via dhcp from pfsense?

              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
              • C
                chengli
                last edited by

                yes .. for the opt PC's ip is via dhcp from pfsense. Only the LAN PC is configure as static IP. I'M sure the all the pc's ip configure is correct because i could use LAN PC / OPT1 PC to access internet via pfsense. Just unable to ping each other network.

                From OPT PC, i can access the web configuration of pfsense as well.

                i slightly change the the ip of pfsense as below:

                WAN - ip: 192.168.0.102
                      subnet: 255.255.255.0
                      Gateway: ip: 192.168.0.12    (set as default gateway)

                LAN - ip:10.0.0.11
                      subnet: 255.255.255.0
                      Gateway:empty

                OPT1- ip:192.168.1.12
                      subnet: 255.255.255.0
                      Gateway:empty

                Please let me know if you need more info… i try to provide. thanks

                Untitled.png
                Untitled.png_thumb

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

                  "Just unable to ping each other network."

                  The pfsense interface of the other network or the other pc??

                  Do you have any rules in floating?

                  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
                  • C
                    chengli
                    last edited by

                    "Just unable to ping each other network."

                    sorry ..  i mean LAN and OPT1 cant traffic.

                    No rules in floating.

                    FROM the LAN side everything is ok:
                    -I can ping the pfsense LAN interface address
                    -I CAN NOT ping the pfsense OPT interface address
                    -I CAN NOT ping a host on the OPT subnet

                    FROM the OPT side:
                    -I can ping the pfsense LAN interface address
                    -I can ping the pfsense OPT interface address
                    -I CAN NOT ping a host on the LAN subnet.

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

                      FROM the LAN side everything is ok:
                      -I can ping the pfsense LAN interface address
                      -I CAN NOT ping the pfsense OPT interface address
                      -I CAN NOT ping a host on the OPT subnet

                      How is that ok??

                      You should be able to ping the opt interface address and hosts on opt subnet

                      Your lan side host - does it have the correct mask?  That would explain 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.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • C
                        chengli
                        last edited by

                        My god, thanks johnpo.

                        Finally pfsense can working by adding the gateway on the pfsense LAN interface. As the following attachment.

                        currently,
                        -I can ping the pfsense LAN interface address.
                        -I can ping the pfsense OPT interface address.
                        -I can ping a host on the OPT subnet.
                        -I CAN NOT PING GOOGLE.

                        I always thought pfsense LAN/ OPT1 interface SHOULD NOT put any IP in " IPv4 Upstream gateway" but it indeed work. BUT I CAN NOT PING GOOGLE RIGHT NOW.  :-X

                        May i know,  what situation we should not put the IP in IPv4 Upstream gateway?

                        LAN.png
                        LAN.png_thumb

                        1 Reply Last reply Reply Quote 0
                        • pttP
                          ptt Rebel Alliance
                          last edited by

                          You don't set a GW for a LAN type interface

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

                          1 Reply Last reply Reply Quote 0
                          • C
                            chengli
                            last edited by

                            Once i set back the pfsense LAN INTERFACE TO EMPTY.

                            FROM the LAN side:
                            -I can ping the pfsense LAN interface address.
                            -I CAN ping the pfsense OPT interface address.
                            -I CAN NOT ping a host on the OPT subnet.
                            -I can ping GOOGLE.

                            Actually what i missed ?? my god…

                            LAN PC IP : 10.0.0.10
                            subnet mask : 255.255.255.0
                            gateway  : 10.0.0.11

                            OPT PC IP : 192.168.1.3
                            subnet mask : 255.255.255.0
                            gateway  : 192.168.1.12

                            1 Reply Last reply Reply Quote 0
                            • C
                              chengli
                              last edited by

                              I think i found the solution already .. by using NAT.

                              -I can ping the pfsense LAN interface address.
                              -I can ping the pfsense OPT interface address.
                              -I can ping a host on the OPT subnet.
                              -I can ping GOOGLE.

                              Thanks for people who suggest me solution.

                              1 Reply Last reply Reply Quote 0
                              • GertjanG
                                Gertjan
                                last edited by

                                Natting between LAN's ?  :o
                                @chengli:

                                LAN PC IP : 10.0.0.10
                                subnet mask : 255.255.255.0
                                gateway  : 10.0.0.11

                                What ? A Gateway ?
                                In the "Static IPv4 Configuration" section you saw this :

                                If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the "Add" button.
                                On local area network interfaces the upstream gateway should be "none".

                                @chengli:

                                OPT PC IP : 192.168.1.3
                                subnet mask : 255.255.255.0
                                gateway  : 192.168.1.12

                                Please read -> https://forum.pfsense.org/index.php?topic=135388.msg741800#msg741800

                                No "help me" PM's please. Use the forum, the community will thank you.
                                Edit : and where are the logs ??

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