• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • C
    chengli
    last edited by Aug 18, 2017, 2:37 PM

    dear all, How can i traffic between LAN and OPT1. I tried static route and firewall rules but failed.

    firewall rules i tried:
    Interface: LAN
    Source: LAN subnet
    Destination: any

    Interface: OPT1
    Source: OPT1 subnet
    Destination: any

    Following is my interface details :
    WAN - ip: 192.168.15.10
          subnet: 255.255.255.0
          Gateway: 192.168.15.1    (set as default gateway)

    LAN - ip:192.168.1.10
          subnet: 255.255.255.0
          Gateway:empty

    OPT1- ip:10.0.0.10
          subnet: 255.255.255.0
          Gateway:empty

    Any ideas? Thanks

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Aug 18, 2017, 2:46 PM

      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 Aug 18, 2017, 3:07 PM

        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
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Aug 18, 2017, 3:09 PM

          "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 Aug 18, 2017, 3:32 PM

            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
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Aug 18, 2017, 4:00 PM

              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 Aug 19, 2017, 1:15 AM Aug 19, 2017, 1:12 AM

                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
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by Aug 19, 2017, 2:23 AM

                  "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 Aug 19, 2017, 3:55 AM Aug 19, 2017, 3:18 AM

                    "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
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by Aug 19, 2017, 9:34 AM

                      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 Aug 21, 2017, 12:42 AM Aug 21, 2017, 12:37 AM

                        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
                        • P
                          ptt Rebel Alliance
                          last edited by Aug 21, 2017, 12:47 AM

                          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 Aug 21, 2017, 1:42 AM Aug 21, 2017, 1:14 AM

                            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 Aug 21, 2017, 2:23 AM

                              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
                              • G
                                Gertjan
                                last edited by Aug 21, 2017, 1:10 PM

                                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
                                7 out of 15
                                • First post
                                  7/15
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                  This community forum collects and processes your personal information.
                                  consent.not_received