Wifi : destination host unreachable from laptop (wifi) to internet
-
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.100Static 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.100firewall
rules: IPv4 * WIFI net * * * * none Allow All Traficon 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 routermy wifi netgear router :
dhcp not activatedso 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 unreachableand 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
-
You should NOT set any gateway on LAN or OPTx interfaces.
-
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
-
…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. -
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.
-
…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.100services 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 sectionServices: DHCP: Edit static mapping
i insert the MAC adress of my laptop
client identifier -namehere-
ip 192.168.2.151
nothing more in this sectionso 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.254so 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