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

    Wifi : destination host unreachable from laptop (wifi) to internet

    Scheduled Pinned Locked Moved Wireless
    6 Posts 2 Posters 2.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.
    • N
      nadvig
      last edited by

      hi i'm brand new to the world of pfsense.

      everything is well with my lan & wan config but for wifi…no way!

      here my config (pfsense PC have 3 NIC)

      wan : pluged on my dsl modem
      lan : pluged on my LAN switch 192.168.1.100 (dhcp activated)

      wifi : here what i have done :

      interfaces assign : OPT1 (named wifi, em0) static ip 192.168.2.100

      services : captive portal : interfaces wifi (actually no authentification, but will do later)
      services : wifi : dhcp server : dhcp activated
      Subnet  192.168.2.0
      Subnet mask  255.255.255.0
      Available range  192.168.2.1 - 192.168.2.254
      my range : 192.168.2.125 - 192.168.2.175 (my guests laptop-wifi will have these range ip...)
      gateway : 192.168.2.100

      Static DHCP Mapping on WIFI :
      my laptop have a MAC address control
      ip : 192.168.2.176 (i want my own laptop with ip reserved in dhcp)
      gateway : 192.168.2.100

      firewall
      rules: IPv4 *  WIFI net  *  *  *  *  none      Allow All Trafic

      on my laptop kali-linux:
      iface eth0 inet static
      192.168.2.176
      255.255.255.0
      192.168.2.0
      192.168.2.100
      i connect to my wifi router

      my wifi netgear router :
      dhcp not activated

      so with this config when i do a ping 8.8.8.8 on my laptop:
      destination host unreachable
      when i do a ping gateway 192.168.2.100 on my laptop:
      destination host unreachable

      and with this config, on the pfsense pc :
      i can ping 192.168.2.100 (gateway for wifi NIC)
      but not 192.168.2.176 (my laptop)

      so it's my problem... can you help someone...

      before pfsense, i had IPCOP, no problem for my wifi config (blue network): dhcp and MAC address filtering
      everything was great!

      but i want something better..pfsense...so now i have to fix that problem!

      thanks

      Nadia

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        You should NOT set any gateway on LAN or OPTx interfaces.

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

          why no gateway? My LAN works very well with the gateway 192.168.1.100! i will try it with no gateway on the wifi opt

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

            …if i do not put gateway on my wifi opt i get this error :

            The following input errors were detected:
            The field IPv4 address is required.

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              Where are you getting that? Maybe it would help if you paid attention to what you are doing. Setting IP address and setting GW are two completely different things. In fact, if you finally read the GUI notes, you are explicitly told to NOT set any gateways for interfaces that are not LAN.

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

                …i paid attention of what i'm doing!!! even if you said that i didn't read...thanks to help me...it was only in my pc config that i put a gateway by mistake (because when i got ipcop i have to do it so...) because on pfsense i didn't have a gateway setup. so my LAN is still working ok. but the wifi network not yet.

                here are the config for the opt-wifi interface, dhcp server, dhcp reserved adress....

                interfaces WIFI:
                dhcp enabled
                static ipv4
                192.168.2.100

                services dhcp:
                wifi, enabled dhcp server on wifi
                Subnet 192.168.2.0
                Subnet mask 255.255.255.0
                Available range 192.168.2.1 - 192.168.2.254
                Range 192.168.2.110 - 192.168.2.150
                nothing more in this section

                Services: DHCP: Edit static mapping
                i insert the MAC adress of my laptop
                client identifier -namehere-
                ip 192.168.2.151
                nothing more in this section

                so back on my laptop
                /etc/network/interfaces
                auto eth0
                iface eth0 inet static
                adress 192.168.2.151
                netmask 255.255.255.0
                network 192.168.2.0

                /etc/resolv.conf:
                nameserver 192.168.1.254

                so when i do a ping 8.8.8.8  or the pfsense IP (ping 192.1681.254 or 192.168.2.100)
                destination host unreachable

                1.png
                1.png_thumb
                2.png
                2.png_thumb
                3.png
                3.png_thumb

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