Unable to connect between lan1 and lan2
-
@sutha said in Unable to connect between lan1 and lan2:
@SteveITS Hi Steve, for test pupose I have open the rule for any(source=any, destination=any)
The protocol…show us a screen cap.
-
equipped PCs with two network cards, one for connecting to Area 1 (192.168.50.0/24) and another for connecting to the other network (192.168.60.0/24).
If a PC has two networks traffic for them would not go through pfSense, the gateway.
If that’s not the case they presumably don’t have two gateways and static routes so the reply is going out the wrong network.
https://docs.netgate.com/pfsense/en/latest/troubleshooting/asymmetric-routing.htmlIf you unplug the “other” network from a few so they each have one network does it work?
-
@sutha said in Unable to connect between lan1 and lan2:
herefore, I equipped PCs with two network cards, one for connecting to Area 1 (192.168.50.0/24) and another for connecting to the other network (192.168.60.0/24)
That is horrible solution.. And you have now created asymmetrical traffic flow..
And if "both" your devices have interfaces in both networks.. Why would the traffic even flow through pfsense.. The traffic would go out the interface connected to the network the IP is on.
-
@SteveITS
Lan1
Lan2
-
@sutha They have to flow through pfsense, because they are connected on pfsense lan 1 and lan 2 port.
-
@sutha said in Unable to connect between lan1 and lan2:
They have to flow through pfsense, because they are connected on pfsense lan 1 and lan 2 port.
That is NOT what you stated..
I equipped PCs with two network cards, one for connecting to Area 1 (192.168.50.0/24) and another for connecting to the other network (192.168.60.0/24)
-
@johnpoz Yes, because of the gateway. I have mentioned above, I'm using 2 different gateway.
-
@sutha said in Unable to connect between lan1 and lan2:
I'm using 2 different gateway.
Doesn't work that way..
There is no reason to send traffic to a gateway if the IP is on the network your attached too..
If I have an IP in network 192.168.50.0/24 and I want to talk to 192.168.50.X why would I send traffic to a gateway.. Gateways are for getting off a specific network.
I would suggest you disable the 2nd interface on each machine... So you have machine A in only lan 1, and machine B only on lan 2..
-
@johnpoz You're right, but I'd like to go to the second lan which is 192.168.60.X.
I don't know, if there's a way to communicate without the second card to this ip range. I'm happy to remove my card. -
@sutha That is what pfsense is there for - it is the router, it routes traffic between 192.168.50 and 192.168.60..
-
@johnpoz Yes, this what I want. After creation of lan2, I didn’t get any internet access and I couldn’t ping from pfsense web interface either but after I created an any rule. It was fine, only I’m unable to connect from local pc.
-
@sutha Firewall rules control access between networks (as packets arrive at an interface). One NIC on each PC and routing through pfSense would simplify everything and it will work that way.
-
@SteveITS Thanks Steve, but any suggestions how?
I have open all possible blocking via any rule and disabled my system firewall. -
@SteveITS so you removed the 2nd interface from these devices?
And from device in A, you try and ping IP address of device in network B?
Can you ping pfsense IP address on network B? Does that work?
You have this
So 50.100 can ping pfsense IP 60.1 but can not ping 60.50?
And you have any any rules on both lan 1 and lan 2 interfaces of pfsense.. No policy routing out any gateways on pfsense. No GW actually set on lan 1 or 2 interface in pfsense?
If you can ping 60.1 from 50.100, but can not ping 60.50 - this screams firewall on 60.50..
Sniff on pfsense 60.1 interface while you ping from 50.100 device to 60.50.. So you see pfsense send the ping request to 60.50? If you do and you get no response that is 60.50 not answering, or not using pfsense 60.1 as its gateway.
example... Here is me pinging from my Pc on 192.168.9.100 to an IP in one of my other network 192.168.3.10, now doing a packet capture on my pfsense 192.168.3 interface you can see the traffic sent on to 192.168.3.10 from 192.168.9.100
If you see this but no response - that SCREAMS firewall on the destination IP device... or its not using pfsense as its gateway, or its mask is wrong and thinks the source IP is on its own network, so it doesn't send traffic back to pfsense, etc.
-
@sutha ^that, start small and work your way up.
-
@SteveITS Thanks!
I'm a bit confused, so just to clarify.
When I remove the second interface, how will communication occur from 192.168.50.x to 192.168.60.x ? Typically, for communication within a network, devices need to be on the same network with a unique IP range. For example:PC1:
IP: 192.168.50.100
Subnet: 255.255.255.0
Gateway: 192.168.50.1PC2:
IP: 192.168.60.50
Subnet: 255.255.255.0
Gateway: 192.168.60.1When I want to communicate from PC1 to PC2, I need another IP within the range of PC2. Therefore, I have added another network card to PC1 and assigned the following IP to it:
PC1 - 2nd network card:
IP: 192.168.60.100
Subnet: 255.255.255.0
Gateway: 192.168.60.1 (This is optional)Current situation, I'm able to ping from pfsense diagnostic both devices(Lan1 and Lan2).
-
@sutha said in Unable to connect between lan1 and lan2:
how will communication occur from 192.168.50.x to 192.168.60.x
How exactly do you think you communicate with any IP off your network, like google or this forum? it gets routed by your gateway, in the case of the internet your gateway (pfsense) says oh I am not connected to that network, but hey my default route (your isp) I will send the traffic there, and he can figure out how to route it to get where its going.
In the case where its just also attached to pfsense, pfsense say oh you want to go to 192.168.60.x - hey I am attached to that network I will send the traffic to that IP out my interface attached to that network..
Pfsense will say I am attached to 192.168.60/24 - this 192.168.60.x falls into that network, let me arp for that 192.168.60.x address - oh he is at mac address abc.. Send the traffic to that mac address.
I am a bit confused how anyone setting up a router/firewall and adding multiple networks to it doesn't understand that it can route between them?
-
@johnpoz
Don't take me wrong, it's my silly question.Normally, I install E-Pos system and connect card machines. Typically, all E-Pos systems have an IP like 192.x.x.100, while card machines have their own IP range like 10.x.x.x.
When I want to connect the card machine, I add an additional IP to my E-Pos system within the range 10.x.x.100 and subnet. This setup usually works fine.
However, in my current situation, I'm unable to add a gateway to route my traffic to the 192.168.60.x network. Pfsense wouldn't allow to create a gateway.
This is where I'm stuck. -
@sutha pfSense doesn’t need a gateway for an internal network. It “knows” where they are.
.60 sends traffic for .50 to its gateway, pfSense, which sends it onto the .50 network.
Broadcast/multicast are different things but ping/tcp/udp work fine.
Edit: you can do it with multiple IPs or NICs but the traffic wouldn’t go through pfSense. And there’s nothing in your scenario to prevent a Pc from adding an IP for the card network.
-
@sutha said in Unable to connect between lan1 and lan2:
I add an additional IP to my E-Pos system within the range 10.x.x.100 and subnet.
That only works when both subnets are using the same netwok segment. That isn't the case here, you have two segments with pfSense between them. Also two subnets on one segment is generally considered a bad idea!